Skip to content

Instantly share code, notes, and snippets.

@julienbourdeau
Last active April 8, 2019 13:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save julienbourdeau/e467654099e84b91580744dfc3f6a01f to your computer and use it in GitHub Desktop.
Save julienbourdeau/e467654099e84b91580744dfc3f6a01f to your computer and use it in GitHub Desktop.

Using sprockets 2.12.5

sprockets-rails 2.3.3

$ ab -c 1 -n 100 http://localhost:3000/posts/1
This is ApacheBench, Version 2.3 <$Revision: 1826891 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient).....done


Server Software:        WEBrick/1.3.1
Server Hostname:        localhost
Server Port:            3000

Document Path:          /posts/1
Document Length:        7268 bytes

Concurrency Level:      1
Time taken for tests:   14.988 seconds
Complete requests:      100
Failed requests:        0
Total transferred:      806500 bytes
HTML transferred:       726800 bytes
Requests per second:    6.67 [#/sec] (mean)
Time per request:       149.883 [ms] (mean)
Time per request:       149.883 [ms] (mean, across all concurrent requests)
Transfer rate:          52.55 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.0      0       0
Processing:   142  150   6.5    147     172
Waiting:      142  150   6.5    147     172
Total:        142  150   6.5    147     172

Percentage of the requests served within a certain time (ms)
  50%    147
  66%    149
  75%    153
  80%    153
  90%    162
  95%    164
  98%    166
  99%    172
 100%    172 (longest request)

Using sprockets 3.7.2 (was 2.12.5)

Using sprockets-rails 3.2.1 (was 2.3.3)

$ ab -c 1 -n 100 http://localhost:3000/posts/1
This is ApacheBench, Version 2.3 <$Revision: 1826891 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient).....done


Server Software:        WEBrick/1.3.1
Server Hostname:        localhost
Server Port:            3000

Document Path:          /posts/1
Document Length:        9266 bytes

Concurrency Level:      1
Time taken for tests:   5.974 seconds
Complete requests:      100
Failed requests:        0
Total transferred:      1006300 bytes
HTML transferred:       926600 bytes
Requests per second:    16.74 [#/sec] (mean)
Time per request:       59.741 [ms] (mean)
Time per request:       59.741 [ms] (mean, across all concurrent requests)
Transfer rate:          164.50 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.0      0       0
Processing:    55   60   4.3     58      74
Waiting:       55   60   4.3     58      74
Total:         55   60   4.3     58      74

Percentage of the requests served within a certain time (ms)
  50%     58
  66%     61
  75%     63
  80%     63
  90%     66
  95%     68
  98%     70
  99%     74
 100%     74 (longest request)

Using sprockets 2.12.5 (was 3.7.2)

Using sprockets-rails 2.1.3 (was 3.2.1)

$ ab -c 1 -n 100 http://localhost:3000/posts/1
This is ApacheBench, Version 2.3 <$Revision: 1826891 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient).....done


Server Software:        WEBrick/1.3.1
Server Hostname:        localhost
Server Port:            3000

Document Path:          /posts/1
Document Length:        7268 bytes

Concurrency Level:      1
Time taken for tests:   2.748 seconds
Complete requests:      100
Failed requests:        0
Total transferred:      806500 bytes
HTML transferred:       726800 bytes
Requests per second:    36.39 [#/sec] (mean)
Time per request:       27.481 [ms] (mean)
Time per request:       27.481 [ms] (mean, across all concurrent requests)
Transfer rate:          286.60 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.0      0       0
Processing:    25   27   1.7     27      37
Waiting:       25   27   1.7     27      37
Total:         25   27   1.7     27      37

Percentage of the requests served within a certain time (ms)
  50%     27
  66%     28
  75%     28
  80%     28
  90%     30
  95%     31
  98%     31
  99%     37
 100%     37 (longest request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment