francesco 88d99788d4 Update package-lock.json 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 88d99788d4 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 2567c06cd6 Update ultimate-express-postgres.dockerfile 7 месяцев назад
ultimate-express.dockerfile ffdf2505b1 Update ultimate-express.dockerfile 7 месяцев назад

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=