Sha256: cd6bfcd773bd08c4919868b09ca94dec7a324e129e0c1381555ca599a1aaa430
Contents?: true
Size: 875 Bytes
Versions: 2
Compression:
Stored size: 875 Bytes
Contents
--- prelude: | system("#{RbConfig.ruby} bin/rake compile", err: :out, exception: true) require "d_heap/benchmarks" include DHeap::Benchmarks fill_random_vals n = ENV.fetch("BENCH_N", 1000).to_i benchmark: - script: &script | q << random_val q.pop name: "push + pop (findmin)" prelude: "q = FindMin.new(n) { random_val }" loop_count: 250000 - script: *script name: "push + pop (bsearch)" prelude: "q = BSearch.new(n) { random_val }" loop_count: 5000000 - script: *script name: "push + pop (rb_heap)" prelude: "q = RbHeap.new(n) { random_val }" loop_count: 2000000 - script: *script name: "push + pop (c++ stl)" prelude: "q = initq CppSTL, n" loop_count: 13000000 - script: *script name: "push + pop (c_dheap)" prelude: "q = initq DHeap, n" loop_count: 20000000
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
d_heap-0.6.1 | benchmarks/push_pop.yml |
d_heap-0.6.0 | benchmarks/push_pop.yml |