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
0b5ab10ff693
Commit
0b5ab10ff693
authored
6 years ago
by
Philippe Pepiot
Browse files
Options
Downloads
Patches
Plain Diff
Use timeit.default_timer by default
parent
0ae40079dbb0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
benchmarks/basic_commands.py
+0
-7
0 additions, 7 deletions
benchmarks/basic_commands.py
benchmarks/utils.py
+2
-0
2 additions, 0 deletions
benchmarks/utils.py
with
2 additions
and
7 deletions
benchmarks/basic_commands.py
+
0
−
7
View file @
0b5ab10f
...
...
@@ -5,7 +5,6 @@
import
os.path
import
pipes
import
time
import
timeit
import
threading
import
re
import
shutil
...
...
@@ -88,7 +87,6 @@
class
TimeTestSuite
(
BaseTestSuite
):
timer
=
timeit
.
default_timer
def
time_emptystatus
(
self
,
*
args
,
**
kwargs
):
self
.
hg
(
'
status
'
)
...
...
@@ -128,7 +126,6 @@
class
ArchiveTimeTestSuite
(
BaseTestSuite
):
timer
=
timeit
.
default_timer
timeout
=
300
param_names
=
TimeTestSuite
.
param_names
params
=
TimeTestSuite
.
params
+
[[
'
files
'
,
'
tar
'
]]
...
...
@@ -149,7 +146,6 @@
class
LogTimeTestSuite
(
BaseNChangesetsTestSuite
):
timer
=
timeit
.
default_timer
timeout
=
300
def
time_log_history
(
self
,
repo
,
n
):
...
...
@@ -159,7 +155,6 @@
class
UpdateTimeTestSuite
(
BaseNChangesetsTestSuite
):
timeout
=
500
timer
=
timeit
.
default_timer
def
time_up_tip
(
self
,
repo
,
n
):
self
.
hg
(
"
up
"
,
"
-r
"
,
"
tip~%d
"
%
n
)
...
...
@@ -168,7 +163,6 @@
class
BundleTimeTestSuite
(
BaseNChangesetsTestSuite
):
timer
=
timeit
.
default_timer
timeout
=
500
def
time_bundle
(
self
,
repo
,
n
):
...
...
@@ -228,7 +222,6 @@
[
'
local
'
,
'
ssh
'
,
'
http
'
],
get_strip_variants
(),
[
None
,
'
default
'
]]
timer
=
timeit
.
default_timer
timeout
=
1800
def
_remote_path_cmd
(
self
,
path
):
...
...
This diff is collapsed.
Click to expand it.
benchmarks/utils.py
+
2
−
0
View file @
0b5ab10f
...
...
@@ -4,6 +4,7 @@
import
os
import
os.path
import
re
import
timeit
import
subprocess
import
sys
from
functools
import
wraps
...
...
@@ -136,6 +137,7 @@
class
BaseTestSuite
(
object
):
timer
=
timeit
.
default_timer
params
=
[
REPOS
]
param_names
=
[
"
repo
"
]
...
...
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