Sha256: 44ee71aa7504b49fd2775325a4555805fa7c9866997a75b49dffa8a951962699

Contents?: true

Size: 424 Bytes

Versions: 5

Compression:

Stored size: 424 Bytes

Contents

require 'helper'
require 'benchmark'

class TestParserEvaluator < Test::Unit::TestCase
  
  class Tracker3
    def initialize(n); end
  end

  def test_parses_huge
    pe = Tickly::NodeProcessor.new
    pe.add_node_handler_class(Tracker3)
    
    Benchmark.bm do | runner |
      runner.report("Parsing a huge Nuke script:") do
        counter = 0
        pe.parse(HUGE_SCRIPT) { counter += 1 }
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tickly-2.1.6 test/test_benchmark.rb
tickly-2.1.5 test/test_benchmark.rb
tickly-2.1.4 test/test_benchmark.rb
tickly-2.1.3 test/test_benchmark.rb
tickly-2.1.2 test/test_benchmark.rb