WordPress.org

Make WordPress Core

Ticket #17019: perftest-results.htm

File perftest-results.htm, 1.4 KB (added by kevinB, 4 years ago)

Results of performance test for various numbers of queriers and filters.

Line 
1<p>Running performance test for WP ticket #17019 to show:</p><ul><li>cost of superfluous call_user_func_array() calls in apply_filters_ref_array()</li><li>cost of context check to avoid them</li></ul><table border=1><thead><th>Queries</th><th>Filters</th><th>superfluous<br />call_user_func()<br />(current)</th><th>additional<br />empty()<br />(proposed)</th></thead><tbody><p>Premise:</p><ul><li>M filters are added to 'post_where'</li><li>but each filter only applies to only 1 of the N queries, and will return an unaltered WHERE clause for all other queries.</li></ul><p>Results:</p><tr><td>1</td><td>0</td><td>0 msec</td><td>0.02 msec</td></tr><tr><td>5</td><td>0</td><td>0 msec</td><td>0.01 msec</td></tr><tr><td>2</td><td>5</td><td>0.06 msec</td><td>0.01 msec</td></tr><tr><td>5</td><td>5</td><td>0.14 msec</td><td>0.01 msec</td></tr><tr><td>5</td><td>10</td><td>0.29 msec</td><td>0.01 msec</td></tr><tr><td>5</td><td>20</td><td>0.6 msec</td><td>0.01 msec</td></tr><tr><td>10</td><td>5</td><td>0.25 msec</td><td>0.02 msec</td></tr><tr><td>10</td><td>10</td><td>0.57 msec</td><td>0.03 msec</td></tr><tr><td>10</td><td>20</td><td>1.2 msec</td><td>0.02 msec</td></tr><tr><td>10</td><td>50</td><td>3.09 msec</td><td>0.02 msec</td></tr><tr><td>20</td><td>50</td><td>6.16 msec</td><td>0.05 msec</td></tr><tr><td>100</td><td>100</td><td>62.43 msec</td><td>0.25 msec</td></tr></tbody></table><br />test done.