Skip to content
Rails app to benchmark Nokogiri's XML builder vs Builder
Ruby JavaScript
Find file
Pull request Compare This branch is 2 commits ahead of mattetti:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
app
config
db
doc
lib
log
public
script
test
.gitignore
.rvmrc
README
Rakefile

README

# Nokogiri vs Builder vs Haml vs ERB Rails benchmark app

See http://railsontherun.com/2010/02/22/speed-up-your-rails-xml-responses/

Start the app and run the following benchmarks:

$ ab -c 1 -n 200 http://127.0.0.1:3000/benchmarks/builder_small
$ ab -c 1 -n 200 http://127.0.0.1:3000/benchmarks/nokogiri_small
$ ab -c 1 -n 200 http://127.0.0.1:3000/benchmarks/builder
$ ab -c 1 -n 200 http://127.0.0.1:3000/benchmarks/nokogiri
$ ab -c 1 -n 200 http://127.0.0.1:3000/benchmarks/haml
$ ab -c 1 -n 200 http://127.0.0.1:3000/benchmarks/erb
Something went wrong with that request. Please try again.