Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

improve benchmark script

  • Loading branch information...
commit 28b6a11dbc6c342e0c645019143a749bfd76e1dc 1 parent bbf3806
Rich Lane authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  devel/benchmark.rb
View
3  devel/benchmark.rb
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
+require 'tempfile'
if ENV['RBVMOMI_COVERAGE'] == '1'
require 'simplecov'
@@ -80,7 +81,7 @@ def diff a, b
Benchmark.bmbm do|b|
GC.start
b.report("nokogiri parsing") do
- N.times { Nokogiri(raw) }
+ N.times { Nokogiri::XML(raw) }
end
GC.start
Please sign in to comment.
Something went wrong with that request. Please try again.