Gabriel Cursino a56bc7e121 [JavaScript] Add Mesh (#8816) 1 år sedan
..
drivers a56bc7e121 [JavaScript] Add Mesh (#8816) 1 år sedan
README.md a56bc7e121 [JavaScript] Add Mesh (#8816) 1 år sedan
app.js a56bc7e121 [JavaScript] Add Mesh (#8816) 1 år sedan
benchmark_config.json a56bc7e121 [JavaScript] Add Mesh (#8816) 1 år sedan
mesh-mongodb.dockerfile a56bc7e121 [JavaScript] Add Mesh (#8816) 1 år sedan
mesh-mysql.dockerfile a56bc7e121 [JavaScript] Add Mesh (#8816) 1 år sedan
mesh-postgres.dockerfile a56bc7e121 [JavaScript] Add Mesh (#8816) 1 år sedan
mesh.dockerfile a56bc7e121 [JavaScript] Add Mesh (#8816) 1 år sedan
package-lock.json a56bc7e121 [JavaScript] Add Mesh (#8816) 1 år sedan
package.json a56bc7e121 [JavaScript] Add Mesh (#8816) 1 år sedan
server.js a56bc7e121 [JavaScript] Add Mesh (#8816) 1 år sedan

README.md

Mesh Benchmarking Test

This is the Mesh portion of a benchmarking test suite comparing a variety of web development platforms.

Information about Mesh can be found at https://github.com/ionited/mesh

Database Drivers

There are individual handlers for each DB approach. The logic for each of them are found here:

There are no database endpoints or drivers attached by default.
To initialize the application with one of these, run any one of the following commands:

$ DATABASE=mysql node app.js
$ DATABASE=mongodb node app.js
$ DATABASE=postgres node app.js

Test Endpoints

Visit the test requirements here

$ curl localhost:8080/json
$ curl localhost:8080/plaintext

# The following are only available w/ DATABASE

$ curl localhost:8080/db
$ curl localhost:8080/fortunes

$ curl localhost:8080/updates?queries=
$ curl localhost:8080/updates?queries=2
$ curl localhost:8080/updates?queries=1000
$ curl localhost:8080/updates?queries=foo
$ curl localhost:8080/updates?queries=0

$ curl localhost:8080/queries?queries=
$ curl localhost:8080/queries?queries=2
$ curl localhost:8080/queries?queries=1000
$ curl localhost:8080/queries?queries=foo
$ curl localhost:8080/queries?queries=0