Skip to content

Commit

Permalink
update benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed Jan 21, 2024
1 parent 0f30621 commit 619bf9c
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions lib/masto-id-convert/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,29 @@ 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 WSL2 installation on an AMD Ryzen 7 7700X:

```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)
process integer 110368129515784116
time: [2.9570 ns 2.9604 ns 2.9671 ns]
Found 11 outliers among 100 measurements (11.00%)
5 (5.00%) high mild
6 (6.00%) high severe
process ASCII 110368129515784116
time: [10.109 ns 10.114 ns 10.119 ns]
Found 6 outliers among 100 measurements (6.00%)
4 (4.00%) high mild
2 (2.00%) high severe
```

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

## 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 619bf9c

Please sign in to comment.