francesco 1641fb2e10 Update ultimate-express-mysql.dockerfile 7 місяців тому
..
database f749c9fa37 feat: add ultimate express (#9390) 8 місяців тому
README.md f749c9fa37 feat: add ultimate express (#9390) 8 місяців тому
app.js f749c9fa37 feat: add ultimate express (#9390) 8 місяців тому
benchmark_config.json f749c9fa37 feat: add ultimate express (#9390) 8 місяців тому
clustered.js f749c9fa37 feat: add ultimate express (#9390) 8 місяців тому
config.js f749c9fa37 feat: add ultimate express (#9390) 8 місяців тому
package-lock.json 56e48107f5 Update package-lock.json 7 місяців тому
package.json 8a34263a2b Update package.json 7 місяців тому
ultimate-express-mysql.dockerfile 1641fb2e10 Update ultimate-express-mysql.dockerfile 7 місяців тому
ultimate-express-postgres.dockerfile f749c9fa37 feat: add ultimate express (#9390) 8 місяців тому
ultimate-express.dockerfile f749c9fa37 feat: add ultimate express (#9390) 8 місяців тому

README.md

UltimateExpress Benchmarking Test

The Ultimate Express. Fastest http server with full Express compatibility, based on µWebSockets.

Important Libraries

The tests were run with:

Database

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

Test Endpoints

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=