1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-11 00:24:11 +02:00

More ab testing and result files

This commit is contained in:
Steve Clay
2008-06-07 23:17:16 +00:00
parent 15e21bf6d2
commit 867fccb9cf
6 changed files with 200 additions and 5 deletions

View File

@@ -1,5 +1,4 @@
cd C:\xampp\apache\bin
ab -c 100 -n 1000 -H "Accept-Encoding: deflate, gzip" http://mc.dev/_3rd_party/minify/web/ab_tests/minify/before.js.php > results_minify.txt
ab -c 100 -n 1000 -H "Accept-Encoding: deflate, gzip" http://mc.dev/_3rd_party/minify/web/ab_tests/mod_deflate/before.js > results_deflate.txt
ab -c 100 -n 1000 -H "Accept-Encoding: deflate, gzip" http://mc.dev/_3rd_party/minify/web/ab_tests/type-map/before.js.var > results_type-map.txt
C:\xampp\apache\bin\ab -c 100 -n 2000 -H "Accept-Encoding: deflate, gzip" http://mc.dev/_3rd_party/minify/web/ab_tests/ideal_php/before.php > results_ideal_php.txt
C:\xampp\apache\bin\ab -c 100 -n 2000 -H "Accept-Encoding: deflate, gzip" http://mc.dev/_3rd_party/minify/web/ab_tests/minify/before.js.php > results_minify.txt
C:\xampp\apache\bin\ab -c 100 -n 2000 -H "Accept-Encoding: deflate, gzip" http://mc.dev/_3rd_party/minify/web/ab_tests/mod_deflate/before.js > results_deflate.txt
C:\xampp\apache\bin\ab -c 100 -n 2000 -H "Accept-Encoding: deflate, gzip" http://mc.dev/_3rd_party/minify/web/ab_tests/type-map/before.js.var > results_type-map.txt

View File

@@ -0,0 +1,24 @@
<?php
/**
* The goal with this file is to benchmark serving the file doing the absolute
* least operations possible. E.g. we know we'll have to check for the file,
* check its size and the mtimes of it and the src file.
*/
$src = realpath(dirname(__FILE__) . '/../minify/before.js');
$cached = realpath(dirname(__FILE__) . '/../type-map') . '/before.js.zd';
// clearstatcache() takes over 2ms on Athlon 64 X2 5600+! Avoid at all costs!
//clearstatcache();
filemtime($src);
file_exists($cached);
filemtime($cached);
header('Cache-Control: public, max-age=31536000');
header('Expires: '. gmdate('D, d M Y H:i:s \G\M\T', $_SERVER['REQUEST_TIME'] + (86400 * 365)));
header('Content-Type: application/x-javascript; charset=utf-8');
header('Content-Encoding: deflate');
header('Content-Length: ' . filesize($cached));
readfile($cached);

View File

@@ -0,0 +1,43 @@
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/
Benchmarking mc.dev (be patient)
Server Software: Apache/2.2.4
Server Hostname: mc.dev
Server Port: 80
Document Path: /_3rd_party/minify/web/ab_tests/mod_deflate/before.js
Document Length: 16053 bytes
Concurrency Level: 100
Time taken for tests: 10.734375 seconds
Complete requests: 2000
Failed requests: 0
Write errors: 0
Total transferred: 33048000 bytes
HTML transferred: 32106000 bytes
Requests per second: 186.32 [#/sec] (mean)
Time per request: 536.719 [ms] (mean)
Time per request: 5.367 [ms] (mean, across all concurrent requests)
Transfer rate: 3006.51 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 1 9.5 0 187
Processing: 15 531 179.0 531 1000
Waiting: 0 412 191.3 453 937
Total: 15 533 179.3 546 1000
Percentage of the requests served within a certain time (ms)
50% 546
66% 546
75% 593
80% 640
90% 750
95% 875
98% 953
99% 1000
100% 1000 (longest request)

View File

@@ -0,0 +1,43 @@
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/
Benchmarking mc.dev (be patient)
Server Software: Apache/2.2.4
Server Hostname: mc.dev
Server Port: 80
Document Path: /_3rd_party/minify/web/ab_tests/ideal_php/before.php
Document Length: 15993 bytes
Concurrency Level: 100
Time taken for tests: 4.531250 seconds
Complete requests: 2000
Failed requests: 0
Write errors: 0
Total transferred: 32802000 bytes
HTML transferred: 31986000 bytes
Requests per second: 441.38 [#/sec] (mean)
Time per request: 226.563 [ms] (mean)
Time per request: 2.266 [ms] (mean, across all concurrent requests)
Transfer rate: 7069.35 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 2.7 0 31
Processing: 62 217 50.0 218 671
Waiting: 31 216 50.7 218 671
Total: 62 218 49.9 218 671
Percentage of the requests served within a certain time (ms)
50% 218
66% 218
75% 218
80% 234
90% 234
95% 265
98% 296
99% 500
100% 671 (longest request)

View File

@@ -0,0 +1,43 @@
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/
Benchmarking mc.dev (be patient)
Server Software: Apache/2.2.4
Server Hostname: mc.dev
Server Port: 80
Document Path: /_3rd_party/minify/web/ab_tests/minify/before.js.php
Document Length: 15993 bytes
Concurrency Level: 100
Time taken for tests: 17.312500 seconds
Complete requests: 2000
Failed requests: 0
Write errors: 0
Total transferred: 32736000 bytes
HTML transferred: 31986000 bytes
Requests per second: 115.52 [#/sec] (mean)
Time per request: 865.625 [ms] (mean)
Time per request: 8.656 [ms] (mean, across all concurrent requests)
Transfer rate: 1846.53 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 2.1 0 15
Processing: 125 853 150.1 844 1296
Waiting: 125 852 150.1 843 1281
Total: 125 854 150.1 859 1296
Percentage of the requests served within a certain time (ms)
50% 859
66% 906
75% 953
80% 984
90% 1046
95% 1109
98% 1156
99% 1187
100% 1296 (longest request)

View File

@@ -0,0 +1,43 @@
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/
Benchmarking mc.dev (be patient)
Server Software: Apache/2.2.4
Server Hostname: mc.dev
Server Port: 80
Document Path: /_3rd_party/minify/web/ab_tests/type-map/before.js.var
Document Length: 15993 bytes
Concurrency Level: 100
Time taken for tests: 4.171875 seconds
Complete requests: 2000
Failed requests: 0
Write errors: 0
Total transferred: 33044000 bytes
HTML transferred: 31986000 bytes
Requests per second: 479.40 [#/sec] (mean)
Time per request: 208.594 [ms] (mean)
Time per request: 2.086 [ms] (mean, across all concurrent requests)
Transfer rate: 7734.89 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 2.9 0 31
Processing: 31 202 53.4 203 453
Waiting: 15 195 52.1 203 453
Total: 31 202 53.4 203 453
Percentage of the requests served within a certain time (ms)
50% 203
66% 218
75% 218
80% 218
90% 250
95% 312
98% 343
99% 343
100% 453 (longest request)