Sha256: 36d911ec63da7d96bb6b5a5ad768ee819285a28679e6a2cf6224f5e820ab1cff
Contents?: true
Size: 590 Bytes
Versions: 2
Compression:
Stored size: 590 Bytes
Contents
class PerfTestExample def test(a,b,c) (0..100000).to_a.reverse.reverse.reverse # Do something heavy end def test_np (0..300000).to_a.reverse.reverse.reverse # Do something heavy end def self.static_method (0..300000).to_a.reverse.reverse.reverse # Do something heavy end def test_with_measure Perf::MeterFactory.get.measure(:test_with_measure_block) do test(1,2,3) PerfTestExample.static_method end end def test_with_measure_static Perf::MeterFactory.get.measure(:test_with_measure_block) do static_method end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubyperf-1.4.0 | test/perf_test_example.rb |
rubyperf-1.3.7 | test/perf_test_example.rb |