sharksforarms / deku

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

Restore v0.16.0 id_pat #454

Closed wcampbell0x2a closed 2 months ago

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

Benchmark for 22221b6

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | deku_read_bits | 1281.4±11.79ns | **1247.9±26.80ns** | **-2.61%** | | deku_read_byte | 3.4±0.07ns | 3.4±0.06ns | 0.00% | | deku_read_enum | 2.6±0.04ns | 2.6±0.07ns | 0.00% | | deku_read_vec | **35.5±2.16ns** | 36.8±0.95ns | **+3.66%** | | deku_write_bits | 173.6±6.01ns | **167.2±9.96ns** | **-3.69%** | | deku_write_byte | 24.0±0.36ns | 24.3±1.73ns | +1.25% | | deku_write_enum | 22.6±0.37ns | 22.6±0.38ns | 0.00% | | deku_write_vec | 415.8±6.26ns | 417.1±3.39ns | +0.31% |
github-actions[bot] commented 5 months ago

Benchmark for 556c1e7

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | deku_read_bits | 1273.3±19.06ns | **1201.5±15.42ns** | **-5.64%** | | deku_read_byte | 3.4±0.09ns | 3.4±0.12ns | 0.00% | | deku_read_enum | 2.6±0.04ns | 2.6±0.04ns | 0.00% | | deku_read_vec | **34.9±0.57ns** | 36.4±0.60ns | **+4.30%** | | deku_write_bits | 183.4±4.70ns | **165.6±4.03ns** | **-9.71%** | | deku_write_byte | 24.0±0.24ns | 24.1±0.49ns | +0.42% | | deku_write_enum | 22.7±0.45ns | 22.7±0.34ns | 0.00% | | deku_write_vec | 420.2±7.31ns | 414.7±6.46ns | -1.31% |
wcampbell0x2a commented 2 months ago

Waiting for #360

github-actions[bot] commented 2 months ago

Benchmark for 397a8b8

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | count | **3.6±0.02µs** | 5.0±0.01µs | **+38.89%** | | deku_read_bits | **1162.0±11.01ns** | 1188.4±11.06ns | **+2.27%** | | deku_read_byte | **3.4±0.07ns** | 3.6±0.06ns | **+5.88%** | | deku_read_enum | **3.1±0.07ns** | 3.5±0.05ns | **+12.90%** | | deku_read_vec | **31.0±0.70ns** | 43.2±0.34ns | **+39.35%** | | deku_write_bits | 189.2±4.86ns | **176.0±2.64ns** | **-6.98%** | | deku_write_byte | 24.5±0.46ns | 24.9±0.75ns | +1.63% | | deku_write_enum | **22.6±0.36ns** | 24.0±0.65ns | **+6.19%** | | deku_write_vec | 416.1±6.63ns | 411.2±5.85ns | -1.18% | | read_all | 5.6±0.03µs | **3.8±0.06µs** | **-32.14%** | | read_all_bytes | **3.9±0.06µs** | 5.5±0.01µs | **+41.03%** |
github-actions[bot] commented 2 months ago

Benchmark for cae76f9

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | count | **3.4±0.01µs** | 5.0±0.02µs | **+47.06%** | | deku_read_bits | 1138.2±19.45ns | 1136.3±13.71ns | -0.17% | | deku_read_byte | 3.6±0.13ns | **3.4±0.04ns** | **-5.56%** | | deku_read_enum | 3.5±0.03ns | **3.1±0.05ns** | **-11.43%** | | deku_read_vec | **32.3±0.38ns** | 42.4±0.61ns | **+31.27%** | | deku_write_bits | 192.2±4.54ns | 195.5±5.03ns | +1.72% | | deku_write_byte | **24.4±0.41ns** | 24.8±0.31ns | **+1.64%** | | deku_write_enum | **22.6±0.37ns** | 24.1±0.48ns | **+6.64%** | | deku_write_vec | **416.2±5.39ns** | 470.8±9.26ns | **+13.12%** | | read_all | **3.8±0.05µs** | 5.5±0.06µs | **+44.74%** | | read_all_bytes | 5.4±0.04µs | **3.8±0.22µs** | **-29.63%** |
wcampbell0x2a commented 2 months ago

Ah, I'll need to fix the commits. Unfortunate side effect of squashing.

github-actions[bot] commented 2 months ago

Benchmark for 11cdba7

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | count | **3.6±0.03µs** | 5.0±0.01µs | **+38.89%** | | deku_read_bits | **1135.4±17.51ns** | 1174.0±20.35ns | **+3.40%** | | deku_read_byte | 3.5±0.15ns | **3.3±0.09ns** | **-5.71%** | | deku_read_enum | **3.1±0.05ns** | 3.2±0.11ns | **+3.23%** | | deku_read_vec | **31.2±0.56ns** | 42.3±0.88ns | **+35.58%** | | deku_write_bits | **190.1±3.22ns** | 205.6±6.59ns | **+8.15%** | | deku_write_byte | **24.6±0.21ns** | 24.9±0.46ns | **+1.22%** | | deku_write_enum | **22.6±0.38ns** | 24.3±0.81ns | **+7.52%** | | deku_write_vec | 416.0±14.52ns | 417.5±4.00ns | +0.36% | | read_all | 3.8±0.07µs | 3.8±0.38µs | 0.00% | | read_all_bytes | 5.5±0.04µs | 5.5±0.02µs | 0.00% |