Gaming/GameCenter/API/Benchmarks

From MozillaWiki
Jump to: navigation, search

Disclaimer: These tests have been run on only localhost right now.

Leaderboard creation

(driven) %% node_modules/loadtest/bin/loadtest.js  -t 20 -c 10 -k http://localhost:4000/games/pokemon/leaderboards/pokeballs-collected/scores -P '{"user": "cvan", "score": "50"}'
[Tue Aug 26 2014 14:40:38 GMT-0700 (PDT)] INFO Requests: 0, requests per second: 0, mean latency: 0 ms
[Tue Aug 26 2014 14:40:43 GMT-0700 (PDT)] INFO Requests: 9337, requests per second: 1867, mean latency: 10 ms
[Tue Aug 26 2014 14:40:48 GMT-0700 (PDT)] INFO Requests: 18762, requests per second: 1886, mean latency: 10 ms
[Tue Aug 26 2014 14:40:53 GMT-0700 (PDT)] INFO Requests: 28191, requests per second: 1885, mean latency: 10 ms
[Tue Aug 26 2014 14:40:58 GMT-0700 (PDT)] INFO 
[Tue Aug 26 2014 14:40:58 GMT-0700 (PDT)] INFO Target URL:          http://localhost:4000/games/pokemon/leaderboards/pokeballs-collected/scores
[Tue Aug 26 2014 14:40:58 GMT-0700 (PDT)] INFO Max time (s):        20
[Tue Aug 26 2014 14:40:58 GMT-0700 (PDT)] INFO Concurrency level:   10
[Tue Aug 26 2014 14:40:58 GMT-0700 (PDT)] INFO Agent:               keepalive
[Tue Aug 26 2014 14:40:58 GMT-0700 (PDT)] INFO 
[Tue Aug 26 2014 14:40:58 GMT-0700 (PDT)] INFO Completed requests:  37620
[Tue Aug 26 2014 14:40:58 GMT-0700 (PDT)] INFO Total errors:        0
[Tue Aug 26 2014 14:40:58 GMT-0700 (PDT)] INFO Total time:          20.000773833 s
[Tue Aug 26 2014 14:40:58 GMT-0700 (PDT)] INFO Requests per second: 1881
[Tue Aug 26 2014 14:40:58 GMT-0700 (PDT)] INFO Total time:          20.000773833 s
[Tue Aug 26 2014 14:40:58 GMT-0700 (PDT)] INFO 
[Tue Aug 26 2014 14:40:58 GMT-0700 (PDT)] INFO Percentage of the requests served within a certain time
[Tue Aug 26 2014 14:40:58 GMT-0700 (PDT)] INFO   50%      4 ms
[Tue Aug 26 2014 14:40:58 GMT-0700 (PDT)] INFO   90%      8 ms
[Tue Aug 26 2014 14:40:58 GMT-0700 (PDT)] INFO   95%      8 ms
[Tue Aug 26 2014 14:40:58 GMT-0700 (PDT)] INFO   99%      14 ms
[Tue Aug 26 2014 14:40:58 GMT-0700 (PDT)] INFO  100%      26 ms (longest request)

Leaderboard rankings

(driven) %% node_modules/loadtest/bin/loadtest.js  -t 20 -c 10 -k http://localhost:4000/games/pokemon/leaderboards/pokeballs-collected/scores
[Tue Aug 26 2014 14:38:01 GMT-0700 (PDT)] INFO Requests: 0, requests per second: 0, mean latency: 0 ms
[Tue Aug 26 2014 14:38:06 GMT-0700 (PDT)] INFO Requests: 8555, requests per second: 1711, mean latency: 10 ms
[Tue Aug 26 2014 14:38:11 GMT-0700 (PDT)] INFO Requests: 17744, requests per second: 1838, mean latency: 10 ms
[Tue Aug 26 2014 14:38:16 GMT-0700 (PDT)] INFO Requests: 27196, requests per second: 1891, mean latency: 10 ms
[Tue Aug 26 2014 14:38:21 GMT-0700 (PDT)] INFO 
[Tue Aug 26 2014 14:38:21 GMT-0700 (PDT)] INFO Target URL:          http://localhost:4000/games/pokemon/leaderboards/pokeballs-collected/scores
[Tue Aug 26 2014 14:38:21 GMT-0700 (PDT)] INFO Max time (s):        20
[Tue Aug 26 2014 14:38:21 GMT-0700 (PDT)] INFO Concurrency level:   10
[Tue Aug 26 2014 14:38:21 GMT-0700 (PDT)] INFO Agent:               keepalive
[Tue Aug 26 2014 14:38:21 GMT-0700 (PDT)] INFO 
[Tue Aug 26 2014 14:38:21 GMT-0700 (PDT)] INFO Completed requests:  36692
[Tue Aug 26 2014 14:38:21 GMT-0700 (PDT)] INFO Total errors:        0
[Tue Aug 26 2014 14:38:21 GMT-0700 (PDT)] INFO Total time:          20.001017135999998 s
[Tue Aug 26 2014 14:38:21 GMT-0700 (PDT)] INFO Requests per second: 1835
[Tue Aug 26 2014 14:38:21 GMT-0700 (PDT)] INFO Total time:          20.001017135999998 s
[Tue Aug 26 2014 14:38:21 GMT-0700 (PDT)] INFO 
[Tue Aug 26 2014 14:38:21 GMT-0700 (PDT)] INFO Percentage of the requests served within a certain time
[Tue Aug 26 2014 14:38:21 GMT-0700 (PDT)] INFO   50%      4 ms
[Tue Aug 26 2014 14:38:21 GMT-0700 (PDT)] INFO   90%      7 ms
[Tue Aug 26 2014 14:38:21 GMT-0700 (PDT)] INFO   95%      9 ms
[Tue Aug 26 2014 14:38:21 GMT-0700 (PDT)] INFO   99%      15 ms
[Tue Aug 26 2014 14:38:21 GMT-0700 (PDT)] INFO  100%      73 ms (longest request)