File: flatbench.rb

package info (click to toggle)
librexml-ruby 1.2.5-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 792 kB
  • ctags: 655
  • sloc: ruby: 3,778; xml: 1,609; java: 109; makefile: 43
file content (12 lines) | stat: -rw-r--r-- 200 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/ruby -I. -w

require "rexml/document"
require "cps"

b = CPS.new 5
File.open("../documentation.xml") do |source|
	b.time("Parse big") {
		REXML::Document.new(source)
		source.rewind
	}
end