Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Carlos Ramos Carreño
neoppod
Commits
c2b8dbf9
Commit
c2b8dbf9
authored
Nov 09, 2011
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Plain Diff
Merge "tools/matrix: bugfixes"
parents
ad81d3fd
e19f35e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
16 deletions
+14
-16
tools/matrix
tools/matrix
+14
-16
No files found.
tools/matrix
View file @
c2b8dbf9
...
@@ -93,15 +93,14 @@ class MatrixImportBenchmark(BenchmarkRunner):
...
@@ -93,15 +93,14 @@ class MatrixImportBenchmark(BenchmarkRunner):
replicas
=
replicas
,
replicas
=
replicas
,
verbose
=
self
.
_config
.
verbose
,
verbose
=
self
.
_config
.
verbose
,
)
)
neo
.
start
()
neo_storage
=
neo
.
getZODBStorage
()
if
not
self
.
_config
.
threaded
:
assert
len
(
neo
.
getStorageList
())
==
storages
neo
.
expectOudatedCells
(
number
=
0
)
# import
start
=
time
()
try
:
try
:
neo
.
start
()
try
:
try
:
neo_storage
=
neo
.
getZODBStorage
()
if
not
self
.
_config
.
threaded
:
assert
len
(
neo
.
getStorageList
())
==
storages
neo
.
expectOudatedCells
(
number
=
0
)
start
=
time
()
neo_storage
.
copyTransactionsFrom
(
dfs_storage
)
neo_storage
.
copyTransactionsFrom
(
dfs_storage
)
end
=
time
()
end
=
time
()
size
=
dfs_storage
.
getSize
()
size
=
dfs_storage
.
getSize
()
...
@@ -110,14 +109,13 @@ class MatrixImportBenchmark(BenchmarkRunner):
...
@@ -110,14 +109,13 @@ class MatrixImportBenchmark(BenchmarkRunner):
else
:
else
:
assert
self
.
_size
==
size
assert
self
.
_size
==
size
return
end
-
start
return
end
-
start
except
:
finally
:
traceback
.
print_exc
()
neo
.
stop
()
self
.
error_log
+=
"Import with m=%s, s=%s, r=%s, p=%s:"
%
(
except
:
masters
,
storages
,
replicas
,
partitions
)
traceback
.
print_exc
()
self
.
error_log
+=
"
\
n
%s
\
n
"
%
''
.
join
(
traceback
.
format_exc
())
self
.
error_log
+=
"Import with m=%s, s=%s, r=%s, p=%s:"
%
(
return
None
masters
,
storages
,
replicas
,
partitions
)
finally
:
self
.
error_log
+=
"
\
n
%s
\
n
"
%
''
.
join
(
traceback
.
format_exc
())
neo
.
stop
()
def
buildReport
(
self
,
storages
,
replicas
,
results
):
def
buildReport
(
self
,
storages
,
replicas
,
results
):
# draw an array with results
# draw an array with results
...
@@ -127,7 +125,7 @@ class MatrixImportBenchmark(BenchmarkRunner):
...
@@ -127,7 +125,7 @@ class MatrixImportBenchmark(BenchmarkRunner):
fmt
=
'|'
+
'|'
.
join
([
' %8s '
]
*
(
len
(
replicas
)
+
1
))
+
'|
\
n
'
fmt
=
'|'
+
'|'
.
join
([
' %8s '
]
*
(
len
(
replicas
)
+
1
))
+
'|
\
n
'
sep
=
'+'
+
'+'
.
join
([
'-'
*
12
]
*
(
len
(
replicas
)
+
1
))
+
'+
\
n
'
sep
=
'+'
+
'+'
.
join
([
'-'
*
12
]
*
(
len
(
replicas
)
+
1
))
+
'+
\
n
'
report
=
sep
report
=
sep
report
+=
fmt
%
tuple
([
'S
\
R
'
] + r
ange(0, len(replicas))
)
report
+=
fmt
%
tuple
([
'S
\
R
'
] + r
eplicas
)
report += sep
report += sep
failures = 0
failures = 0
speedlist = []
speedlist = []
...
...
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