Commit 42fd27c5 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent ac801304
......@@ -208,8 +208,8 @@ gensqlite() {
#neopylite
neopysql
#time demo-zbigarray read neo://$cluster@$Mbind
./zsha1.py neo://$cluster@$Mbind 2>py.log
go run zsha1.go neo://$cluster@$Mbind 2>go.log
./zsha1.py neo://$cluster@$Mbind
go run zsha1.go neo://$cluster@$Mbind
xneoctl set cluster stopping
xmysql -e "SHUTDOWN"
......
......@@ -46,7 +46,7 @@ func main() {
loop:
for {
xid := zodb.Xid{Oid: oid, XTid: zodb.XTid{Tid: before, TidBefore: true}}
data, serial, err := stor.Load(bg, xid)
data, _, err := stor.Load(bg, xid)
switch err.(type) {
case nil:
// ok
......@@ -58,13 +58,11 @@ loop:
m.Write(data)
fmt.Fprintf(os.Stderr, "%d @%s\tsha1: %x\n", uint(oid), serial, m.Sum(nil))
fmt.Fprintf(os.Stderr, "\tdata: %x\n", data)
//fmt.Fprintf(os.Stderr, "%d @%s\tsha1: %x\n", uint(oid), serial, m.Sum(nil))
//fmt.Fprintf(os.Stderr, "\tdata: %x\n", data)
nread += len(data)
oid += 1
break
}
tend := time.Now()
......
......@@ -31,14 +31,12 @@ def main():
m.update(data)
print('%s @%s\tsha1: %s' % (oid, u64(serial), m.hexdigest()), file=sys.stderr)
print('\tdata: %s' % (data.encode('hex'),), file=sys.stderr)
#print('%s @%s\tsha1: %s' % (oid, u64(serial), m.hexdigest()), file=sys.stderr)
#print('\tdata: %s' % (data.encode('hex'),), file=sys.stderr)
nread += len(data)
oid += 1
break
tend = time()
print('%s ; oid=0..%d nread=%d t=%.3fs x=zsha1.py' % \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment