PIC vs. non-PIC, take #2
After mentioning George's URL to Rasmus, he mentioned that George's blog is full of spam and that I should do those test myself rather. So I did (Not because Rasmsus said it, but because I only believe what I see myself ;-) The results did definitely show that a statically compile PHP module is faster than a DSO module, though it heavily depends on the script on how much it matters. I tested three different applications, a Hello World script (which doesn't print "Hello World", the homepage of a phpMyAdmin installation and three different configurations of eZ publish .
The "Hello World" application shows the largest performance increase, likely because it is pure PHP code only. The script ran 28% percent faster, and the raw data for this test is here .
Both phpMyAdmin and eZ publish show an increase of little more than 10%, which is not the 30% that was mentioned before, but definitely a worthwhile increase, and it simply comes by running PHP as a static (or non-PIC) module in Apache. Now let's hope that Joe can commit his patch soon. Raw results are available too, for phpMyAdmin and eZ publish .
Comments
Derick,
When compiling php5 statically into apache, do I need to set any config attributes for this NON-pic stuff? (what the heck is PIC anyways?!)
Thanks.
Mike
No, you don't have to do anything, as PIC only has effect when linking against a shared library. PIC is Position Independent Code, allowing you to use the same shared library in different memory spaces (afaik).
Sorry, I posted this on the previous post.
I was wondering, what tool do you use to generate graphics from ab results
I used open office to visualize the results. And exported that too a PNG image.
Life Line
I know my French is pretty terrible, but I'm sure I'm closer to the correct answer than what's shown here...
Merge branch 'v2022'
Merge pull request #169 from psumbera/solaris-2
I walked 7.0km in 1h6m48s
Fixed some ffing sidewalks again.
I walked 10.5km in 1h40m26s
Updated a pet_grooming shop
I walked 8.6km in 2h12m58s
I walked 8.7km in 1h24m16s
Updated a restaurant
I walked 2.4km in 24m20s
I walked 6.6km in 1h4m32s
I walked 0.6km in 4m38s
I walked 8.5km in 1h22m35s
Merged pull request #1029
Reflow some comments
Add comments, add end of file newlines, fix php 8.5 compilation
Benchmark Xdebug performance
Merged pull request #1051
PHP 8.6: printf() is now optimised out if it only uses %s and %d (and…
PHP 8.6: The object IDs of objects changed in tests
PHP 8.6: ZSTR_INIT_LITERAL() no longer takes non-literals, so use zen…
PHP 8.6: WRONG_PARAM_COUNT has been removed in favour of zend_wrong_p…
PHP 8.6: zval_dtor() has been deprecated in favour of zval_ptr_dtor_n…
Update test for version constraints, as well as the error messages


Shortlink
This article has a short URL available: https://drck.me/pvnt-2-3h5