measure wallclock time instead of process cpu time

This commit is contained in:
Philipp Moritz committed 2018-05-14 14:10:27 -07:00
1 parent c89256f74b
commit 34a0684572
1 file changed
+5
+5
View File
@@ -16,6 +16,7 @@
# under the License.
import numpy as np
import timeit
import pyarrow as pa
import pyarrow.plasma as plasma
@@ -28,6 +29,8 @@ class SimplePlasmaThroughput(object):
params = [1000, 100000, 10000000]
timer = timeit.default_timer
def setup(self, size):
self.plasma_store_ctx = plasma.start_plasma_store(plasma_store_memory=10**9)
plasma_store_name, p = self.plasma_store_ctx.__enter__()
@@ -45,6 +48,8 @@ class SimplePlasmaThroughput(object):
class SimplePlasmaLatency(object):
"""Benchmark plasma store latency with a single client."""
timer = timeit.default_timer
def setup(self):
self.plasma_store_ctx = plasma.start_plasma_store(plasma_store_memory=10**9)
plasma_store_name, p = self.plasma_store_ctx.__enter__()