From 9285ee2853839db93bed907c7807cb356e5e04ae Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sat, 9 Mar 2024 18:50:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md=20=E6=96=87?= =?UTF-8?q?=E4=BB=B6=EF=BC=8C=E6=B7=BB=E5=8A=A0=E4=BA=86=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=92=8C=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=BB=93=E6=9E=9C=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/README.md b/README.md index f710429..daec230 100644 --- a/README.md +++ b/README.md @@ -28,3 +28,53 @@ writen in rust! - 一年左右的技术积累 - 4000 mb/s ? - 支持 `serde` 序列化/反序列化 + +## 测试数据 + +解压 `test-data.zip` 到 `test-data` 文件夹 + +```text +❯ cargo run --release -- .\test-data\test-zip + +============ small test ============ +=== nbt v1 === +time: 1.2222941s speed: 1263.1984397208494 (bytes/sec) +1.233592226289892 (kb/sec) +0.0012046799084862226 (mb/sec) +1.1764452231310768e-6 (gb/sec) +10 5 +Level +=== nbt v2 === +time: 269.1µs speed: 5737643.9985135645 (bytes/sec) +5603.167967298403 (kb/sec) +5.4718437180648465 (mb/sec) +0.005343597380922702 (gb/sec) +=== nbt v3 === +time: 58µs speed: 26620689.655172415 (bytes/sec) +25996.76724137931 (kb/sec) +25.387468009159484 (mb/sec) +0.02479244922769481 (gb/sec) +10 5 +Level +=== nbt v4 === +time: 211.7µs speed: 7293339.631554086 (bytes/sec) +7122.401983939537 (kb/sec) +6.955470687440954 (mb/sec) +0.006792451843204057 (gb/sec) +=== nbt v5 === +time: 34.6µs speed: 44624277.456647396 (bytes/sec) +43578.39595375722 (kb/sec) +42.55702729859104 (mb/sec) +0.04155959697128031 (gb/sec) +=== fastnbt === +time: 37.7µs speed: 40954907.161803715 (bytes/sec) +39995.02652519894 (kb/sec) +39.05764309101459 (mb/sec) +0.038142229581068936 (gb/sec) +============ cli test ============ +=== shen nbt 5 === +time: 2.2960054s speed: 2509544103.424147 (bytes/sec) +2450726.6635001437 (kb/sec) +2393.287757324359 (mb/sec) +2.3371950755120694 (gb/sec) +```