Commit cc34868
committed
Add XPath
## Benchmark (Comparison with rexml 3.4.1)
```
$ benchmark-driver benchmark/xpath.yaml
Calculating -------------------------------------
rexml 3.4.1 master 3.4.1(YJIT) master(YJIT)
REXML::XPath.match(REXML::Document.new(xml), 'a//a') 29.377 232.139 110.206 493.075 i/s - 100.000 times in 3.403986s 0.430776s 0.907389s 0.202809s
Comparison:
REXML::XPath.match(REXML::Document.new(xml), 'a//a')
master(YJIT): 493.1 i/s
master: 232.1 i/s - 2.12x slower
3.4.1(YJIT): 110.2 i/s - 4.47x slower
rexml 3.4.1: 29.4 i/s - 16.78x slower
```
- YJIT=ON : 4.47x faster
- YJIT=OFF : 7.90x fastera//a Benchmark1 parent 7a16a63 commit cc34868
1 file changed
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
0 commit comments