Anyone else want to compare benchmarks with ab. This is what I got testing a 2meg file.
* Concurrency Level: 200
* Complete requests: 1000
* Document Length: 2248841 bytes
* Requests per second:
- direct request: 4.72s
- fpassthru: 5.03s (110/200 failed requests)
- fread: 3.93s (191/200 failed requests LOL)
- readfile: 5.05s (114/200 failed requests)
This is what happened when I lowered the concurrency level to 100 so all requests would complete.
* Concurrency Level: 100
* Complete requests: 1000
* Document Length: 2248841 bytes
* Requests per second:
- direct request: 4.72s
- fpassthru: 5.06s
- fread: 5.07s
- readfile: 5.05s
As you can see it looks like fpassthru looks like it was a winner by a hair. They all used approximately the same amount of memory (+- 6 megs), I kept an eye on it with a top process.
Please monitor your memory while benchmarking and make sure and restart apache after every test, I learned that the hard way.