|
7 months ago | |
---|---|---|
.. | ||
database | 8 months ago | |
README.md | 8 months ago | |
app.js | 8 months ago | |
benchmark_config.json | 8 months ago | |
clustered.js | 8 months ago | |
config.js | 8 months ago | |
package-lock.json | 7 months ago | |
package.json | 7 months ago | |
ultimate-express-mysql.dockerfile | 7 months ago | |
ultimate-express-postgres.dockerfile | 7 months ago | |
ultimate-express.dockerfile | 8 months ago |
The Ultimate Express. Fastest http server with full Express compatibility, based on µWebSockets.
The tests were run with:
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=postgres npm start
$ DATABASE=mysql npm start
Visit the test requirements here
$ curl localhost:8080/json
$ curl localhost:8080/plaintext
# The following are only available with the DATABASE env var
$ curl localhost:8080/db
$ curl localhost:8080/fortunes
$ curl localhost:8080/queries?queries=2
$ curl localhost:8080/queries?queries=0
$ curl localhost:8080/queries?queries=foo
$ curl localhost:8080/queries?queries=501
$ curl localhost:8080/queries?queries=
$ curl localhost:8080/updates?queries=2
$ curl localhost:8080/updates?queries=0
$ curl localhost:8080/updates?queries=foo
$ curl localhost:8080/updates?queries=501
$ curl localhost:8080/updates?queries=
$ curl localhost:8080/cached-worlds?count=2
$ curl localhost:8080/cached-worlds?count=0
$ curl localhost:8080/cached-worlds?count=foo
$ curl localhost:8080/cached-worlds?count=501
$ curl localhost:8080/cached-worlds?count=