mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
remove randomisation for now from bench
This commit is contained in:
parent
79b406c0f3
commit
f7d5a561ec
1 changed files with 5 additions and 4 deletions
|
@ -170,14 +170,15 @@ begin
|
|||
run "wget http://127.0.0.1:#{@port}/ -o /dev/null"
|
||||
|
||||
tests = [
|
||||
["categories", "/categories"],
|
||||
["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"],
|
||||
["categories", "/categories"]
|
||||
]
|
||||
|
||||
tests += tests.map{|k,url| ["#{k}_admin", "#{url}#{append}"]}
|
||||
tests.shuffle!
|
||||
tests = tests.map{|k,url| ["#{k}_admin", "#{url}#{append}"]} + tests
|
||||
|
||||
# NOTE: we run the most expensive page first in the bench
|
||||
|
||||
def best_of(a, b)
|
||||
return a unless b
|
||||
|
|
Loading…
Reference in a new issue