Skip to content

Commit

Permalink
update benches
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed Dec 11, 2024
1 parent 9e8f22b commit 27c69ba
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions lib/masto-id-convert/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,24 @@ The unix timestamp is preserved as-is, the 2-bytes sequence is stretched out via

## Performance

Tested inside a WSL2 installation on a Ryzen 5 3600X:
Tested inside a NixOS installation on a Ryzen 7 7840U:

```text
process 110368129515784116
time: [16.675 ns 16.822 ns 17.037 ns]
change: [-1.2226% -0.3915% +0.4911%] (p = 0.37 > 0.05)
Timer precision: 20 ns
process fastest β”‚ slowest β”‚ median β”‚ mean β”‚ samples β”‚ iters
β”œβ”€ process ASCII β”‚ β”‚ β”‚ β”‚ β”‚
β”‚ ╰─ 110368129515784116 20.82 ns β”‚ 192 ns β”‚ 20.98 ns β”‚ 24.25 ns β”‚ 100 β”‚ 12800
╰─ process integer β”‚ β”‚ β”‚ β”‚ β”‚
╰─ 110368129515784116 14.13 ns β”‚ 17.18 ns β”‚ 14.17 ns β”‚ 14.2 ns β”‚ 100 β”‚ 25600
```

Processing a single Mastodon snowflake takes ~17ns
Processing a single Mastodon snowflake takes ~14ns

## License

`masto-id-convert` is licensed under the [MIT license](http://opensource.org/licenses/MIT).

### Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you,
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you,
shall be licensed as above, without any additional terms or conditions.

0 comments on commit 27c69ba

Please sign in to comment.