Skip to content

Commit 619bf9c

Browse files
committed
update benchmark
1 parent 0f30621 commit 619bf9c

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

lib/masto-id-convert/README.md

+14-6
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,29 @@ The unix timestamp is preserved as-is, the 2-bytes sequence is stretched out via
88

99
## Performance
1010

11-
Tested inside a WSL2 installation on a Ryzen 5 3600X:
11+
Tested inside a WSL2 installation on an AMD Ryzen 7 7700X:
1212

1313
```text
14-
process 110368129515784116
15-
time: [16.675 ns 16.822 ns 17.037 ns]
16-
change: [-1.2226% -0.3915% +0.4911%] (p = 0.37 > 0.05)
14+
process integer 110368129515784116
15+
time: [2.9570 ns 2.9604 ns 2.9671 ns]
16+
Found 11 outliers among 100 measurements (11.00%)
17+
5 (5.00%) high mild
18+
6 (6.00%) high severe
19+
20+
process ASCII 110368129515784116
21+
time: [10.109 ns 10.114 ns 10.119 ns]
22+
Found 6 outliers among 100 measurements (6.00%)
23+
4 (4.00%) high mild
24+
2 (2.00%) high severe
1725
```
1826

19-
Processing a single Mastodon snowflake takes ~17ns
27+
Processing a single Mastodon snowflake takes ~10ns
2028

2129
## License
2230

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

2533
### Contribution
2634

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

0 commit comments

Comments
 (0)