mirror of
https://github.com/apache/arrow.git
synced 2026-10-29 00:56:31 +08:00
measure wallclock time instead of process cpu time
This commit is contained in:
1 parent
c89256f74b
commit
34a0684572
1 file changed
+5
@@ -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__()
|
||||
|
||||
Reference in new issue
Block a user