Created
May 8, 2017 21:26
-
-
Save ralt/26a45b66b45741a928c6d89e9be4910d to your computer and use it in GitHub Desktop.
Useless benchmark
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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