Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
9332a3a5
Commit
9332a3a5
authored
Mar 13, 2012
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not leave SQLite DB files at the end of perf tests if no error happened
parent
20dae799
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
+12
-10
tools/matrix
tools/matrix
+3
-1
tools/perfs
tools/perfs
+9
-9
No files found.
tools/matrix
View file @
9332a3a5
...
@@ -108,9 +108,11 @@ class MatrixImportBenchmark(BenchmarkRunner):
...
@@ -108,9 +108,11 @@ class MatrixImportBenchmark(BenchmarkRunner):
self
.
_size
=
size
self
.
_size
=
size
else
:
else
:
assert
self
.
_size
==
size
assert
self
.
_size
==
size
return
end
-
start
finally
:
finally
:
neo
.
stop
()
neo
.
stop
()
# Clear DB if no error happened.
neo
.
setupDB
()
return
end
-
start
except
:
except
:
traceback
.
print_exc
()
traceback
.
print_exc
()
self
.
error_log
+=
"Import with m=%s, s=%s, r=%s, p=%s:"
%
(
self
.
error_log
+=
"Import with m=%s, s=%s, r=%s, p=%s:"
%
(
...
...
tools/perfs
View file @
9332a3a5
...
@@ -47,18 +47,18 @@ class ImportBenchmark(BenchmarkRunner):
...
@@ -47,18 +47,18 @@ class ImportBenchmark(BenchmarkRunner):
master_count
=
config
.
masters
,
master_count
=
config
.
masters
,
verbose
=
False
,
verbose
=
False
,
)
)
# import datafs
# import datafs
neo
.
start
()
try
:
try
:
neo
.
start
()
try
:
try
:
return
self
.
buildReport
(
*
self
.
runImport
(
neo
))
result
=
self
.
buildReport
(
*
self
.
runImport
(
neo
))
except
:
summary
=
'Perf : import failed'
report
=
''
.
join
(
traceback
.
format_exc
())
return
summary
,
report
finally
:
finally
:
neo
.
stop
()
neo
.
stop
()
# Clear DB if no error happened.
neo
.
setupDB
()
return
result
except
:
return
'Perf: import failed'
,
''
.
join
(
traceback
.
format_exc
())
def
runImport
(
self
,
neo
):
def
runImport
(
self
,
neo
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment