Namespaced the profile directories.

This commit is contained in:
Yorick Peterse 2014-06-13 00:33:53 +02:00
parent 61d553be34
commit e75cd0ede8
12 changed files with 29 additions and 29 deletions

4
.gitignore vendored
View File

@ -11,8 +11,8 @@ lib/liboga.*
benchmark/fixtures/big.xml
profile/samples/*.txt
profile/samples/*/*.txt
profile/samples/xml/*.txt
profile/samples/xml/*/*.txt
*.so
tmp

View File

@ -1,7 +0,0 @@
require_relative '../profile_helper'
xml = read_big_xml
profile_memory('lexer/big_xml') do
Oga::XML::Lexer.new(xml).advance { }
end

View File

@ -1,5 +0,0 @@
require_relative '../profile_helper'
profile_memory('lexer/big_xml') do
Oga::XML::Lexer.new(big_xml_file).advance { }
end

View File

@ -1,7 +0,0 @@
require_relative '../profile_helper'
xml = read_big_xml
profile_memory('parser/big_xml') do
Oga::XML::Parser.new(xml).parse
end

View File

@ -1,8 +0,0 @@
require_relative '../profile_helper'
xml = read_big_xml
profile_memory('pull_parser/big_xml') do
Oga::XML::PullParser.new(xml).parse { }
end

View File

@ -0,0 +1,7 @@
require_relative '../../profile_helper'
xml = read_big_xml
profile_memory('xml/lexer/big_xml') do
Oga::XML::Lexer.new(xml).advance { }
end

View File

@ -0,0 +1,5 @@
require_relative '../../profile_helper'
profile_memory('xml/lexer/big_xml') do
Oga::XML::Lexer.new(big_xml_file).advance { }
end

View File

@ -0,0 +1,7 @@
require_relative '../../profile_helper'
xml = read_big_xml
profile_memory('xml/parser/big_xml') do
Oga::XML::Parser.new(xml).parse
end

View File

@ -0,0 +1,8 @@
require_relative '../../profile_helper'
xml = read_big_xml
profile_memory('xml/pull_parser/big_xml') do
Oga::XML::PullParser.new(xml).parse { }
end