srisaiswaroop d1b15ff3c7 Performance Improvements for uwebsocket.js (#8499) 1 year ago
..
src d1b15ff3c7 Performance Improvements for uwebsocket.js (#8499) 1 year ago
README.md aaa328ac46 [uWebsockets.js] Upgrade to v20.31.0 (#8332) 2 years ago
benchmark_config.json 6fd0b93124 [JavaScript] Add uWebSockets.js (#8202) 2 years ago
package-lock.json d1b15ff3c7 Performance Improvements for uwebsocket.js (#8499) 1 year ago
package.json d1b15ff3c7 Performance Improvements for uwebsocket.js (#8499) 1 year ago
uwebsockets.js-postgres.dockerfile 4da046b78f [uWebsockets.js] Use Node 20 (#8426) 1 year ago
uwebsockets.js.dockerfile 4da046b78f [uWebsockets.js] Use Node 20 (#8426) 1 year ago

README.md

uWebSockets.js Benchmarking Test

uWebSockets is a web server written in C/C++ (https://github.com/uNetworking/uWebSockets)

µ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

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/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