Skip to content

Instantly share code, notes, and snippets.

@yorickpeterse
Created February 22, 2015 23:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yorickpeterse/3835874051c0f36234f9 to your computer and use it in GitHub Desktop.
Save yorickpeterse/3835874051c0f36234f9 to your computer and use it in GitHub Desktop.
git clone git@github.com:YorickPeterse/oga.git
git checkout ruby-ll # if this complains, use git checkout -b ruby-ll origin/ruby-ll
bundle install
gem install oga
rake generate fixtures
# To benchmark the old parser, open benchmark/benchmark_helper.rb
# and replace the require_relative on line 5 with require 'oga'
# Then to benchmark it:
ruby benchmark/xml/parser/parser_bench.rb
# To benchmark the new parser, change line 5 of benchmark_helper.rb
# back to the require_relative call.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment