diff options
| author | raven <citrons@mondecitronne.com> | 2026-03-27 19:06:49 -0500 |
|---|---|---|
| committer | raven <citrons@mondecitronne.com> | 2026-03-27 19:07:30 -0500 |
| commit | b35dec2b4625ad85c0999a4c59a2f05d4eb06d82 (patch) | |
| tree | d0b2bba7c499f339c88ac5a0abc24ab1d14a3da4 /server/level.go | |
| parent | 0a56a69743bb53b57e090323364d594aa3ba70af (diff) | |
benchmark custom DEFLATE compressoroptiflate
BenchmarkNaiveGzip
flate_test.go:47: compressed empty to 1043631 bytes
flate_test.go:47: compressed debug to 1043939 bytes
flate_test.go:47: compressed flat to 1043648 bytes
flate_test.go:47: compressed sphere to 4981910 bytes
flate_test.go:72: naive gzip compressor completed in 24.744500019s
BenchmarkDeflate
flate_test.go:47: compressed empty to 13525844 bytes
flate_test.go:47: compressed debug to 13526111 bytes
flate_test.go:47: compressed flat to 13525852 bytes
flate_test.go:47: compressed sphere to 19927269 bytes
flate_test.go:77: custom deflate compressor completed in 546.099782ms
the standard gzip compressor is almost 40 times slower, but it requires around
a tenth of the network bandwidth. so, it would seem that, since the internet is
slower than CPUs, standard gzip wins out probably.
the custom compressor may gain an advantage if huffman trees are actually
implemented. however, I'm going to focus on other things for now.
Diffstat (limited to 'server/level.go')
0 files changed, 0 insertions, 0 deletions
