summaryrefslogtreecommitdiff
path: root/tools/scalability_benchmark.py
diff options
context:
space:
mode:
authorSiegfried-Angel Gevatter Pujals <siegfried@gevatter.com>2012-07-30 17:13:23 +0200
committerSiegfried-Angel Gevatter Pujals <siegfried@gevatter.com>2012-07-30 18:19:34 +0200
commitc6fe73f2cf5d4e71962f24bb32a4c9fdd8e4a889 (patch)
treeb32aad2b1f860fbd9e33d31877b761f01e340d72 /tools/scalability_benchmark.py
parent7c32f5d3701a159aedfcdc8a099a4695083f9d8b (diff)
downloadzeitgeist-c6fe73f2cf5d4e71962f24bb32a4c9fdd8e4a889.tar.gz
insert_events: group data insertion from separate events
https://bugs.freedesktop.org/show_bug.cgi?id=52971
Diffstat (limited to 'tools/scalability_benchmark.py')
-rwxr-xr-xtools/scalability_benchmark.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/scalability_benchmark.py b/tools/scalability_benchmark.py
index 642155a9..b7b2f03d 100755
--- a/tools/scalability_benchmark.py
+++ b/tools/scalability_benchmark.py
@@ -96,8 +96,8 @@ class ScalabilityBenchmark:
return (insertion_times,) + query_times
-def main(events_per_iteration=5000):
- data = ScalabilityBenchmark().run(50, events_per_iteration, 5)
+def main(iterations=50, events_per_iteration=5000):
+ data = ScalabilityBenchmark().run(iterations, events_per_iteration, 5)
chart = google_chart_api.LineChart()
chart.AddLine(data[0], label="Insertion time")
chart.AddLine(data[1], label="Query time (50 most recent events)")
@@ -111,6 +111,6 @@ def main(events_per_iteration=5000):
if __name__ == '__main__':
try:
- main()
+ main(10, 5000)
except KeyboardInterrupt:
pass