tylertreat / mq-benchmarking

Performance benchmarks for various message queues.
http://www.bravenewgeek.com/dissecting-message-queues/
192 stars 39 forks source link

added github.com/surge/surgemq support #5

Closed zhenjl closed 9 years ago

zhenjl commented 9 years ago

Tyler, to run this test, simply go get github.com/surge/surgemq, then in the surgemq dir, run go run surgemq.go as the server. Then in the mq-benchmarking directory, run go run main.go surge false 1000000 1024.

tylertreat commented 9 years ago

I get the following when running go get github.com/surge/surgemq:

service/buffer.go:89: undefined: bithacks.PowerOfTwo64

zhenjl commented 9 years ago

My apologies. I forgot to commit something else. Should be good now.

tylertreat commented 9 years ago

Thanks!

zhenjl commented 9 years ago

Thanks Tyler. I am curious what type of performance you got when you ran the test. Can you share? thx

tylertreat commented 9 years ago

2.6 GHz Intel Core i7

go run main.go surge false 1000000 1024
2014/12/01 18:20:20 Begin surge test
2014/12/01 18:20:23 Sent 1000000 messages in 2615.255127 ms
2014/12/01 18:20:23 Sent 382371.875000 per second
2014/12/01 18:20:23 Received 1000000 messages in 2614.191162 ms
2014/12/01 18:20:23 Received 382527.500000 per second
2014/12/01 18:20:23 End surge test

go run main.go surge true 1000000 1024
2014/12/01 18:21:00 Begin surge test
2014/12/01 18:21:01 Sent 1000000 messages in 1317.875732 ms
2014/12/01 18:21:01 Sent 758796.875000 per second
2014/12/01 18:21:01 Mean latency for 1000000 messages: 98.751015 ms
2014/12/01 18:21:01 End surge test