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.217.1 test/benchmarks/bench_id_generation.rb
instana-1.217.0 test/benchmarks/bench_id_generation.rb
instana-1.216.0 test/benchmarks/bench_id_generation.rb
instana-1.215.1 test/benchmarks/bench_id_generation.rb
instana-1.215.0 test/benchmarks/bench_id_generation.rb
instana-1.214.4 test/benchmarks/bench_id_generation.rb
instana-1.214.3 test/benchmarks/bench_id_generation.rb
instana-1.214.2 test/benchmarks/bench_id_generation.rb
instana-1.214.1 test/benchmarks/bench_id_generation.rb
instana-1.214.0 test/benchmarks/bench_id_generation.rb
instana-1.213.3 test/benchmarks/bench_id_generation.rb
instana-1.213.2 test/benchmarks/bench_id_generation.rb
instana-1.213.1 test/benchmarks/bench_id_generation.rb
instana-1.213.0 test/benchmarks/bench_id_generation.rb
instana-1.212.0 test/benchmarks/bench_id_generation.rb
instana-1.211.0 test/benchmarks/bench_id_generation.rb
instana-1.210.1 test/benchmarks/bench_id_generation.rb
instana-1.210.0 test/benchmarks/bench_id_generation.rb
instana-1.209.8 test/benchmarks/bench_id_generation.rb
instana-1.209.7 test/benchmarks/bench_id_generation.rb