Removed a useless XML parser benchmark.

This commit is contained in:
Yorick Peterse 2014-09-02 10:04:20 +02:00
parent 69f1cd0a40
commit aad9279048
1 changed files with 0 additions and 19 deletions

View File

@ -1,19 +0,0 @@
require_relative '../../benchmark_helper'
simple = '<p>Hello world</p>'
attributes = '<p class="foo">Hello world</p>'
nested = '<p>Hello<strong>world</strong></p>'
Benchmark.ips do |bench|
bench.report 'text only' do
Oga::XML::Parser.new(simple).parse
end
bench.report 'text + attributes' do
Oga::XML::Parser.new(attributes).parse
end
bench.report 'text + children' do
Oga::XML::Parser.new(nested).parse
end
end