Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7437682
conftest.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
conftest.py
View Options
def
pytest_configure
(
config
):
config
.
addinivalue_line
(
"markers"
,
"shard_max_size: winery backend"
)
def
pytest_addoption
(
parser
):
parser
.
addoption
(
"--winery-bench-output-directory"
,
help
=
"Directory in which the performance results are stored"
,
default
=
"/tmp/winery"
,
)
parser
.
addoption
(
"--winery-bench-rw-workers"
,
type
=
int
,
help
=
"Number of Read/Write workers"
,
default
=
1
,
)
parser
.
addoption
(
"--winery-bench-ro-workers"
,
type
=
int
,
help
=
"Number of Readonly workers"
,
default
=
1
,
)
parser
.
addoption
(
"--winery-bench-duration"
,
type
=
int
,
help
=
"Duration of the benchmarks in seconds"
,
default
=
1
,
)
parser
.
addoption
(
"--winery-shard-max-size"
,
type
=
int
,
help
=
"Size of the shard in bytes"
,
default
=
10
*
1024
*
1024
,
)
parser
.
addoption
(
"--winery-bench-ro-worker-max-request"
,
type
=
int
,
help
=
"Number of requests a ro worker performs"
,
default
=
1
,
)
parser
.
addoption
(
"--winery-bench-throttle-read"
,
type
=
int
,
help
=
"Maximum number of bytes per second read"
,
default
=
100
*
1024
*
1024
,
)
parser
.
addoption
(
"--winery-bench-throttle-write"
,
type
=
int
,
help
=
"Maximum number of bytes per second write"
,
default
=
100
*
1024
*
1024
,
)
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Tue, Apr 15, 2:21 AM (5 d, 16 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3239993
Attached To
rDOBJS Object storage
Event Timeline
Log In to Comment