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

.

parent ac801304
...@@ -208,8 +208,8 @@ gensqlite() { ...@@ -208,8 +208,8 @@ gensqlite() {
#neopylite #neopylite
neopysql neopysql
#time demo-zbigarray read neo://$cluster@$Mbind #time demo-zbigarray read neo://$cluster@$Mbind
./zsha1.py neo://$cluster@$Mbind 2>py.log ./zsha1.py neo://$cluster@$Mbind
go run zsha1.go neo://$cluster@$Mbind 2>go.log go run zsha1.go neo://$cluster@$Mbind
xneoctl set cluster stopping xneoctl set cluster stopping
xmysql -e "SHUTDOWN" xmysql -e "SHUTDOWN"
......
...@@ -46,7 +46,7 @@ func main() { ...@@ -46,7 +46,7 @@ func main() {
loop: loop:
for { for {
xid := zodb.Xid{Oid: oid, XTid: zodb.XTid{Tid: before, TidBefore: true}} 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) { switch err.(type) {
case nil: case nil:
// ok // ok
...@@ -58,13 +58,11 @@ loop: ...@@ -58,13 +58,11 @@ loop:
m.Write(data) m.Write(data)
fmt.Fprintf(os.Stderr, "%d @%s\tsha1: %x\n", uint(oid), serial, m.Sum(nil)) //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, "\tdata: %x\n", data)
nread += len(data) nread += len(data)
oid += 1 oid += 1
break
} }
tend := time.Now() tend := time.Now()
......
...@@ -31,14 +31,12 @@ def main(): ...@@ -31,14 +31,12 @@ def main():
m.update(data) m.update(data)
print('%s @%s\tsha1: %s' % (oid, u64(serial), m.hexdigest()), 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) #print('\tdata: %s' % (data.encode('hex'),), file=sys.stderr)
nread += len(data) nread += len(data)
oid += 1 oid += 1
break
tend = time() tend = time()
print('%s ; oid=0..%d nread=%d t=%.3fs x=zsha1.py' % \ 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