Last active
December 31, 2015 19:48
-
-
Save cespare/8035503 to your computer and use it in GitHub Desktop.
more websocket tests, see https://gist.github.com/kellabyte/8032308
This file contains hidden or 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
| # The machines: | |
| # Mac OS (MBP Retina): | |
| $ sysctl -n machdep.cpu.brand_string | |
| Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz | |
| $ go version | |
| go version go1.2 darwin/amd64 | |
| # Linux desktop (Ubuntu 13.10): | |
| $ go version | |
| go version go1.2 linux/amd64 | |
| ### Mac OS server, Linux client | |
| # Mac server running with GOMAXPROCS=1 | |
| $ for procs in 1 4; do for workers in 1 4; do echo "GOMAXPROCS=${procs} workers=${workers}"; GOMAXPROCS=$procs ./client $workers 2000000; done; done | |
| GOMAXPROCS=1 workers=1 | |
| Sent 2000000 in 3.882533898s for a rate of 515127/second | |
| GOMAXPROCS=1 workers=4 | |
| Sent 8000000 in 15.642544028s for a rate of 511425/second | |
| GOMAXPROCS=4 workers=1 | |
| Sent 2000000 in 4.04609457s for a rate of 494303/second | |
| GOMAXPROCS=4 workers=4 | |
| Sent 8000000 in 13.284710142s for a rate of 602196/second | |
| # Mac server running with GOMAXPROCS=4 | |
| $ for procs in 1 4; do for workers in 1 4; do echo "GOMAXPROCS=${procs} workers=${workers}"; GOMAXPROCS=$procs ./client $workers 2000000; done; done | |
| GOMAXPROCS=1 workers=1 | |
| Sent 2000000 in 3.951765848s for a rate of 506102/second | |
| GOMAXPROCS=1 workers=4 | |
| Sent 8000000 in 15.683137048s for a rate of 510102/second | |
| GOMAXPROCS=4 workers=1 | |
| Sent 2000000 in 4.033736775s for a rate of 495818/second | |
| GOMAXPROCS=4 workers=4 | |
| Sent 8000000 in 11.334975452s for a rate of 705780/second | |
| ### Linux server, Mac OS client | |
| # Linux server running with GOMAXPROCS=1 | |
| $ for procs in 1 4; do for workers in 1 4; do echo "GOMAXPROCS=${procs} workers=${workers}"; GOMAXPROCS=$procs ./client $workers 2000000; done; done | |
| GOMAXPROCS=1 workers=1 | |
| Sent 2000000 in 15.107199259s for a rate of 132387/second | |
| GOMAXPROCS=1 workers=4 | |
| Sent 8000000 in 43.971064592s for a rate of 181937/second | |
| GOMAXPROCS=4 workers=1 | |
| Sent 2000000 in 15.301460827s for a rate of 130706/second | |
| GOMAXPROCS=4 workers=4 | |
| Sent 8000000 in 37.774018998s for a rate of 211785/second | |
| # Linux server running with GOMAXPROCS=4 | |
| $ for procs in 1 4; do for workers in 1 4; do echo "GOMAXPROCS=${procs} workers=${workers}"; GOMAXPROCS=$procs ./client $workers 2000000; done; done | |
| GOMAXPROCS=1 workers=1 | |
| Sent 2000000 in 15.52625562s for a rate of 128814/second | |
| GOMAXPROCS=1 workers=4 | |
| Sent 8000000 in 43.561685265s for a rate of 183647/second | |
| GOMAXPROCS=4 workers=1 | |
| Sent 2000000 in 15.992360401s for a rate of 125059/second | |
| GOMAXPROCS=4 workers=4 | |
| Sent 8000000 in 28.754718641s for a rate of 278215/second |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment