Skip to content

Commit

Permalink
Release v0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wojciech-graj committed May 18, 2024
1 parent 62e3986 commit d30270c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Add this to your `Cargo.toml`:

```toml
[dependencies]
bin-proto = "0.3"
bin-proto = "0.4"
```

And then define a type with the `#[derive(bin_proto::Protocol)]` attribute.
Expand Down Expand Up @@ -120,13 +120,13 @@ This crate's main alternative is [deku](https://crates.io/crates/deku), and [bin

`bin-proto` is significantly faster than `deku` in all of the tested scenarios.
The units for the below table are `ns/iter`, taken from
[github CI](https://github.com/wojciech-graj/bin-proto/actions/runs/8471691807/job/23212208550).
[github CI](https://github.com/wojciech-graj/bin-proto/actions/runs/9143081499/job/25139334328).
You can find the benchmarks in the `bench` directory.

| | Read `enum` | Write `enum` | Read `Vec` | Write `Vec` | Read IPv4 header | Write IPv4 header |
|-------------|-------------|--------------|------------|-------------|------------------|-------------------|
| `bin-proto` | 28 | 110 | 1,293 | 1,261 | 165 | 163 |
| `deku` | 68 | 324 | 3,042 | 9,178 | 2,580 | 696 |
| `bin-proto` | 21 | 93 | 738 | 821 | 151 | 141 |
| `deku` | 67 | 227 | 3,041 | 9,705 | 2,468 | 821 |

## Roadmap

Expand Down

0 comments on commit d30270c

Please sign in to comment.