summaryrefslogtreecommitdiff
path: root/client/src/leap/soledad/client/examples/run_benchmark.py
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/leap/soledad/client/examples/run_benchmark.py')
-rw-r--r--client/src/leap/soledad/client/examples/run_benchmark.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/leap/soledad/client/examples/run_benchmark.py b/client/src/leap/soledad/client/examples/run_benchmark.py
index a112cf45..61621e89 100644
--- a/client/src/leap/soledad/client/examples/run_benchmark.py
+++ b/client/src/leap/soledad/client/examples/run_benchmark.py
@@ -10,8 +10,9 @@ CSVFILE = 'bench.csv'
cmd = "SILENT=1 TIMES={times} TMPDIR={tmpdir} python ./use_{version}api.py"
-parse_time = lambda r: r.split('\n')[-1]
+def parse_time(r):
+ return r.split('\n')[-1]
with open(CSVFILE, 'w') as log: