We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2779c5d commit 1755393Copy full SHA for 1755393
perf.py
@@ -28,25 +28,24 @@ def test_pkl(data):
28
dat[label]
29
t = time.perf_counter() - s
30
31
- pf.write(f"{datasize}\t{t*1000:.5f}\n")
+ pf.write(f"{datasize}\t{t*1000:.1f} ms\n")
32
pf.flush()
33
34
-
35
def test_mb(data):
36
datasize = len(data)
37
labels = list(data.keys())
38
random.shuffle(labels)
39
labels = labels[:datasize//10]
40
41
- mbuf = MapBuffer(data)
+ mbuf = MapBuffer(data, compute_crc=False)
42
buf = mbuf.tobytes()
43
44
s = time.perf_counter()
45
mbuf = MapBuffer(buf)
46
for label in labels:
47
mbuf[label]
48
49
- mf.write(f"{datasize}\t{t*1000:.5f}\n")
+ mf.write(f"{datasize}\t{t*1000:.1f} ms\n")
50
mf.flush()
51
52
sz = 1
0 commit comments