Datong Sun
|
04b0e97c1d
|
perf(fake-tcp) faster checksum calculation
Before:
```
test packet::benchmarks::bench_build_tcp_packet_128 ... bench: 207 ns/iter (+/- 25)
test packet::benchmarks::bench_build_tcp_packet_1460 ... bench: 670 ns/iter (+/- 14)
test packet::benchmarks::bench_build_tcp_packet_512 ... bench: 334 ns/iter (+/- 21)
```
After:
```
test packet::benchmarks::bench_build_tcp_packet_128 ... bench: 206 ns/iter (+/- 9)
test packet::benchmarks::bench_build_tcp_packet_1460 ... bench: 259 ns/iter (+/- 16)
test packet::benchmarks::bench_build_tcp_packet_512 ... bench: 212 ns/iter (+/- 11)
```
|
2021-09-20 23:12:53 +08:00 |
|