sharksforarms / deku

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

Add returning io:ErrorKind from reader and writer #433

Closed wcampbell0x2a closed 2 months ago

wcampbell0x2a commented 2 months ago
github-actions[bot] commented 2 months ago

Benchmark for 828a571

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | deku_read_bits | 1232.4±10.98ns | **1221.4±12.70ns** | **-0.89%** | | deku_read_byte | **5.5±0.10ns** | 5.7±0.47ns | **+3.64%** | | deku_read_enum | 2.8±0.07ns | **2.5±0.06ns** | **-10.71%** | | deku_read_vec | 36.6±0.28ns | **36.3±0.49ns** | **-0.82%** | | deku_write_bits | **173.6±3.96ns** | 175.9±2.02ns | **+1.32%** | | deku_write_byte | 22.0±0.19ns | **21.7±0.24ns** | **-1.36%** | | deku_write_enum | 20.6±1.43ns | 20.5±0.32ns | -0.49% | | deku_write_vec | 294.9±3.52ns | 292.2±13.09ns | -0.92% |
github-actions[bot] commented 2 months ago

Benchmark for 446a487

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | deku_read_bits | 1214.9±30.84ns | 1226.2±19.21ns | +0.93% | | deku_read_byte | **5.2±0.11ns** | 5.7±0.07ns | **+9.62%** | | deku_read_enum | 2.5±0.07ns | 2.5±0.06ns | 0.00% | | deku_read_vec | 35.8±1.42ns | 35.7±0.88ns | -0.28% | | deku_write_bits | **168.4±3.78ns** | 179.5±30.96ns | **+6.59%** | | deku_write_byte | 21.7±0.45ns | 21.7±0.25ns | 0.00% | | deku_write_enum | 20.2±0.46ns | 20.4±0.37ns | +0.99% | | deku_write_vec | 299.5±5.65ns | **291.8±6.13ns** | **-2.57%** |