Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Poulpe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
octobus
Poulpe
Commits
ab8c98c3
"README.rst" did not exist on "d551e95d6a466b5bee4d71d0d0b9599857c1db01"
Commit
ab8c98c3
authored
5 years ago
by
Pierre-Yves David
Browse files
Options
Downloads
Patches
Plain Diff
workers: also benchmark work variation for dirstate.status
parent
c9e1cf1a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
asv_migrations/0003_cpus.py
+5
-0
5 additions, 0 deletions
asv_migrations/0003_cpus.py
benchmarks/dirstate.py
+10
-1
10 additions, 1 deletion
benchmarks/dirstate.py
with
15 additions
and
1 deletion
asv_migrations/0003_cpus.py
+
5
−
0
View file @
ab8c98c3
...
...
@@ -14,4 +14,9 @@
values
=
[
1
,
2
],
default
=
1
,
targets
=
r
"
^simple_command.read.diff.empty.time_bench
"
),
migrations
.
AddBenchParam
(
name
=
"
max_worker_count
"
,
values
=
[
1
,
2
],
default
=
1
,
targets
=
r
"
^internal.dirstate.status.track_time
"
),
]
This diff is collapsed.
Click to expand it.
benchmarks/dirstate.py
+
10
−
1
View file @
ab8c98c3
...
...
@@ -5,6 +5,7 @@
BaseTestSuite
,
benchmark_name
,
params_as_kwargs
,
use_workers
,
)
# lazy point to modern version if anything before 5.2rc0
...
...
@@ -14,7 +15,7 @@
PERF_REV1
=
b
"
bfc68404cccd
"
class
PerfDirstateSuite
(
BaseTestSuite
):
class
PerfDirstateSuite
Base
(
BaseTestSuite
):
timeout
=
300
...
...
@@ -28,6 +29,8 @@
kwargs
[
'
perfextversion
'
]
=
PERF_REV1
return
super
(
PerfDirstateSuite
,
self
).
perfextjson
(
*
args
,
**
kwargs
)
class
PerfDirstateSuite
(
PerfDirstateSuiteBase
):
@benchmark_name
(
'
internal.dirstate.load.track_time
'
)
@params_as_kwargs
def
track_load
(
self
,
*
args
,
**
kwargs
):
...
...
@@ -76,5 +79,10 @@
return
float
(
'
nan
'
)
return
data
[
None
][
'
median
'
]
class
PerfDirstateSuiteParallel
(
PerfDirstateSuiteBase
):
param_names
=
PerfDirstateSuiteBase
.
param_names
+
[
"
max_worker_count
"
]
params
=
PerfDirstateSuiteBase
.
params
+
[[
1
,
2
]]
@benchmark_name
(
'
internal.dirstate.status.track_time
'
)
@params_as_kwargs
...
...
@@ -79,5 +87,6 @@
@benchmark_name
(
'
internal.dirstate.status.track_time
'
)
@params_as_kwargs
@use_workers
def
track_status
(
self
,
*
args
,
**
kwargs
):
data
=
self
.
r1perfextjson
(
'
perfstatus
'
,
'
--dirstate
'
)
if
None
not
in
data
:
...
...
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