Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
html
results
.gitignore
README.MD
benchmark.sh
pull.sh
restart.sh
stop.sh

README.MD

Benchmark of njs on nginx

Project startup

git clone
sh pull.sh
sh restart.sh

Check that the Docker container is started with docker ps and try to reach the following paths via browser:

http://localhost:81/js
http://localhost:81/static/static_file.txt

You should see respectively an Hello world! and a static file content Now you are ready to start the benchmark and find the results in the results folder.

access to private file

You must have a valid JWT token, for example

http://localhost:81/private/private_file.txt?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.XbPfbIHMI6arZ3Y922BhjWgQzWXcXNrz0ogtVhfEd2o

will return private file

but using a wrong token

http://localhost:81/private/private_file.txt?token=xxx

will return an error

You can’t perform that action at this time.