fPaste.me

A free, anonymous, minimalist and open source paste tool.


Fat Free Route Test
14-08-2020 01:10:35
Anonymous
3 Tests. 1000 routes selecting the first route. 1000 routes selecting the last route, and 1 route selecting the first route.

Routes were created with the below code:
<?php

for($i = 0; $i < 1000; ++$i) {
$md5 = md5(microtime(true).uniqid('', true));
$random_number = rand(6, 32);
$url = substr($md5, 0, $random_number);
if($random_number % 4 === 0) {
$url = substr($url, 0, 5).'/'.substr($url, 5);
}
echo "\$fw->addRoute('GET {$url}', function() { header('Content-Type: application/json'); echo json_encode([ 'nailed' => 'it' ]); });\n";
}
exit;
?>

# 1000 routes first route

$ ab -n 10000 -c 100 http://localhost:8006/5709e37d34882873b33aaa
This is ApacheBench, Version 2.3 <$Revision: 1807734 $>
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)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Completed 10000 requests
Finished 10000 requests


Server Software:
Server Hostname: localhost
Server Port: 8006

Document Path: /5709e37d34882873b33aaa
Document Length: 15 bytes

Concurrency Level: 100
Time taken for tests: 34.522 seconds
Complete requests: 10000
Failed requests: 0
Total transferred: 3850000 bytes
HTML transferred: 150000 bytes
Requests per second: 289.67 [#/sec] (mean)
Time per request: 345.223 [ms] (mean)
Time per request: 3.452 [ms] (mean, across all concurrent requests)
Transfer rate: 108.91 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.3 0 5
Processing: 4 343 20.0 343 379
Waiting: 4 343 20.0 343 379
Total: 9 343 19.7 343 379

Percentage of the requests served within a certain time (ms)
50% 343
66% 345
75% 347
80% 349
90% 354
95% 358
98% 369
99% 372
100% 379 (longest request)
# 1000 routes last route
$ ab -n 10000 -c 100 http://localhost:8006/0b3aef788d
This is ApacheBench, Version 2.3 <$Revision: 1807734 $>
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)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Completed 10000 requests
Finished 10000 requests


Server Software:
Server Hostname: localhost
Server Port: 8006

Document Path: /0b3aef788d
Document Length: 15 bytes

Concurrency Level: 100
Time taken for tests: 39.732 seconds
Complete requests: 10000
Failed requests: 0
Total transferred: 3850000 bytes
HTML transferred: 150000 bytes
Requests per second: 251.69 [#/sec] (mean)
Time per request: 397.320 [ms] (mean)
Time per request: 3.973 [ms] (mean, across all concurrent requests)
Transfer rate: 94.63 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.3 0 5
Processing: 6 395 36.9 387 543
Waiting: 6 395 36.9 387 543
Total: 12 395 36.7 387 543

Percentage of the requests served within a certain time (ms)
50% 387
66% 400
75% 411
80% 418
90% 437
95% 455
98% 487
99% 502
100% 543 (longest request)

# 1 route, 1st route
$ ab -n 10000 -c 100 http://localhost:8006/5709e37d34882873b33aaa
This is ApacheBench, Version 2.3 <$Revision: 1807734 $>
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)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Completed 10000 requests
Finished 10000 requests


Server Software:
Server Hostname: localhost
Server Port: 8006

Document Path: /5709e37d34882873b33aaa
Document Length: 15 bytes

Concurrency Level: 100
Time taken for tests: 2.659 seconds
Complete requests: 10000
Failed requests: 0
Total transferred: 3850000 bytes
HTML transferred: 150000 bytes
Requests per second: 3760.22 [#/sec] (mean)
Time per request: 26.594 [ms] (mean)
Time per request: 0.266 [ms] (mean, across all concurrent requests)
Transfer rate: 1413.76 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.3 0 4
Processing: 2 26 2.2 26 38
Waiting: 2 26 2.2 26 38
Total: 6 26 2.0 26 38

Percentage of the requests served within a certain time (ms)
50% 26
66% 26
75% 27
80% 28
90% 29
95% 30
98% 30
99% 32
100% 38 (longest request)