Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
soledad
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
leap
soledad
Commits
5e69a05a
Verified
Commit
5e69a05a
authored
7 years ago
by
drebs
Browse files
Options
Downloads
Patches
Plain Diff
[benchmarks] multiply by 10 the number of blobs in fs backend benchmarks
parent
07fcc2f1
Branches
traduccion/red_plenty
Branches containing commit
No related tags found
1 merge request
!173
#9016 - Cache user quota in blobs filesystem backend
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/benchmarks/test_blobs_fs_backend.py
+14
-8
14 additions, 8 deletions
tests/benchmarks/test_blobs_fs_backend.py
with
14 additions
and
8 deletions
tests/benchmarks/test_blobs_fs_backend.py
+
14
−
8
View file @
5e69a05a
...
...
@@ -10,6 +10,9 @@ def create_write_test(amount, size):
@pytest.inlineCallbacks
@pytest.mark.benchmark
(
group
=
'
test_blobs_fs_backend_write
'
)
def
test
(
txbenchmark
,
payload
,
tmpdir
):
"""
Write many blobs of the same size to the filesystem backend.
"""
backend
=
FilesystemBlobsBackend
(
blobs_path
=
tmpdir
.
strpath
)
data
=
payload
(
size
)
semaphore
=
defer
.
DeferredSemaphore
(
100
)
...
...
@@ -23,10 +26,10 @@ def create_write_test(amount, size):
return
test
test_blobs_fs_backend_write_1_10000k
=
create_write_test
(
1
,
10000
*
1000
)
test_blobs_fs_backend_write_10_1000k
=
create_write_test
(
10
,
1000
*
1000
)
test_blobs_fs_backend_write_100_100k
=
create_write_test
(
100
,
100
*
1000
)
test_blobs_fs_backend_write_1000_10k
=
create_write_test
(
1000
,
10
*
1000
)
test_blobs_fs_backend_write_1
0
_10000k
=
create_write_test
(
1
0
,
10000
*
1000
)
test_blobs_fs_backend_write_10
0
_1000k
=
create_write_test
(
10
0
,
1000
*
1000
)
test_blobs_fs_backend_write_100
0
_100k
=
create_write_test
(
100
0
,
100
*
1000
)
test_blobs_fs_backend_write_1000
0
_10k
=
create_write_test
(
1000
0
,
10
*
1000
)
class
DevNull
(
object
):
...
...
@@ -40,6 +43,9 @@ def create_read_test(amount, size):
@pytest.inlineCallbacks
@pytest.mark.benchmark
(
group
=
'
test_blobs_fs_backend_read
'
)
def
test
(
txbenchmark
,
payload
,
tmpdir
):
"""
Read many blobs of the same size from the filesystem backend.
"""
backend
=
FilesystemBlobsBackend
(
blobs_path
=
tmpdir
.
strpath
)
data
=
payload
(
size
)
...
...
@@ -63,7 +69,7 @@ def create_read_test(amount, size):
return
test
test_blobs_fs_backend_read_1_10000k
=
create_read_test
(
1
,
10000
*
1000
)
test_blobs_fs_backend_read_10_1000k
=
create_read_test
(
10
,
1000
*
1000
)
test_blobs_fs_backend_read_100_100k
=
create_read_test
(
100
,
100
*
1000
)
test_blobs_fs_backend_read_1000_10k
=
create_read_test
(
1000
,
10
*
1000
)
test_blobs_fs_backend_read_1
0
_10000k
=
create_read_test
(
1
0
,
10000
*
1000
)
test_blobs_fs_backend_read_10
0
_1000k
=
create_read_test
(
10
0
,
1000
*
1000
)
test_blobs_fs_backend_read_100
0
_100k
=
create_read_test
(
100
0
,
100
*
1000
)
test_blobs_fs_backend_read_1000
0
_10k
=
create_read_test
(
1000
0
,
10
*
1000
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment