Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hamza
erp5-Boxiang
Commits
57a62d33
Commit
57a62d33
authored
Jul 22, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: Improve ERP5_scalability class
parent
9413d030
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
tests/__init__.py
tests/__init__.py
+5
-2
No files found.
tests/__init__.py
View file @
57a62d33
...
...
@@ -134,8 +134,11 @@ class ERP5_scalability(_ERP5):
return
'erp5/util/benchmark/examples/'
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
def
getTestDuration
(
self
,
test_number
):
return
[
60
,
60
,
60
,
60
,
60
,
60
,
60
,
60
,
60
,
60
][
test_number
]
return
60
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment