Skip to content
tomgallacher edited this page Jun 26, 2011 · 3 revisions

Benchmark Results

This is the results of the benchmarking I have done with gzippo and static resources.

Apache Bench

1000 Requests with concurrency of 100

ab -n 1000 -c 100 -H 'Accept-Encoding: gzip' "http://localhost:3002/js/turtles.min.js"

with gzippo

Document Path:          /js/turtles.min.js
Document Length:        4595 bytes

Concurrency Level:      100
Time taken for tests:   0.911 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Total transferred:      4846000 bytes
HTML transferred:       4595000 bytes
Requests per second:    1097.12 [#/sec] (mean)
Time per request:       91.148 [ms] (mean)
Time per request:       0.911 [ms] (mean, across all concurrent requests)
Transfer rate:          5192.02 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    1   1.7      1      13
Processing:     1   84  57.8     76     249
Waiting:        1   67  49.6     56     226
Total:          1   85  58.1     76     250

Percentage of the requests served within a certain time (ms)
  50%     76
  66%     89
  75%     94
  80%    109
  90%    176
  95%    214
  98%    237
  99%    240
 100%    250 (longest request)

With gzippo

Document Path:          /js/turtles.min.js
Document Length:        1646 bytes

Concurrency Level:      100
Time taken for tests:   0.424 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Total transferred:      1814000 bytes
HTML transferred:       1646000 bytes
Requests per second:    2357.31 [#/sec] (mean)
Time per request:       42.421 [ms] (mean)
Time per request:       0.424 [ms] (mean, across all concurrent requests)
Transfer rate:          4175.93 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    2   2.4      1      12
Processing:     2   38  19.4     38      88
Waiting:        2   37  19.3     36      86
Total:          2   40  19.7     40      89

Percentage of the requests served within a certain time (ms)
  50%     40
  66%     48
  75%     52
  80%     55
  90%     66
  95%     76
  98%     88
  99%     88
 100%     89 (longest request)

Results

As you can see from the results the file size of this javascript asset was reduced by over 50%, The time per request (mean, across all concurrent requests) was more than halved from 0.911 [ms] to 0.424 [ms]. The javascript asset that was used is available here

Clone this wiki locally