From 1c87c12035e68fdb65fdba303d232e6357551fe9 Mon Sep 17 00:00:00 2001 From: godotg Date: Sun, 15 Oct 2023 16:38:22 +0800 Subject: [PATCH] test[cpp]: test complex object --- .../java/com/zfoo/protocol/BenchmarkTesting.java | 4 ++-- protocol/src/test/resources/ComplexObject.bytes | Bin 2214 -> 0 bytes protocol/src/test/resources/complexObject.bytes | Bin 0 -> 2191 bytes 3 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 protocol/src/test/resources/ComplexObject.bytes create mode 100644 protocol/src/test/resources/complexObject.bytes diff --git a/protocol/src/test/java/com/zfoo/protocol/BenchmarkTesting.java b/protocol/src/test/java/com/zfoo/protocol/BenchmarkTesting.java index 801ffbcea..7ec4d80cf 100644 --- a/protocol/src/test/java/com/zfoo/protocol/BenchmarkTesting.java +++ b/protocol/src/test/java/com/zfoo/protocol/BenchmarkTesting.java @@ -50,8 +50,8 @@ public class BenchmarkTesting { *

* 包体大小: * 简单对象,zfoo包体大小8,kryo包体大小5,protobuf包体大小8 - * 常规对象,zfoo包体大小430,kryo包体大小483,protobuf包体大小793 - * 复杂对象,zfoo包体大小2216,kryo包体大小2528,protobuf包体大小5091 + * 常规对象,zfoo包体大小430,kryo包体大小516,protobuf包体大小793 + * 复杂对象,zfoo包体大小2191,kryo包体大小2611,protobuf包体大小5083 */ @Test public void singleThreadBenchmarks() { diff --git a/protocol/src/test/resources/ComplexObject.bytes b/protocol/src/test/resources/ComplexObject.bytes deleted file mode 100644 index 7ef502dadd1a3fdf644eb2b7aed6158bf595271d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2214 zcmZQbVN6cuYM9HATn{1D`PKQk8W{f1Wnch`{YPT{YhE7@!hHXMfd4O$b(E3e7$aC1 zB!Wx)-~aYMXZIXdhS5SG{b2AHDuZSgOgU5)sp@_9?NI<>KA;a6&j1;Rj-NRTWHUGc zX^=#H{r~@XB^{?Z}{7i{pK2z#Z zMy8}=j7%wv3@n6|5LSUJuG!dd$&e~O2n}K*94^#QF}$onN}FuBlO=U!*q8{%0}oyos)pH^ aa5);A#2;`SgGI+Lumlmg1F3kx<5~ccH%l-8 diff --git a/protocol/src/test/resources/complexObject.bytes b/protocol/src/test/resources/complexObject.bytes new file mode 100644 index 0000000000000000000000000000000000000000..a922fa6333f25c227ce5a61398a7c5c93ff4ef92 GIT binary patch literal 2191 zcmdrN%SyvQaAuG_lzxDQl>5K5A#q%8DtA-auVuR& zMeaP*D1#b_sNu+V@k!ON?>>iH;>g?_;KN``aZ@_ATp?sHt8HjtxDAI~71@H` W#aNp*vqR&@Fltms<$2f>Ex<2>nMW}I literal 0 HcmV?d00001