Imam Fahrur Rofi 4669209e73 [HyperExpress] Update Version 6.8.5 (#8395) 1 tahun lalu
..
database 4669209e73 [HyperExpress] Update Version 6.8.5 (#8395) 1 tahun lalu
README.md 133dade52e [HyperExpress] Upgrade version 6.8.0 (#8328) 2 tahun lalu
app.js 30cfe14884 [HyperExpress] Refactor(postgres.js): Using bulk updates for database updates (#8348) 2 tahun lalu
benchmark_config.json 4669209e73 [HyperExpress] Update Version 6.8.5 (#8395) 1 tahun lalu
clustered.js 1439123cd4 [JavaScript] Add HyperExpress (#8305) 2 tahun lalu
config.js 1439123cd4 [JavaScript] Add HyperExpress (#8305) 2 tahun lalu
hyperexpress-mysql.dockerfile 4669209e73 [HyperExpress] Update Version 6.8.5 (#8395) 1 tahun lalu
hyperexpress-postgres.dockerfile 4669209e73 [HyperExpress] Update Version 6.8.5 (#8395) 1 tahun lalu
hyperexpress.dockerfile 4669209e73 [HyperExpress] Update Version 6.8.5 (#8395) 1 tahun lalu
package-lock.json 4669209e73 [HyperExpress] Update Version 6.8.5 (#8395) 1 tahun lalu
package.json 4669209e73 [HyperExpress] Update Version 6.8.5 (#8395) 1 tahun lalu

README.md

HyperExpress Benchmarking Test

HyperExpress is a high performance Node.js webserver with a simple-to-use API powered by µWebSockets.js under the hood. (https://github.com/kartikk221/hyper-express)

µWebSockets.js is a web server bypass for Node.js (https://github.com/uNetworking/uWebSockets.js)

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=