Commit 57a62d33 authored by Benjamin Blanc's avatar Benjamin Blanc

tests: Improve ERP5_scalability class

parent 9413d030
...@@ -134,8 +134,11 @@ class ERP5_scalability(_ERP5): ...@@ -134,8 +134,11 @@ class ERP5_scalability(_ERP5):
return 'erp5/util/benchmark/examples/' return 'erp5/util/benchmark/examples/'
def getUserNumber(self, test_number): def getUserNumber(self, test_number):
return [1,2,4,8,16,32,64,128,256,512][test_number] user_number = 1
for i in range(1,test_number):
user_number = user_number * 2
return user_number
# Test duration in seconds # Test duration in seconds
def getTestDuration(self, test_number): def getTestDuration(self, test_number):
return [60,60,60,60,60,60,60,60,60,60][test_number] return 60
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment