Created
September 2, 2014 18:35
-
-
Save yorickpeterse/8d565b7b57f425f7fab5 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 1 i/100ms | |
Nokogiri 1 i/100ms | |
Oga 1 i/100ms | |
REXML 1 i/100ms | |
------------------------------------------------- | |
Ox 8.3 (±36.2%) i/s - 33 in 5.634501s | |
Nokogiri 5.8 (±17.3%) i/s - 29 in 5.057248s | |
Oga 0.3 (±0.0%) i/s - 2 in 6.983573s | |
REXML 0.1 (±0.0%) i/s - 1 in 10.576113s | |
Comparison: | |
Ox: 8.3 i/s | |
Nokogiri: 5.8 i/s - 1.43x slower | |
Oga: 0.3 i/s - 28.91x slower | |
REXML: 0.1 i/s - 87.61x 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/xml/parser/comparing_gems_bench.rb