Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/razum2um/ruby-xml-mappers-bench
compare various xml -> ruby datastructures
https://github.com/razum2um/ruby-xml-mappers-bench
parsing ruby xml
Last synced: about 1 month ago
JSON representation
compare various xml -> ruby datastructures
- Host: GitHub
- URL: https://github.com/razum2um/ruby-xml-mappers-bench
- Owner: razum2um
- Created: 2018-03-15T14:51:32.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-15T15:19:22.000Z (almost 7 years ago)
- Last Synced: 2024-10-19T14:39:10.431Z (3 months ago)
- Topics: parsing, ruby, xml
- Language: Ruby
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Compare various xml -> ruby datastructures
- [dsl_parsers (Ox/Nokogiri)](https://github.com/shredder-rull/dsl_parsers)
- [xml-mapping](https://github.com/multi-io/xml-mapping)# Results
```
Calculating -------------------------------------
ox_dsl_parsers 466.000 i/100ms
nokogiri_dsl_parsers 84.000 i/100ms
xml_mapping 33.000 i/100ms
-------------------------------------------------
ox_dsl_parsers 4.612k (± 5.5%) i/s - 23.300k
nokogiri_dsl_parsers 913.449 (±10.9%) i/s - 4.536k
xml_mapping 326.724 (± 4.3%) i/s - 1.650kComparison:
ox_dsl_parsers: 4611.6 i/s
nokogiri_dsl_parsers: 913.4 i/s - 5.05x slower
xml_mapping: 326.7 i/s - 14.11x slower
```# Replicate
```sh
ruby bench.rb
``````
rspec spec.rb
```