I don't have a benchmark on pure selects but my guess would be that mysql is still faster. I'm not a mysql guru but with mysql key buffer in memory it's pretty fast.
Here are the benchmarks for this script. Before it was essentially 1 update:
sqlite 2.8.17
Server Software: Cherokee/0.99.17
Server Port: 81
Document Length: 223 bytes
Concurrency Level: 100
Time taken for tests: 80.220 seconds
Complete requests: 10000
Failed requests: 1700
(Connect: 0, Receive: 0, Length: 1700, Exceptions: 0)
Write errors: 0
Non-2xx responses: 1700
Total transferred: 5643700 bytes
HTML transferred: 2247000 bytes
Requests per second: 124.66 [#/sec] (mean)
Time per request: 802.196 [ms] (mean)
Time per request: 8.022 [ms] (mean, across all concurrent requests)
Transfer rate: 68.70 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 1.0 0 7
Processing: 5 799 772.9 602 4430
Waiting: 3 798 773.2 602 4425
Total: 5 799 773.5 602 4430
Percentage of the requests served within a certain time (ms)
50% 602
66% 644
75% 669
80% 683
90% 1693
95% 2870
98% 3637
99% 4398
100% 4430 (longest request)
sqlite 3.3.7
Server Software: Cherokee/0.99.17
Server Port: 81
Document Length: 304 bytes
Concurrency Level: 100
Time taken for tests: 98.782 seconds
Complete requests: 10000
Failed requests: 9800
(Connect: 0, Receive: 0, Length: 9800, Exceptions: 0)
Write errors: 0
Non-2xx responses: 1502
Total transferred: 6367858 bytes
HTML transferred: 2941656 bytes
Requests per second: 101.23 [#/sec] (mean)
Time per request: 987.818 [ms] (mean)
Time per request: 9.878 [ms] (mean, across all concurrent requests)
Transfer rate: 62.95 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 1.1 0 19
Processing: 3 985 1234.6 760 9226
Waiting: 3 985 1234.9 759 9226
Total: 3 986 1235.2 760 9227
Percentage of the requests served within a certain time (ms)
50% 760
66% 833
75% 835
80% 1025
90% 1901
95% 3268
98% 5014
99% 7017
100% 9227 (longest request)
mysql 5.0.77
Server Software: Cherokee/0.99.17
Server Port: 81
Document Length: 223 bytes
Concurrency Level: 100
Time taken for tests: 54.006 seconds
Complete requests: 10000
Failed requests: 1600
(Connect: 0, Receive: 0, Length: 1600, Exceptions: 0)
Write errors: 0
Non-2xx responses: 1600
Total transferred: 5657600 bytes
HTML transferred: 2246000 bytes
Requests per second: 185.16 [#/sec] (mean)
Time per request: 540.060 [ms] (mean)
Time per request: 5.401 [ms] (mean, across all concurrent requests)
Transfer rate: 102.30 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.9 0 7
Processing: 6 538 569.0 378 4223
Waiting: 3 537 569.4 378 4223
Total: 6 538 569.6 378 4228
Percentage of the requests served within a certain time (ms)
50% 378
66% 391
75% 393
80% 396
90% 1422
95% 1760
98% 2069
99% 3862
100% 4228 (longest request)
But then in my brilliance I switched it to just inserts:
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd,
Application Delivery Networking, Application Acceleration, Internet Traffic Management System : Zeus.com
mysql 5 unknown version
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: Cherokee/0.99.17
Server Port: 80
Document Length: 38 bytes
Concurrency Level: 50
Time taken for tests: 9.487 seconds
Complete requests: 10000
Failed requests: 7737
(Connect: 0, Receive: 0, Length: 7737, Exceptions: 0)
Write errors: 0
Total transferred: 4919492 bytes
HTML transferred: 374746 bytes
Requests per second: 1054.02 [#/sec] (mean)
Time per request: 47.437 [ms] (mean)
Time per request: 0.949 [ms] (mean, across all concurrent requests)
Transfer rate: 506.37 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.9 0 34
Processing: 11 47 13.2 46 108
Waiting: 3 15 6.1 14 49
Total: 11 47 13.2 47 109
Percentage of the requests served within a certain time (ms)
50% 47
66% 52
75% 56
80% 58
90% 65
95% 70
98% 76
99% 81
100% 109 (longest request)
inserts are super fast yay! sorry for not having anything of use about selects. check out and that blog in general:
http://www.mysqlperformanceblog.com/2006/09/29/what-to-tune-in-mysql-server-after-installation/
also, stop fucking coding and sling some berries mang!