mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-08-23 18:25:50 +00:00
test[protocol]: 极端大的对象序列化和反序列化测试
This commit is contained in:
@@ -44,7 +44,7 @@ public class VeryBigObject implements IPacket {
|
||||
return;
|
||||
}
|
||||
|
||||
ByteBuf buffer = new UnpooledHeapByteBuf(ByteBufAllocator.DEFAULT, 100, 100_0000);
|
||||
ByteBuf buffer = new UnpooledHeapByteBuf(ByteBufAllocator.DEFAULT, 100, 10_0000);
|
||||
|
||||
// 序列化和反序列化极端大的对象
|
||||
long startTime = System.currentTimeMillis();
|
||||
@@ -60,7 +60,7 @@ public class VeryBigObject implements IPacket {
|
||||
try {
|
||||
var kryo = kryos.get();
|
||||
|
||||
var output = new Output(100_0000);
|
||||
var output = new Output(10_0000);
|
||||
var input = new Input(output.getBuffer());
|
||||
|
||||
// 序列化和反序列化极端大的对象
|
||||
|
||||
Reference in New Issue
Block a user