remove randomisation for now from bench
This commit is contained in:
parent
79b406c0f3
commit
f7d5a561ec
|
@ -170,14 +170,15 @@ begin
|
||||||
run "wget http://127.0.0.1:#{@port}/ -o /dev/null"
|
run "wget http://127.0.0.1:#{@port}/ -o /dev/null"
|
||||||
|
|
||||||
tests = [
|
tests = [
|
||||||
|
["categories", "/categories"],
|
||||||
["home", "/"],
|
["home", "/"],
|
||||||
["topic", "/t/oh-how-i-wish-i-could-shut-up-like-a-tunnel-for-so/69"],
|
["topic", "/t/oh-how-i-wish-i-could-shut-up-like-a-tunnel-for-so/69"]
|
||||||
# ["user", "/users/admin1/activity"],
|
# ["user", "/users/admin1/activity"],
|
||||||
["categories", "/categories"]
|
|
||||||
]
|
]
|
||||||
|
|
||||||
tests += tests.map{|k,url| ["#{k}_admin", "#{url}#{append}"]}
|
tests = tests.map{|k,url| ["#{k}_admin", "#{url}#{append}"]} + tests
|
||||||
tests.shuffle!
|
|
||||||
|
# NOTE: we run the most expensive page first in the bench
|
||||||
|
|
||||||
def best_of(a, b)
|
def best_of(a, b)
|
||||||
return a unless b
|
return a unless b
|
||||||
|
|
Loading…
Reference in New Issue