Skip to content

Instantly share code, notes, and snippets.

@ralt
Created May 8, 2017 21:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ralt/26a45b66b45741a928c6d89e9be4910d to your computer and use it in GitHub Desktop.
Save ralt/26a45b66b45741a928c6d89e9be4910d to your computer and use it in GitHub Desktop.
Useless benchmark
# 1000 concurrent HTTP requests to 127.0.0.1 where default nginx is sitting
# Using golang
[ralt@zap golang]$ time ./golang
real 0m0.083s
user 0m0.165s
sys 0m0.087s
[ralt@zap golang]$ time ./golang
real 0m0.076s
user 0m0.160s
sys 0m0.082s
[ralt@zap golang]$ time ./golang
real 0m0.085s
user 0m0.160s
sys 0m0.075s
[ralt@zap golang]$ time ./golang
real 0m0.099s
user 0m0.196s
sys 0m0.082s
# 1000 concurrent HTTP requests to 127.0.0.1 where default nginx is sitting
# Using laap
[root@zap laap]# time ./bin/foo
real 0m0.052s
user 0m0.017s
sys 0m0.023s
[root@zap laap]# time ./bin/foo
real 0m0.050s
user 0m0.018s
sys 0m0.021s
[root@zap laap]# time ./bin/foo
real 0m0.052s
user 0m0.015s
sys 0m0.025s
[root@zap laap]# time ./bin/foo
real 0m0.052s
user 0m0.018s
sys 0m0.023s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment