• Kirill Smelkov's avatar
    go/zodb: Teach ZODB/go to access ZEO (draft) · b65f6d0f
    Kirill Smelkov authored
    For the reference on deco (performance, frequency not fixed):
    
    	name                           time/object
    	deco/fs1/zhash.py              15.8µs ± 2%
    	deco/fs1/zhash.py-P16           116µs ±12%
    	deco/fs1/zhash.go              2.60µs ± 0%
    	deco/fs1/zhash.go+prefetch128  3.70µs ±11%
    	deco/fs1/zhash.go-P16          13.4µs ±43%
    	deco/zeo/zhash.py               316µs ± 7%
    	deco/zeo/zhash.py-P16          2.68ms ± 7%
    	deco/zeo/zhash.go               111µs ± 2%
    	deco/zeo/zhash.go+prefetch128  57.7µs ± 2%
    	deco/zeo/zhash.go-P16          1.23ms ± 5%
    
    and in particular it shows that with the same ZEO/py server, the latency
    to load an object via py client is ~ 3x worse compared to the latency to
    load the same object via hereby Go client.
    
    The performance was obtained via forthcoming neotest, and in particular
    ZEO/go client will be also used in forthcoming zwrk (no analog on python side).
    
    See http://navytux.spb.ru/~kirr/neo.html#performance-tests for details.
    
    Tests: pending.
    b65f6d0f
zrpc.go 10.8 KB