urlyy commented on PR #2737:
URL: https://github.com/apache/fory/pull/2737#issuecomment-3388738443
hardware:
```
Chip: Apple M1 Pro
Total Number of Cores: 10 (8 performance and 2 efficiency)
Memory: 16 GB
```
benchmark output:
```shell
% cargo bench
Running benches/serialization_bench.rs
(/Users/urlyy/workspace/ospp/context-pool/fory/rust/target/release/deps/serialization_bench-a7c52111c25e5717)
Gnuplot not found, using plotters backend
simple_struct/fory_serialize/small
time: [424.90 ns 427.02 ns 429.23 ns]
simple_struct/fory_serialize/medium
time: [461.91 ns 463.65 ns 465.44 ns]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) low mild
simple_struct/fory_serialize/large
time: [575.43 ns 577.84 ns 580.42 ns]
simple_struct/fory_deserialize/small
time: [415.83 ns 419.76 ns 423.73 ns]
Found 3 outliers among 100 measurements (3.00%)
1 (1.00%) low severe
2 (2.00%) low mild
simple_struct/fory_deserialize/medium
time: [414.77 ns 417.19 ns 419.66 ns]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) low mild
simple_struct/fory_deserialize/large
time: [436.08 ns 437.21 ns 438.37 ns]
Found 2 outliers among 100 measurements (2.00%)
1 (1.00%) low mild
1 (1.00%) high mild
simple_struct/protobuf_serialize/small
time: [160.08 ns 161.12 ns 162.15 ns]
simple_struct/protobuf_serialize/medium
time: [216.48 ns 217.48 ns 218.55 ns]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
simple_struct/protobuf_serialize/large
time: [191.06 ns 193.44 ns 196.05 ns]
Found 7 outliers among 100 measurements (7.00%)
7 (7.00%) high mild
simple_struct/protobuf_deserialize/small
time: [47.335 ns 47.411 ns 47.493 ns]
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mild
simple_struct/protobuf_deserialize/medium
time: [47.771 ns 47.852 ns 47.929 ns]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
simple_struct/protobuf_deserialize/large
time: [58.082 ns 58.653 ns 59.446 ns]
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high severe
simple_struct/json_serialize/small
time: [158.41 ns 160.31 ns 162.90 ns]
Found 5 outliers among 100 measurements (5.00%)
2 (2.00%) high mild
3 (3.00%) high severe
simple_struct/json_serialize/medium
time: [153.68 ns 154.80 ns 156.57 ns]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high severe
simple_struct/json_serialize/large
time: [302.87 ns 304.89 ns 307.59 ns]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high severe
simple_struct/json_deserialize/small
time: [111.60 ns 112.27 ns 113.37 ns]
Found 4 outliers among 100 measurements (4.00%)
2 (2.00%) high mild
2 (2.00%) high severe
simple_struct/json_deserialize/medium
time: [131.31 ns 131.59 ns 131.86 ns]
simple_struct/json_deserialize/large
time: [153.18 ns 155.88 ns 160.95 ns]
Found 6 outliers among 100 measurements (6.00%)
2 (2.00%) high mild
4 (4.00%) high severe
simple_list/fory_serialize/small
time: [389.43 ns 397.10 ns 411.53 ns]
Found 2 outliers among 100 measurements (2.00%)
1 (1.00%) high mild
1 (1.00%) high severe
simple_list/fory_serialize/medium
time: [2.1278 µs 2.1797 µs 2.2654 µs]
Found 7 outliers among 100 measurements (7.00%)
2 (2.00%) high mild
5 (5.00%) high severe
simple_list/fory_serialize/large
time: [22.685 µs 22.908 µs 23.161 µs]
Found 8 outliers among 100 measurements (8.00%)
2 (2.00%) high mild
6 (6.00%) high severe
simple_list/fory_deserialize/small
time: [479.99 ns 483.45 ns 487.44 ns]
Found 2 outliers among 100 measurements (2.00%)
1 (1.00%) high mild
1 (1.00%) high severe
simple_list/fory_deserialize/medium
time: [3.5432 µs 3.5561 µs 3.5680 µs]
Found 2 outliers among 100 measurements (2.00%)
1 (1.00%) low severe
1 (1.00%) high mild
simple_list/fory_deserialize/large
time: [28.764 µs 28.852 µs 28.938 µs]
simple_list/protobuf_serialize/small
time: [286.84 ns 289.31 ns 291.58 ns]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high severe
simple_list/protobuf_serialize/medium
time: [3.7468 µs 3.7619 µs 3.7757 µs]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) low mild
simple_list/protobuf_serialize/large
time: [34.921 µs 35.218 µs 35.595 µs]
Found 6 outliers among 100 measurements (6.00%)
1 (1.00%) low mild
2 (2.00%) high mild
3 (3.00%) high severe
simple_list/protobuf_deserialize/small
time: [302.38 ns 303.90 ns 305.62 ns]
Found 3 outliers among 100 measurements (3.00%)
1 (1.00%) high mild
2 (2.00%) high severe
simple_list/protobuf_deserialize/medium
time: [4.1577 µs 4.1764 µs 4.1947 µs]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
simple_list/protobuf_deserialize/large
time: [35.338 µs 35.483 µs 35.643 µs]
simple_list/json_serialize/small
time: [283.20 ns 287.40 ns 292.62 ns]
Found 3 outliers among 100 measurements (3.00%)
3 (3.00%) high severe
simple_list/json_serialize/medium
time: [3.6452 µs 3.6536 µs 3.6625 µs]
Found 3 outliers among 100 measurements (3.00%)
3 (3.00%) high severe
simple_list/json_serialize/large
time: [37.841 µs 37.946 µs 38.057 µs]
Found 3 outliers among 100 measurements (3.00%)
1 (1.00%) high mild
2 (2.00%) high severe
simple_list/json_deserialize/small
time: [376.82 ns 379.73 ns 382.66 ns]
simple_list/json_deserialize/medium
time: [4.6179 µs 4.6330 µs 4.6467 µs]
Found 10 outliers among 100 measurements (10.00%)
7 (7.00%) low mild
3 (3.00%) high mild
simple_list/json_deserialize/large
time: [42.099 µs 42.200 µs 42.312 µs]
simple_map/fory_serialize/small
time: [399.45 ns 401.13 ns 402.86 ns]
Found 5 outliers among 100 measurements (5.00%)
3 (3.00%) low mild
2 (2.00%) high mild
simple_map/fory_serialize/medium
time: [4.1269 µs 4.1379 µs 4.1487 µs]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
simple_map/fory_serialize/large
time: [49.107 µs 49.216 µs 49.327 µs]
Found 3 outliers among 100 measurements (3.00%)
3 (3.00%) high mild
simple_map/fory_deserialize/small
time: [632.51 ns 634.34 ns 636.12 ns]
simple_map/fory_deserialize/medium
time: [8.8617 µs 8.8870 µs 8.9113 µs]
Found 3 outliers among 100 measurements (3.00%)
1 (1.00%) low mild
2 (2.00%) high mild
simple_map/fory_deserialize/large
time: [97.345 µs 97.881 µs 98.391 µs]
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mild
simple_map/protobuf_serialize/small
time: [502.44 ns 505.44 ns 508.14 ns]
Found 8 outliers among 100 measurements (8.00%)
3 (3.00%) low mild
4 (4.00%) high mild
1 (1.00%) high severe
simple_map/protobuf_serialize/medium
time: [7.8138 µs 7.8344 µs 7.8540 µs]
Found 4 outliers among 100 measurements (4.00%)
3 (3.00%) low mild
1 (1.00%) high mild
simple_map/protobuf_serialize/large
time: [78.011 µs 78.549 µs 79.168 µs]
Found 4 outliers among 100 measurements (4.00%)
2 (2.00%) high mild
2 (2.00%) high severe
simple_map/protobuf_deserialize/small
time: [407.59 ns 409.64 ns 411.44 ns]
simple_map/protobuf_deserialize/medium
time: [12.638 µs 12.663 µs 12.689 µs]
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mild
simple_map/protobuf_deserialize/large
time: [137.68 µs 138.36 µs 139.02 µs]
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mild
simple_map/json_serialize/small
time: [370.67 ns 372.37 ns 374.00 ns]
Found 7 outliers among 100 measurements (7.00%)
4 (4.00%) low mild
1 (1.00%) high mild
2 (2.00%) high severe
simple_map/json_serialize/medium
time: [7.0914 µs 7.1216 µs 7.1528 µs]
Found 2 outliers among 100 measurements (2.00%)
1 (1.00%) high mild
1 (1.00%) high severe
simple_map/json_serialize/large
time: [74.963 µs 75.379 µs 75.781 µs]
Found 3 outliers among 100 measurements (3.00%)
2 (2.00%) high mild
1 (1.00%) high severe
simple_map/json_deserialize/small
time: [476.58 ns 479.44 ns 481.93 ns]
simple_map/json_deserialize/medium
time: [12.134 µs 12.181 µs 12.239 µs]
Found 4 outliers among 100 measurements (4.00%)
4 (4.00%) high mild
simple_map/json_deserialize/large
time: [139.69 µs 140.17 µs 140.64 µs]
person/fory_serialize/small
time: [1.2056 µs 1.2152 µs 1.2242 µs]
Found 7 outliers among 100 measurements (7.00%)
7 (7.00%) low mild
person/fory_serialize/medium
time: [3.9864 µs 4.0137 µs 4.0431 µs]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
person/fory_serialize/large
time: [17.433 µs 17.506 µs 17.583 µs]
person/fory_deserialize/small
time: [1.5734 µs 1.5836 µs 1.5934 µs]
Found 3 outliers among 100 measurements (3.00%)
3 (3.00%) low mild
person/fory_deserialize/medium
time: [4.9893 µs 5.0138 µs 5.0382 µs]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
person/fory_deserialize/large
time: [18.309 µs 18.368 µs 18.425 µs]
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mild
person/protobuf_serialize/small
time: [908.64 ns 917.79 ns 926.78 ns]
person/protobuf_serialize/medium
time: [3.9573 µs 3.9687 µs 3.9793 µs]
Found 2 outliers among 100 measurements (2.00%)
1 (1.00%) low mild
1 (1.00%) high mild
person/protobuf_serialize/large
time: [16.203 µs 16.250 µs 16.299 µs]
person/protobuf_deserialize/small
time: [812.65 ns 822.49 ns 831.63 ns]
person/protobuf_deserialize/medium
time: [5.4042 µs 5.4244 µs 5.4459 µs]
person/protobuf_deserialize/large
time: [23.055 µs 23.117 µs 23.186 µs]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
person/json_serialize/small
time: [975.02 ns 980.18 ns 985.27 ns]
person/json_serialize/medium
time: [4.1729 µs 4.1878 µs 4.2030 µs]
person/json_serialize/large
time: [17.722 µs 17.771 µs 17.819 µs]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
person/json_deserialize/small
time: [1.0872 µs 1.0950 µs 1.1027 µs]
person/json_deserialize/medium
time: [5.3699 µs 5.3870 µs 5.4029 µs]
Found 3 outliers among 100 measurements (3.00%)
2 (2.00%) high mild
1 (1.00%) high severe
person/json_deserialize/large
time: [23.234 µs 23.315 µs 23.408 µs]
Found 3 outliers among 100 measurements (3.00%)
2 (2.00%) high mild
1 (1.00%) high severe
company/fory_serialize/small
time: [2.1311 µs 2.1399 µs 2.1474 µs]
Found 15 outliers among 100 measurements (15.00%)
12 (12.00%) low mild
2 (2.00%) high mild
1 (1.00%) high severe
company/fory_serialize/medium
time: [42.306 µs 42.539 µs 42.782 µs]
Benchmarking company/fory_serialize/large: Warming up for 3.0000 s
Warning: Unable to complete 100 samples in 5.0s. You may wish to increase
target time to 9.1s, enable flat sampling, or reduce sample count to 50.
company/fory_serialize/large
time: [1.7963 ms 1.8073 ms 1.8206 ms]
Found 8 outliers among 100 measurements (8.00%)
5 (5.00%) low mild
1 (1.00%) high mild
2 (2.00%) high severe
company/fory_deserialize/small
time: [2.6847 µs 2.6953 µs 2.7062 µs]
Found 3 outliers among 100 measurements (3.00%)
1 (1.00%) low mild
2 (2.00%) high severe
company/fory_deserialize/medium
time: [51.254 µs 51.403 µs 51.565 µs]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
Benchmarking company/fory_deserialize/large: Warming up for 3.0000 s
Warning: Unable to complete 100 samples in 5.0s. You may wish to increase
target time to 9.8s, enable flat sampling, or reduce sample count to 50.
company/fory_deserialize/large
time: [1.9172 ms 1.9296 ms 1.9418 ms]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
company/protobuf_serialize/small
time: [1.4973 µs 1.5026 µs 1.5076 µs]
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mild
company/protobuf_serialize/medium
time: [38.229 µs 38.336 µs 38.451 µs]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
Benchmarking company/protobuf_serialize/large: Warming up for 3.0000 s
Warning: Unable to complete 100 samples in 5.0s. You may wish to increase
target time to 8.7s, enable flat sampling, or reduce sample count to 50.
company/protobuf_serialize/large
time: [1.6826 ms 1.6947 ms 1.7065 ms]
company/protobuf_deserialize/small
time: [1.5393 µs 1.5454 µs 1.5515 µs]
company/protobuf_deserialize/medium
time: [56.801 µs 56.988 µs 57.164 µs]
company/protobuf_deserialize/large
time: [2.3166 ms 2.3278 ms 2.3395 ms]
company/json_serialize/small
time: [1.7795 µs 1.7873 µs 1.7951 µs]
company/json_serialize/medium
time: [41.326 µs 41.469 µs 41.616 µs]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
Benchmarking company/json_serialize/large: Warming up for 3.0000 s
Warning: Unable to complete 100 samples in 5.0s. You may wish to increase
target time to 9.3s, enable flat sampling, or reduce sample count to 50.
company/json_serialize/large
time: [1.7983 ms 1.8107 ms 1.8236 ms]
company/json_deserialize/small
time: [1.9320 µs 1.9383 µs 1.9446 µs]
Found 5 outliers among 100 measurements (5.00%)
3 (3.00%) high mild
2 (2.00%) high severe
company/json_deserialize/medium
time: [58.588 µs 58.856 µs 59.178 µs]
Found 6 outliers among 100 measurements (6.00%)
6 (6.00%) high mild
company/json_deserialize/large
time: [2.3914 ms 2.4050 ms 2.4189 ms]
ecommerce_data/fory_serialize/small
time: [6.7558 µs 6.8346 µs 6.9172 µs]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high severe
ecommerce_data/fory_serialize/medium
time: [284.05 µs 285.59 µs 286.96 µs]
Found 9 outliers among 100 measurements (9.00%)
6 (6.00%) low severe
2 (2.00%) low mild
1 (1.00%) high severe
ecommerce_data/fory_serialize/large
time: [4.4903 ms 4.5215 ms 4.5511 ms]
Found 9 outliers among 100 measurements (9.00%)
9 (9.00%) low mild
ecommerce_data/fory_deserialize/small
time: [10.123 µs 10.172 µs 10.213 µs]
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mild
ecommerce_data/fory_deserialize/medium
time: [378.81 µs 380.53 µs 382.42 µs]
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mild
ecommerce_data/fory_deserialize/large
time: [6.0711 ms 6.0923 ms 6.1142 ms]
ecommerce_data/protobuf_serialize/small
time: [5.4077 µs 5.4324 µs 5.4568 µs]
Found 3 outliers among 100 measurements (3.00%)
3 (3.00%) high mild
ecommerce_data/protobuf_serialize/medium
time: [271.99 µs 273.07 µs 274.16 µs]
Found 5 outliers among 100 measurements (5.00%)
3 (3.00%) low mild
1 (1.00%) high mild
1 (1.00%) high severe
ecommerce_data/protobuf_serialize/large
time: [4.7630 ms 4.7920 ms 4.8212 ms]
ecommerce_data/protobuf_deserialize/small
time: [5.8864 µs 5.9081 µs 5.9300 µs]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
ecommerce_data/protobuf_deserialize/medium
time: [341.41 µs 342.68 µs 344.05 µs]
Found 2 outliers among 100 measurements (2.00%)
1 (1.00%) high mild
1 (1.00%) high severe
ecommerce_data/protobuf_deserialize/large
time: [6.6111 ms 6.6346 ms 6.6586 ms]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
ecommerce_data/json_serialize/small
time: [6.4327 µs 6.4583 µs 6.4856 µs]
ecommerce_data/json_serialize/medium
time: [286.84 µs 288.20 µs 289.50 µs]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high severe
ecommerce_data/json_serialize/large
time: [5.0835 ms 5.1090 ms 5.1360 ms]
Found 8 outliers among 100 measurements (8.00%)
1 (1.00%) low mild
6 (6.00%) high mild
1 (1.00%) high severe
ecommerce_data/json_deserialize/small
time: [7.4882 µs 7.5091 µs 7.5307 µs]
Found 2 outliers among 100 measurements (2.00%)
1 (1.00%) high mild
1 (1.00%) high severe
ecommerce_data/json_deserialize/medium
time: [386.47 µs 388.28 µs 390.20 µs]
ecommerce_data/json_deserialize/large
time: [7.4075 ms 7.4412 ms 7.4754 ms]
system_data/fory_serialize/small
time: [2.9067 µs 2.9176 µs 2.9301 µs]
Found 7 outliers among 100 measurements (7.00%)
6 (6.00%) high mild
1 (1.00%) high severe
system_data/fory_serialize/medium
time: [116.97 µs 117.28 µs 117.59 µs]
Found 8 outliers among 100 measurements (8.00%)
1 (1.00%) low mild
3 (3.00%) high mild
4 (4.00%) high severe
Benchmarking system_data/fory_serialize/large: Warming up for 3.0000 s
Warning: Unable to complete 100 samples in 5.0s. You may wish to increase
target time to 8.3s, enable flat sampling, or reduce sample count to 50.
system_data/fory_serialize/large
time: [1.6159 ms 1.6208 ms 1.6261 ms]
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mild
system_data/fory_deserialize/small
time: [4.4536 µs 4.4689 µs 4.4830 µs]
system_data/fory_deserialize/medium
time: [156.04 µs 156.54 µs 157.06 µs]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
system_data/fory_deserialize/large
time: [2.0184 ms 2.0337 ms 2.0486 ms]
system_data/protobuf_serialize/small
time: [2.4219 µs 2.4348 µs 2.4478 µs]
Found 3 outliers among 100 measurements (3.00%)
1 (1.00%) low mild
2 (2.00%) high mild
system_data/protobuf_serialize/medium
time: [100.88 µs 101.13 µs 101.37 µs]
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mild
Benchmarking system_data/protobuf_serialize/large: Warming up for 3.0000 s
Warning: Unable to complete 100 samples in 5.0s. You may wish to increase
target time to 7.3s, enable flat sampling, or reduce sample count to 50.
system_data/protobuf_serialize/large
time: [1.3943 ms 1.4021 ms 1.4096 ms]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
system_data/protobuf_deserialize/small
time: [2.5470 µs 2.5547 µs 2.5625 µs]
system_data/protobuf_deserialize/medium
time: [138.03 µs 138.36 µs 138.68 µs]
Found 2 outliers among 100 measurements (2.00%)
1 (1.00%) low mild
1 (1.00%) high mild
system_data/protobuf_deserialize/large
time: [2.0790 ms 2.0884 ms 2.0983 ms]
Found 3 outliers among 100 measurements (3.00%)
2 (2.00%) high mild
1 (1.00%) high severe
system_data/json_serialize/small
time: [2.8893 µs 2.9007 µs 2.9131 µs]
Found 3 outliers among 100 measurements (3.00%)
1 (1.00%) low mild
2 (2.00%) high mild
system_data/json_serialize/medium
time: [119.45 µs 119.78 µs 120.10 µs]
Found 2 outliers among 100 measurements (2.00%)
1 (1.00%) high mild
1 (1.00%) high severe
Benchmarking system_data/json_serialize/large: Warming up for 3.0000 s
Warning: Unable to complete 100 samples in 5.0s. You may wish to increase
target time to 8.2s, enable flat sampling, or reduce sample count to 50.
system_data/json_serialize/large
time: [1.6088 ms 1.6168 ms 1.6250 ms]
system_data/json_deserialize/small
time: [3.2962 µs 3.3065 µs 3.3162 µs]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
system_data/json_deserialize/medium
time: [158.99 µs 159.49 µs 160.02 µs]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high severe
system_data/json_deserialize/large
time: [2.2753 ms 2.2836 ms 2.2919 ms]
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]