Nate 0096f84ee9 Config for the new toolset (#6259) 4 years ago
..
drivers 56af6061d0 New(JavaScript): Add Polkadot candidate (#4580) 6 years ago
.npmrc 56af6061d0 New(JavaScript): Add Polkadot candidate (#4580) 6 years ago
README.md 56af6061d0 New(JavaScript): Add Polkadot candidate (#4580) 6 years ago
app.js 56af6061d0 New(JavaScript): Add Polkadot candidate (#4580) 6 years ago
benchmark_config.json fc69d3ae2d Add platform nodejs (#5645) 5 years ago
config.toml 0096f84ee9 Config for the new toolset (#6259) 4 years ago
helper.js 56af6061d0 New(JavaScript): Add Polkadot candidate (#4580) 6 years ago
init.js 56af6061d0 New(JavaScript): Add Polkadot candidate (#4580) 6 years ago
package.json 56af6061d0 New(JavaScript): Add Polkadot candidate (#4580) 6 years ago
polkadot-mongodb.dockerfile 0096f84ee9 Config for the new toolset (#6259) 4 years ago
polkadot-mysql.dockerfile 0096f84ee9 Config for the new toolset (#6259) 4 years ago
polkadot-postgres.dockerfile 0096f84ee9 Config for the new toolset (#6259) 4 years ago
polkadot.dockerfile 0096f84ee9 Config for the new toolset (#6259) 4 years ago

README.md

Polkadot Benchmarking Test

This is the polkadot portion of a benchmarking test suite comparing a variety of web development platforms.

Information about Polkadot can be found at https://github.com/lukeed/polkadot

Database Drivers

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=mysql node app.js
$ DATABASE=mongodb node app.js
$ DATABASE=postgres node app.js

Test Endpoints

Visit the test requirements here

$ curl localhost:8080/json
$ curl localhost:8080/plaintext

# The following are only available w/ DATABASE
# ---

$ 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