Class: XmlElementBenchmark
- Inherits:
-
Object
- Object
- XmlElementBenchmark
- Defined in:
- lib/tasks/xml_optimization_benchmark.rb
Instance Method Summary collapse
-
#initialize(run_time: nil, items: nil) ⇒ XmlElementBenchmark
constructor
A new instance of XmlElementBenchmark.
- #run ⇒ Object
Constructor Details
#initialize(run_time: nil, items: nil) ⇒ XmlElementBenchmark
Returns a new instance of XmlElementBenchmark.
11 12 13 14 |
# File 'lib/tasks/xml_optimization_benchmark.rb', line 11 def initialize(run_time: nil, items: nil) @run_time = run_time || 10 @items = items || 100 end |
Instance Method Details
#run ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/tasks/xml_optimization_benchmark.rb', line 16 def run puts "=" * 80 puts "XmlElement Optimization Benchmarks" puts "=" * 80 puts benchmark_child_index benchmark_namespaced_name_memoization benchmark_children_count benchmark_parsing puts puts "=" * 80 end |