This is a very basic benchmark page just to see how our implementation fare agains the others:
The code for each engine has been slightly modified to make sure the native implementation isn’t used. Note that the McCormack engine is so slow that your browser may prompt you to stop the script.
View this page with Firefox which has a
reliable native XPath for comparison. The benchmark test for each engine is run in a separate
iframe and every expression is run 10 times for a more stable result.
The test page is quite small.
If you know of any other XPath engine or wan’t additional expression benchmarked, please contact me.
| Expression | Native | LlamaLab | Cybozu | McCormack | ||||||
| Time | Nodes | Time | Nodes | Time | Nodes | Time | Nodes | Time | Nodes | |
| Total | ||||||||||
Time in milliseconds total execution time divided by iterations (10). Nodes returned number of resulting nodes matched, should be same as Native result.