======================================================
normal case (2 exacts + 2 fuzzy, pref len=0, internal size 20, no second pass query):
======================================================
ab -k -n 100000 -c 520 'https://en.wikipedia.org/w/api.php?action=cirrus-suggest&text=maxweber&limit=10&format=json'
Document Path: /w/api.php?action=cirrus-suggest&text=maxweber&limit=10&format=json
Document Length: 729 bytes
Concurrency Level: 520
Time taken for tests: 33.403 seconds
Complete requests: 100000
Failed requests: 0
Write errors: 0
Keep-Alive requests: 99408
Total transferred: 145696997 bytes
HTML transferred: 72900000 bytes
Requests per second: 2993.73 [#/sec] (mean)
Time per request: 173.697 [ms] (mean)
Time per request: 0.334 [ms] (mean, across all concurrent requests)
Transfer rate: 4259.54 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 3 47.6 0 1000
Processing: 31 166 83.7 152 1467
Waiting: 31 166 83.7 152 1467
Total: 31 170 95.2 152 1467
Percentage of the requests served within a certain time (ms)
50% 152
66% 188
75% 212
80% 228
90% 271
95% 316
98% 403
99% 463
100% 1467 (longest request)
======================================================
best case (2 exacts, internal size 20, no second pass)
======================================================
ab -k -n 100000 -c 520 'https://en.wikipedia.org/w/api.php?action=cirrus-suggest&text=m&limit=10&format=json'
Document Path: /w/api.php?action=cirrus-suggest&text=m&limit=10&format=json
Document Length: 597 bytes
Concurrency Level: 520
Time taken for tests: 22.073 seconds
Complete requests: 100000
Failed requests: 0
Write errors: 0
Keep-Alive requests: 99402
Total transferred: 132497010 bytes
HTML transferred: 59700000 bytes
Requests per second: 4530.47 [#/sec] (mean)
Time per request: 114.778 [ms] (mean)
Time per request: 0.221 [ms] (mean, across all concurrent requests)
Transfer rate: 5862.05 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 3 43.0 0 616
Processing: 26 108 59.3 98 1247
Waiting: 25 108 59.3 98 1247
Total: 26 111 72.6 99 1247
Percentage of the requests served within a certain time (ms)
50% 99
66% 122
75% 138
80% 149
90% 180
95% 210
98% 251
99% 287
100% 1247 (longest request)
======================================================
best case 2 (2 exacts, internal size 10, no second pass)
======================================================
ab -k -n 100000 -c 520 'https://en.wikipedia.org/w/api.php?action=cirrus-suggest&text=m&limit=5&format=json'
Document Path: /w/api.php?action=cirrus-suggest&text=m&limit=5&format=json
Document Length: 321 bytes
Concurrency Level: 520
Time taken for tests: 15.818 seconds
Complete requests: 100000
Failed requests: 0
Write errors: 0
Keep-Alive requests: 99391
Total transferred: 104796912 bytes
HTML transferred: 32100000 bytes
Requests per second: 6322.10 [#/sec] (mean)
Time per request: 82.251 [ms] (mean)
Time per request: 0.158 [ms] (mean, across all concurrent requests)
Transfer rate: 6470.08 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 3 46.8 0 1005
Processing: 24 75 39.6 68 1160
Waiting: 24 75 39.6 68 1160
Total: 24 78 60.9 68 1160
Percentage of the requests served within a certain time (ms)
50% 68
66% 84
75% 95
80% 102
90% 121
95% 140
98% 165
99% 192
100% 1160 (longest request)
======================================================
worst case (2 exacts + 2 fuzzy, pref len=0, internal size 20, with second pass query):
======================================================
dcausse@terbium:~$ ab -k -n 100000 -c 100 'https://en.wikipedia.org/w/api.php?action=cirrus-suggest&text=einsteinal&limit=10&format=json'
Document Path: /w/api.php?action=cirrus-suggest&text=einsteinal&limit=10&format=json
Document Length: 658 bytes
Concurrency Level: 100
Time taken for tests: 130.881 seconds
Complete requests: 100000
Failed requests: 0
Write errors: 0
Keep-Alive requests: 99042
Total transferred: 138595123 bytes
HTML transferred: 65800000 bytes
Requests per second: 764.05 [#/sec] (mean)
Time per request: 130.881 [ms] (mean)
Time per request: 1.309 [ms] (mean, across all concurrent requests)
Transfer rate: 1034.12 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 4.9 0 1003
Processing: 34 130 94.5 91 1416
Waiting: 34 130 94.5 91 1416
Total: 34 130 94.7 91 1416
Percentage of the requests served within a certain time (ms)
50% 91
66% 126
75% 189
80% 218
90% 274
95% 312
98% 348
99% 370
100% 1416 (longest request)
======================================================
worst case #second attempt-unfinished (2 exacts + 2 fuzzy, pref len=0, internal size 20, with second pass query):
======================================================
dcausse@terbium:~$ ab -k -n 100000 -c 520 'https://en.wikipedia.org/w/api.php?action=cirrus-suggest&text=einsteinal&limit=10&format=json'
Document Path: /w/api.php?action=cirrus-suggest&text=einsteinal&limit=10&format=json
Document Length: 658 bytes
Concurrency Level: 520
Time taken for tests: 24.392 seconds
Complete requests: 58495
Failed requests: 12
(Connect: 0, Receive: 0, Length: 12, Exceptions: 0)
Write errors: 0
Keep-Alive requests: 57979
Total transferred: 81064042 bytes
HTML transferred: 38482318 bytes
Requests per second: 2398.14 [#/sec] (mean)
Time per request: 216.835 [ms] (mean)
Time per request: 0.417 [ms] (mean, across all concurrent requests)
Transfer rate: 3245.52 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 6 62.3 0 692
Processing: 21 209 117.5 170 1436
Waiting: 21 209 117.5 170 1436
Total: 21 215 136.1 171 2097
Percentage of the requests served within a certain time (ms)
50% 171
66% 235
75% 286
80% 316
90% 385
95% 442
98% 532
99% 719
100% 2097 (longest request)