Created
September 2, 2014 18:56
-
-
Save yorickpeterse/ff9f16be02e7bfce8da7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Calculating ------------------------------------- | |
Ox 16741 i/100ms | |
Nokogiri 4248 i/100ms | |
Oga 975 i/100ms | |
Oga cached 2557 i/100ms | |
REXML 1069 i/100ms | |
------------------------------------------------- | |
Ox 214047.0 (±1.6%) i/s - 1071424 in 5.006828s | |
Nokogiri 46610.0 (±7.7%) i/s - 233640 in 5.040502s | |
Oga 9946.5 (±1.3%) i/s - 49725 in 5.000172s | |
Oga cached 27340.7 (±1.5%) i/s - 138078 in 5.051592s | |
REXML 10909.6 (±1.4%) i/s - 55588 in 5.096404s | |
Comparison: | |
Ox: 214047.0 i/s | |
Nokogiri: 46610.0 i/s - 4.59x slower | |
Oga cached: 27340.7 i/s - 7.83x slower | |
REXML: 10909.6 i/s - 19.62x slower | |
Oga: 9946.5 i/s - 21.52x slower |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Benchmark code: https://github.com/YorickPeterse/oga/blob/d92133ef437d66e2b85fbebcc181a563c2d72363/benchmark/xpath/parser/comparing_gems_bench.rb