diff --git a/benchmark/xml/lexer/cdata_bench.rb b/benchmark/xml/lexer/cdata_bench.rb deleted file mode 100644 index a35f84b..0000000 --- a/benchmark/xml/lexer/cdata_bench.rb +++ /dev/null @@ -1,20 +0,0 @@ -require_relative '../../benchmark_helper' - -string = 'Hello, how are you doing today?' -small = "" -medium = "" -large = "" - -Benchmark.ips do |bench| - bench.report 'CDATA with a small body' do - Oga::XML::Lexer.new(small).lex - end - - bench.report 'CDATA with a medium body' do - Oga::XML::Lexer.new(medium).lex - end - - bench.report 'CDATA with a large body' do - Oga::XML::Lexer.new(large).lex - end -end diff --git a/benchmark/xml/lexer/element_bench.rb b/benchmark/xml/lexer/element_bench.rb deleted file mode 100644 index f8768cb..0000000 --- a/benchmark/xml/lexer/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::Lexer.new(simple).lex - end - - bench.report 'text + attributes' do - Oga::XML::Lexer.new(attributes).lex - end - - bench.report 'text + children' do - Oga::XML::Lexer.new(nested).lex - end -end