Commit 9fed28ad5ca87f09a14cdc304e68700f53610522

simple_skiplist benchmark updated
  
5050
5151puts
5252puts "Find/insert techniques"
53Benchmark.bm(32) do |x|
53Benchmark.bm(42) do |x|
5454 langs = [:C] if RUBY_PLATFORM !~ /java/
5555 langs = [:Java] if RUBY_PLATFORM =~ /java/
5656 SimpleSkiplist.with_optimizations(langs) do |lang|
5757 GC.start
58 x.report("SimpleSkiplist#find #{lang}".ljust(32)) do
59 100.times do
58 x.report("SimpleSkiplist#find 5000 #{lang}".ljust(32)) do
59 1000.times do
6060 key = rand(len).to_s
6161 biglist.find(key)
6262 biglist.find(key)
6666 end
6767 end
6868 GC.start
69 x.report("SimpleSkiplist#insert #{lang}".ljust(32)) do
70 100.times do
69 x.report("SimpleSkiplist#insert 5000 #{lang}".ljust(32)) do
70 1000.times do
7171 key = rand(len).to_s
7272 biglist.insert(key, key)
7373 key = rand(len).to_s