Sha256: 38e3d6226af07a7c581349cb084d96a232a9844d625cbed2645e22d6833f1686

Contents?: true

Size: 323 Bytes

Versions: 64

Compression:

Stored size: 323 Bytes

Contents

# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2017

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

64 entries across 64 versions & 1 rubygems

Version Path
instana-1.209.6 test/benchmarks/bench_id_generation.rb
instana-1.209.5 test/benchmarks/bench_id_generation.rb
instana-1.209.4 test/benchmarks/bench_id_generation.rb
instana-1.209.3 test/benchmarks/bench_id_generation.rb
instana-1.209.2 test/benchmarks/bench_id_generation.rb
instana-1.209.1 test/benchmarks/bench_id_generation.rb
instana-1.209.0.pre3 test/benchmarks/bench_id_generation.rb
instana-1.209.0.pre2 test/benchmarks/bench_id_generation.rb
instana-1.209.0.pre1 test/benchmarks/bench_id_generation.rb
instana-1.208.0 test/benchmarks/bench_id_generation.rb
instana-1.207.0 test/benchmarks/bench_id_generation.rb
instana-1.206.0 test/benchmarks/bench_id_generation.rb
instana-1.205.0 test/benchmarks/bench_id_generation.rb
instana-1.204.0 test/benchmarks/bench_id_generation.rb
instana-1.204.0.pre3 test/benchmarks/bench_id_generation.rb
instana-1.204.0.pre2 test/benchmarks/bench_id_generation.rb
instana-1.204.0.pre1 test/benchmarks/bench_id_generation.rb
instana-1.203.2 test/benchmarks/bench_id_generation.rb
instana-1.203.1 test/benchmarks/bench_id_generation.rb
instana-1.203.0 test/benchmarks/bench_id_generation.rb