2011-05-03 22:50, Domas Mituzas skrev: > Hi! > >> I'm not sure what you are profiling, > > Wikipedia :) > >> but when repeatingly requesting a >> preview of an article containing 200000 bytes of data consisting of the >> pattern "a a a a a a " I got the below results. (The php parser doesn't >> seem to depend on perl regexps.) > > I'm sure nothing profiles better than a synthetic edge case. What do you mean > by it not depending on perl regexps? It is top symbol in your profile. >
The discussion was concerning parser performance, so a profile of only parser execution would have been most relevant. In my profiling data, parser execution dominates, and as you can see, its mostly regexp evaluation. (With "php parser", I was referring to "zendparse" and "lex_scan", which doesn't seem to use libpcre. I.e., almost all calls to libpcre is made from the wikitext parser.) /Andreas >> CPU: CPU with timer interrupt, speed 0 MHz (estimated) >> Profiling through timer interrupt >> samples % app name symbol name >> 994 23.4933 libpcre.so.3.12.1 /lib/libpcre.so.3.12.1 >> 545 12.8811 libphp5.so zendparse >> 369 8.7213 libphp5.so lex_scan >> 256 6.0506 libc-2.11.2.so memcpy >> 137 3.2380 libphp5.so zend_hash_find >> 135 3.1907 libphp5.so _zend_mm_alloc_canary_int >> 105 2.4817 libphp5.so __i686.get_pc_thunk.bx >> 90 2.1272 libphp5.so _zend_mm_free_canary_int >> 67 1.5835 libphp5.so zif_strtr >> 59 1.3945 libphp5.so zend_mm_add_to_free_list >> 48 1.1345 libphp5.so zend_mm_remove_from_free_list > > Domas > > > _______________________________________________ > Wikitech-l mailing list > [email protected] > https://lists.wikimedia.org/mailman/listinfo/wikitech-l > _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
