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
0f2bd936
Verified
Commit
0f2bd936
authored
7 years ago
by
drebs
Browse files
Options
Downloads
Patches
Plain Diff
[test] use pull producer in blobs fs backend benchmarks
parent
f3c77003
Branches
Branches containing commit
No related tags found
1 merge request
!176
#9023 - Fix blobs FS backend benchmarks
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/benchmarks/test_blobs_fs_backend.py
+11
-0
11 additions, 0 deletions
tests/benchmarks/test_blobs_fs_backend.py
with
11 additions
and
0 deletions
tests/benchmarks/test_blobs_fs_backend.py
+
11
−
0
View file @
0f2bd936
...
...
@@ -3,6 +3,7 @@ from io import BytesIO
from
leap.soledad.server._blobs
import
FilesystemBlobsBackend
from
twisted.internet
import
defer
from
twisted.web.client
import
FileBodyProducer
from
twisted.internet._producer_helpers
import
_PullToPush
def
create_write_test
(
amount
,
size
):
...
...
@@ -37,6 +38,16 @@ class DevNull(object):
def
write
(
self
,
data
):
pass
def
registerProducer
(
self
,
producer
,
streaming
):
producer
=
_PullToPush
(
producer
,
self
)
producer
.
startStreaming
()
def
unregisterProducer
(
self
):
pass
def
finish
(
self
):
pass
def
create_read_test
(
amount
,
size
):
...
...
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