|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re^11: appending to html at beginning (psgi kids)by Anonymous Monk |
| on Mar 03, 2017 at 01:23 UTC ( [id://1183493]=note: print w/replies, xml ) | Need Help?? |
|
And how many workers does apache have? I think thats what you're seeing This is what I tried, can't get simpler/faster than this, cgi-bin/printenv.pl
This one does more (loads modules) so it should be slower , dumpenv.psgi started with plackup -l 127.6.6.6:80 dumpenv.psgi 2>2 1>1
Then see whats faster
I tried it a bunch of times, and psgi is faster "half" the time (ok 4/10 or 3/10)
So is apache "cgi" or psgi faster? My Apache is configured with ThreadsPerChild 4 -- not sure how many actual workers that is on my machine, but I see two apache processes ... one has 1 thread the other has 6, so 6 or 7 workers? And psgi still wins 3/10 times? How does that make apache faster? But yeah maybe the LWP is skewing the benchmark or .... something I dont understand
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||