Skip to content

Commit

Permalink
Merge branch 'master' into new-views
Browse files Browse the repository at this point in the history
* master:
  renamed skiplist benchmark to more sane name
  simple_skiplist benchmark updated
  • Loading branch information
Oleg Andreev committed Apr 27, 2008
2 parents 29cb7f9 + 553acf3 commit 15f8e4a
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -50,13 +50,13 @@

puts
puts "Find/insert techniques"
Benchmark.bm(32) do |x|
Benchmark.bm(42) do |x|
langs = [:C] if RUBY_PLATFORM !~ /java/
langs = [:Java] if RUBY_PLATFORM =~ /java/
SimpleSkiplist.with_optimizations(langs) do |lang|
GC.start
x.report("SimpleSkiplist#find #{lang}".ljust(32)) do
100.times do
x.report("SimpleSkiplist#find 5000 #{lang}".ljust(32)) do
1000.times do
key = rand(len).to_s
biglist.find(key)
biglist.find(key)
Expand All @@ -66,8 +66,8 @@
end
end
GC.start
x.report("SimpleSkiplist#insert #{lang}".ljust(32)) do
100.times do
x.report("SimpleSkiplist#insert 5000 #{lang}".ljust(32)) do
1000.times do
key = rand(len).to_s
biglist.insert(key, key)
key = rand(len).to_s
Expand Down

0 comments on commit 15f8e4a

Please sign in to comment.