bench fix and new arel patches for rails 4

This commit is contained in:
Sam 2013-09-03 18:58:56 +10:00
parent ba6576efd1
commit 5dd199df26
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,8 @@
if rails4?
# https://github.com/rails/arel/pull/206
class Arel::Table
def hash
@name.hash
end
end
end

View File

@ -117,6 +117,8 @@ begin
puts "Starting benchmark..."
# asset precompilation is a dog, wget to force it
run "wget http://127.0.0.1:#{@port}/ -o tmp/test.html"
home_page = bench("/")
topic_page = bench("/t/oh-how-i-wish-i-could-shut-up-like-a-tunnel-for-so/69")