diff --git a/benchmark/parse.yaml b/benchmark/parse.yaml index e7066fcb..f2c7d336 100644 --- a/benchmark/parse.yaml +++ b/benchmark/parse.yaml @@ -47,7 +47,7 @@ prelude: | end benchmark: - 'dom' : REXML::Document.new(xml).elements.each("root/child") {|_|} + 'dom' : REXML::Document.new(xml) 'sax' : REXML::Parsers::SAX2Parser.new(xml).parse 'pull' : | parser = REXML::Parsers::PullParser.new(xml)