From f834f40d516f8788ca6187a91df17a7d4076a0ae Mon Sep 17 00:00:00 2001 From: Kirill Smelkov <kirr@nexedi.com> Date: Mon, 26 Feb 2018 21:18:08 +0300 Subject: [PATCH] X zhash: Show N(obj) read, not 1, in place of N(iter) --- go/neo/t/tzodb.go | 6 +++--- go/neo/t/tzodb.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/go/neo/t/tzodb.go b/go/neo/t/tzodb.go index 5332795e..667df0a9 100644 --- a/go/neo/t/tzodb.go +++ b/go/neo/t/tzodb.go @@ -230,9 +230,9 @@ loop: hresult, oid-1, nread, 未t, 未t / time.Duration(oid), x) // XXX /oid cast ? } else { topic := fmt.Sprintf(bench, x) // XXX -> better text/template - fmt.Printf("Benchmark%s 1 %.1f 碌s/object\t# %s oid=0..%d nread=%d t=%s\n", - topic, float64(未t) / float64(oid) / float64(time.Microsecond), - hresult, oid-1, nread, 未t) + fmt.Printf("Benchmark%s %d %.1f 碌s/object\t# %s nread=%d t=%s\n", + topic, oid-1, float64(未t) / float64(oid) / float64(time.Microsecond), + hresult, nread, 未t) } if check != "" && hresult != check { diff --git a/go/neo/t/tzodb.py b/go/neo/t/tzodb.py index efe9d120..cf263134 100755 --- a/go/neo/t/tzodb.py +++ b/go/neo/t/tzodb.py @@ -173,8 +173,8 @@ def zhash(): (hresult, oid-1, nread, dt, dt * 1E6 / oid, x)) else: topic = bench % x - print('Benchmark%s 1 %.1f 碌s/object\t# %s oid=0..%d nread=%d t=%.3fs' % \ - (topic, dt * 1E6 / oid, hresult, oid-1, nread, dt)) + print('Benchmark%s %d %.1f 碌s/object\t# %s nread=%d t=%.3fs' % \ + (topic, oid-1, dt * 1E6 / oid, hresult, nread, dt)) if check != None and hresult != check: print("%s: hash mismatch: expected %s ; got %s\t# x=%s" % (url, check, hresult, x), file=sys.stderr) -- 2.30.9