bench fix and new arel patches for rails 4
This commit is contained in:
parent
ba6576efd1
commit
5dd199df26
|
@ -0,0 +1,8 @@
|
||||||
|
if rails4?
|
||||||
|
# https://github.com/rails/arel/pull/206
|
||||||
|
class Arel::Table
|
||||||
|
def hash
|
||||||
|
@name.hash
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -117,6 +117,8 @@ begin
|
||||||
|
|
||||||
puts "Starting benchmark..."
|
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("/")
|
home_page = bench("/")
|
||||||
topic_page = bench("/t/oh-how-i-wish-i-could-shut-up-like-a-tunnel-for-so/69")
|
topic_page = bench("/t/oh-how-i-wish-i-could-shut-up-like-a-tunnel-for-so/69")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue