From aad9279048244eff5285aa796a7f9e2f42bcfe14 Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Tue, 2 Sep 2014 10:04:20 +0200 Subject: [PATCH] Removed a useless XML parser benchmark. --- benchmark/xml/parser/element_bench.rb | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 benchmark/xml/parser/element_bench.rb diff --git a/benchmark/xml/parser/element_bench.rb b/benchmark/xml/parser/element_bench.rb deleted file mode 100644 index 7270b3d..0000000 --- a/benchmark/xml/parser/element_bench.rb +++ /dev/null @@ -1,19 +0,0 @@ -require_relative '../../benchmark_helper' - -simple = '

Hello world

' -attributes = '

Hello world

' -nested = '

Helloworld

' - -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