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 6622b51
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions lib/masto-id-convert/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,20 @@ 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
Expand All @@ -24,5 +32,5 @@ Processing a single Mastodon snowflake takes ~17ns

### 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 6622b51

Please sign in to comment.