• Kirill Smelkov's avatar
    go/neo/t/neotest: bench-cpu += unzlib for wczblk1 and prod1 objects · 91a8afa8
    Kirill Smelkov authored
    NEO uses zlib compression for data, and this way client has to spend
    time decompressing it. Benchmark how much time zlib decompression takes.
    With stdlib zlib decompressor out of the box it looks like:
    
    	name                 time/op
    	unzlib/py/wczdata    20.7µs ± 2%
    	unzlib/go/wczdata    70.6µs ± 0%
    	unzlib/py/prod1-avg  4.02µs ± 1%
    	unzlib/go/prod1-avg  15.2µs ± 0%
    
    i.e. much not in favour of Go.
    
    We'll be fixing that in the following patches.
    91a8afa8
tcpu.py 3.39 KB