Sha256: 8e97c92795f0966353e83d65502e31e68df3e27e881c9af6b0d4407cfd94e2d5

Contents?: true

Size: 257 Bytes

Versions: 46

Compression:

Stored size: 257 Bytes

Contents

require 'test_helper'

class BenchIDs < Minitest::Benchmark
  def bench_generate_id
    # TODO: This performs poorly on JRuby.
    assert_performance_constant do |input|
      500_000.times do
        ::Instana::Util.generate_id
      end
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
instana-1.193.4 test/benchmarks/bench_id_generation.rb
instana-1.193.3 test/benchmarks/bench_id_generation.rb
instana-1.193.3.pre1 test/benchmarks/bench_id_generation.rb
instana-1.193.2 test/benchmarks/bench_id_generation.rb
instana-1.192.1 test/benchmarks/bench_id_generation.rb
instana-1.192.0 test/benchmarks/bench_id_generation.rb
instana-1.13.0 test/benchmarks/bench_id_generation.rb
instana-1.12.0 test/benchmarks/bench_id_generation.rb
instana-1.11.8-java test/benchmarks/bench_id_generation.rb
instana-1.11.8 test/benchmarks/bench_id_generation.rb
instana-1.11.7 test/benchmarks/bench_id_generation.rb
instana-1.11.6 test/benchmarks/bench_id_generation.rb
instana-1.11.6-java test/benchmarks/bench_id_generation.rb
instana-1.11.5 test/benchmarks/bench_id_generation.rb
instana-1.11.5-java test/benchmarks/bench_id_generation.rb
instana-1.11.4-java test/benchmarks/bench_id_generation.rb
instana-1.11.4 test/benchmarks/bench_id_generation.rb
instana-1.11.3-java test/benchmarks/bench_id_generation.rb
instana-1.11.3 test/benchmarks/bench_id_generation.rb
instana-1.11.2-java test/benchmarks/bench_id_generation.rb