sharksforarms / deku

Declarative binary reading and writing: bit-level, symmetric, serialization/deserialization
Apache License 2.0
1.14k stars 55 forks source link

Add to_slice #461

Closed wcampbell0x2a closed 4 months ago

github-actions[bot] commented 4 months ago

Benchmark for f979437

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | deku_read_bits | 1241.4±14.49ns | 1243.0±23.13ns | +0.13% | | deku_read_byte | 3.3±0.05ns | 3.3±0.06ns | 0.00% | | deku_read_enum | 2.6±0.05ns | 2.6±0.06ns | 0.00% | | deku_read_vec | 33.7±0.60ns | 34.2±0.52ns | +1.48% | | deku_write_bits | **160.6±6.37ns** | 167.4±7.29ns | **+4.23%** | | deku_write_byte | 22.4±0.33ns | 22.6±0.93ns | +0.89% | | deku_write_enum | 21.4±0.31ns | 21.4±0.52ns | 0.00% | | deku_write_vec | **336.0±6.40ns** | 394.1±5.06ns | **+17.29%** |
github-actions[bot] commented 4 months ago

Benchmark for 5be88f4

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | deku_read_bits | **1232.4±11.28ns** | 1277.5±18.10ns | **+3.66%** | | deku_read_byte | 3.3±0.04ns | 3.3±0.03ns | 0.00% | | deku_read_enum | 2.5±0.05ns | 2.5±0.05ns | 0.00% | | deku_read_vec | 32.9±0.22ns | 33.1±0.99ns | +0.61% | | deku_write_bits | 169.3±3.27ns | 166.5±5.88ns | -1.65% | | deku_write_byte | 22.6±0.34ns | 22.4±0.33ns | -0.88% | | deku_write_enum | 21.1±0.31ns | 21.1±0.41ns | 0.00% | | deku_write_vec | **336.1±10.29ns** | 349.7±6.62ns | **+4.05%** |
github-actions[bot] commented 4 months ago

Benchmark for 15f0828

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | deku_read_bits | 1264.6±14.00ns | 1262.6±20.41ns | -0.16% | | deku_read_byte | **3.4±0.40ns** | 3.5±0.08ns | **+2.94%** | | deku_read_enum | **2.5±0.08ns** | 2.8±0.08ns | **+12.00%** | | deku_read_vec | 34.1±0.83ns | 34.6±0.69ns | +1.47% | | deku_write_bits | 170.1±3.31ns | 170.7±3.74ns | +0.35% | | deku_write_byte | 22.4±0.19ns | 22.5±0.32ns | +0.45% | | deku_write_enum | 21.1±0.35ns | 21.1±0.34ns | 0.00% | | deku_write_vec | **345.7±6.75ns** | 386.5±5.88ns | **+11.80%** |