Skip to content

Commit

Permalink
+ nicer performance test output
Browse files Browse the repository at this point in the history
  • Loading branch information
floere committed Nov 21, 2011
1 parent 6e223ba commit 86d21ad
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions server/performance_tests/search.rb
Expand Up @@ -114,6 +114,7 @@ def to_s
include Picky

backends = [
Backends::Redis.new,
Backends::Memory.new,
Backends::File.new,
Backends::SQLite.new,
Expand Down Expand Up @@ -168,7 +169,7 @@ def to_s

amount = 100

results = ["%7d" % data.source.amount]
print "%7d" % data.source.amount

[queries[1, amount], queries[2, amount], queries[3, amount], queries[4, amount]].each do |queries|

Expand All @@ -185,13 +186,12 @@ def to_s

end

results << ("%2.4f" % duration)
print ", "
print "%2.4f" % duration

end

puts results.join(', ')

# data.clear
puts

end

Expand Down

0 comments on commit 86d21ad

Please sign in to comment.