Minimalistic web-server benchmarks with an emphasis on capturing real-world usage characteristics.
Every server implementation must solve the following task on each request:
- Read the test_data.jsonfile from the file system.
- Deserialize the JSONfile to a language-specific data structure (eg.: object, struct etc...).
- Take the tokenfield and verify theJWTusing thesecret.
- Deserialize the JWT payload into a language-specific data structure.
- Respond with the deserialized payload in the form of a JSONbody.
The server under test was running on the cheapest DigitalOcean VM, with 1 vCPU and 1GB of RAM. The benchmark was powered by wrk, with the following parameters:
- Total number of HTTP connections to keep open: 100
- Total number of threads to use: 2
- Duration of the test: 15s