2018-10-24 17:56:17 -04:00
|
|
|
================================================================================================
|
|
|
|
Benchmark Kryo Unsafe vs safe Serialization
|
|
|
|
================================================================================================
|
|
|
|
|
2019-09-30 00:43:58 -04:00
|
|
|
OpenJDK 64-Bit Server VM 1.8.0_222-b10 on Linux 3.10.0-862.3.2.el7.x86_64
|
|
|
|
Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz
|
|
|
|
Benchmark Kryo Unsafe vs safe Serialization: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative
|
|
|
|
------------------------------------------------------------------------------------------------------------------------
|
|
|
|
basicTypes: Int with unsafe:true 269 290 23 3.7 269.0 1.0X
|
|
|
|
basicTypes: Long with unsafe:true 294 295 1 3.4 293.8 0.9X
|
|
|
|
basicTypes: Float with unsafe:true 300 301 1 3.3 300.4 0.9X
|
|
|
|
basicTypes: Double with unsafe:true 304 305 1 3.3 304.0 0.9X
|
|
|
|
Array: Int with unsafe:true 5 6 1 193.5 5.2 52.0X
|
|
|
|
Array: Long with unsafe:true 8 9 1 131.2 7.6 35.3X
|
|
|
|
Array: Float with unsafe:true 6 6 0 163.5 6.1 44.0X
|
|
|
|
Array: Double with unsafe:true 9 10 0 108.8 9.2 29.3X
|
|
|
|
Map of string->Double with unsafe:true 54 54 1 18.7 53.6 5.0X
|
|
|
|
basicTypes: Int with unsafe:false 326 327 1 3.1 326.2 0.8X
|
|
|
|
basicTypes: Long with unsafe:false 353 354 1 2.8 353.3 0.8X
|
|
|
|
basicTypes: Float with unsafe:false 325 327 1 3.1 325.1 0.8X
|
|
|
|
basicTypes: Double with unsafe:false 335 336 1 3.0 335.0 0.8X
|
|
|
|
Array: Int with unsafe:false 27 28 1 36.7 27.2 9.9X
|
|
|
|
Array: Long with unsafe:false 40 41 1 25.0 40.0 6.7X
|
|
|
|
Array: Float with unsafe:false 12 13 1 80.8 12.4 21.7X
|
|
|
|
Array: Double with unsafe:false 21 21 1 48.6 20.6 13.1X
|
|
|
|
Map of string->Double with unsafe:false 56 57 1 17.8 56.1 4.8X
|
2018-10-24 17:56:17 -04:00
|
|
|
|
|
|
|
|