Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
scmperf
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
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mercurial
scmperf
Commits
ec3ec80beb31
Commit
ec3ec80beb31
authored
5 years ago
by
Pierre-Yves David
Browse files
Options
Downloads
Patches
Plain Diff
benchmark: remove the old rename variant
This test is no longer needed.
parent
f937911243cf
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
benchmarks/rename.py
+0
-50
0 additions, 50 deletions
benchmarks/rename.py
with
0 additions
and
50 deletions
benchmarks/rename.py
+
0
−
50
View file @
ec3ec80b
...
...
@@ -7,56 +7,6 @@
REPO_DETAILS
,
)
class
OldPerfTracecopiesSuite
(
BaseTestSuite
):
params
=
BaseTestSuite
.
params
+
[
(
"
default
"
,),
]
param_names
=
BaseTestSuite
.
param_names
+
[
"
copies-data
"
]
timeout
=
300
@benchmark_name
(
'
internal.rename.track_tracecopies_large
'
)
@params_as_kwargs
def
track_tracecopies_large
(
self
,
*
args
,
**
kwargs
):
"""
benchmark the tracecopies logic over a large amount of candidates
This benchmark requires the repository data to specify the following value:
benchmark-variables:
trace-copies:
large:
source: REV
destination: REV
"""
missing_cmd
=
b
'
::p1(2e9fe9e2671fee0a564ca77e2f3656248163cb51)
'
if
self
.
_matchrevset
(
missing_cmd
,
self
.
get_asv_rev
()):
raise
NotImplementedError
(
"
perfpathcopies not available
"
)
x
=
REPO_DETAILS
.
get
(
self
.
repo_name
)
x
=
x
.
get
(
'
benchmark-variables
'
,
{})
x
=
x
.
get
(
'
trace-copies
'
,
{})
x
=
x
.
get
(
'
large
'
,
{})
source
=
x
.
get
(
'
source
'
)
destination
=
x
.
get
(
'
destination
'
)
if
source
is
None
or
destination
is
None
:
raise
NotImplementedError
(
"
no target defined for this source
"
)
cmd
=
[
'
perfpathcopies
'
]
cmd
.
append
(
source
)
cmd
.
append
(
destination
)
return
self
.
perfext
(
*
cmd
)
# If we want to add the changesets compatibility option, here was the
# old code
#
#if kwargs["copies-data"] == "changeset-compability":
# skip =self.should_skip_benchmark
# if skip("(not 49ad315b39ee::)", self.get_asv_rev(), None, None):
# return float('nan')
# cmd.append("--config")
# cmd.append("experimental.copies.read-from=compatibility")
PERFPATHCOPIES_NODE
=
"
2e9fe9e2671fee0a564ca77e2f3656248163cb51
"
class
PerfTracecopiesSuite
(
BaseTestSuite
):
...
...
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