Skip to content

Instantly share code, notes, and snippets.

@jinoantony
Created July 5, 2020 07:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jinoantony/2aa2ec6075169cf62c7090f3d4ca88c0 to your computer and use it in GitHub Desktop.
Save jinoantony/2aa2ec6075169cf62c7090f3d4ca88c0 to your computer and use it in GitHub Desktop.
Async vs sync nodejs benchmark result
Metrics sync async
Concurrency Level 20 20
Time taken for tests: 23.247 seconds 10.141 seconds
Complete requests: 250 250
Failed requests: 0 0
Keep-Alive requests: 250 250
Total transferred: 66250 bytes 66250 bytes
HTML transferred: 15000 bytes 15000 bytes
Requests per second: 10.75 [#/sec] (mean) 24.65 [#/sec] (mean)
Time per request: 1859.754 [ms] (mean) 811.281 [ms] (mean)
Time per request: 92.988 [ms] (mean, across al 40.564 [ms] (mean, across all concurrent requests)
Transfer rate: 2.78 [Kbytes/sec] received 6.38 [Kbytes/sec] received
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment