eishay / jvm-serializers

Benchmark comparing serialization libraries on the JVM
http://groups.google.com/group/java-serialization-benchmarking
3.29k stars 562 forks source link

Disable fury ByteArrayStream copy opimization #90

Closed chaokunyang closed 1 year ago

chaokunyang commented 1 year ago

As #89 said, fury io.fury.Fury#serializeJavaObject(java.io.OutputStream, java.lang.Object) may save a copy inside, which may affect the benchmark result.

This won't make very much difference since serialization is much more time consuming than the copy of ~250 bytes, but to make the benchmark result more solid, this PR workaround it by copying the data manually .