Replaced the HRS fixture with one from Gist.

The HRS output is invalid, which Oga can not handle at this time.
This commit is contained in:
Yorick Peterse 2014-04-10 21:31:01 +02:00
parent 25edd2de00
commit 144c95cbb4
5 changed files with 2366 additions and 4499 deletions

2363
benchmark/fixtures/gist.html Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
require_relative '../../lib/oga' require_relative '../../lib/oga'
require 'benchmark/ips' require 'benchmark/ips'
html = File.read(File.expand_path('../../fixtures/hrs.html', __FILE__)) html = File.read(File.expand_path('../../fixtures/gist.html', __FILE__))
Benchmark.ips do |bench| Benchmark.ips do |bench|
bench.report 'lex HTML' do bench.report 'lex HTML' do

View File

@ -1,7 +1,7 @@
require_relative '../../lib/oga' require_relative '../../lib/oga'
require 'benchmark' require 'benchmark'
html = File.read(File.expand_path('../../fixtures/hrs.html', __FILE__)) html = File.read(File.expand_path('../../fixtures/gist.html', __FILE__))
Benchmark.bmbm(20) do |bench| Benchmark.bmbm(20) do |bench|
bench.report 'lex HTML' do bench.report 'lex HTML' do

View File

@ -1,7 +1,7 @@
require_relative '../../lib/oga' require_relative '../../lib/oga'
require 'benchmark/ips' require 'benchmark/ips'
html = File.read(File.expand_path('../../fixtures/hrs.html', __FILE__)) html = File.read(File.expand_path('../../fixtures/gist.html', __FILE__))
Benchmark.ips do |bench| Benchmark.ips do |bench|
bench.report 'parse HTML' do bench.report 'parse HTML' do