I did a bit of rather unscientific benchmarking using my old bench_main.php script which tries to be a bit more than a microbenchmark. The fastest run for each were:
time(0): 10000 fetches, 5 max parallel, 2.73e+07 bytes, in 15.314 seconds 2730 mean bytes/connection 652.998 fetches/sec, 1.78268e+06 bytes/sec msecs/connect: 0.971112 mean, 9.15 max, 0.12 min msecs/first-response: 5.875 mean, 865.369 max, 0.948 min HTTP response codes: code 200 -- 10000 sapi_get_request_time(TSRMLS_C): 10000 fetches, 5 max parallel, 2.73e+07 bytes, in 14.6932 seconds 2730 mean bytes/connection 680.588 fetches/sec, 1.85801e+06 bytes/sec msecs/connect: 0.983568 mean, 7.28 max, 0.114 min msecs/first-response: 5.61483 mean, 794.504 max, 0.933 min HTTP response codes: code 200 -- 10000 The standard of deviation was rather high though. Over 10 runs on each the averages were: time: 646 req/sec sapi: 659 req/sec This is on my MBP with Ubuntu 7.04 running in vmware fusion with one of the cores dedicated to the vm to mostly make it immune to other things happening on the machine apart from IO contention. The io contention should be minimal due to APC being installed and warmed up before each run so apart from the stat calls, there is no disk io involved. The bench script itself is here: http://lerdorf.com/php/bench.tar.gz -Rasmus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php