https://bugzilla.wikimedia.org/show_bug.cgi?id=26605
Antoine "hashar" Musso <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #4 from Antoine "hashar" Musso <[email protected]> 2012-01-30 13:38:33 UTC --- I got different result where indirect calls are both slower: $ php bench_strtr_str_replace.php --count=10000 10000 times: function bench_strtr_str_replace->benchstrtr() : 57.79ms ( 0.01ms each) 10000 times: function bench_strtr_str_replace->benchstr_replace() : 58.82ms ( 0.01ms each) 10000 times: function bench_strtr_str_replace->benchstrtr_indirect() : 73.34ms ( 0.01ms each) 10000 times: function bench_strtr_str_replace->benchstr_replace_indirect() : 75.39ms ( 0.01ms each) On a Macbook Air ( 1.7 GHz Intel Core i5 ) with Mac OS X 10.7.2 PHP: $ php -version PHP 5.3.6 with Suhosin-Patch (cli) (built: Sep 8 2011 19:34:00) Copyright (c) 1997-2011 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies with Xdebug v2.1.2, Copyright (c) 2002-2011, by Derick Rethans $ A nice function will probably makes code nicer though. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
