mirror of
https://github.com/NotAShelf/mdlinkt.git
synced 2024-11-25 14:46:47 +00:00
add benchmarks
This commit is contained in:
parent
814315e184
commit
2e691da84d
1 changed files with 10 additions and 0 deletions
10
README.md
10
README.md
|
@ -29,6 +29,16 @@ Should you want more details on the links that are scanned, you may pass the `-v
|
||||||
In case of invalid links, the program will exit with exit code 1, making it perfect for usage in
|
In case of invalid links, the program will exit with exit code 1, making it perfect for usage in
|
||||||
GitHub actions or other pipelines.
|
GitHub actions or other pipelines.
|
||||||
|
|
||||||
|
### Performance
|
||||||
|
|
||||||
|
For a file containing **10,000 invalid links**, the **Hyperfine** benchmark is as follows.
|
||||||
|
|
||||||
|
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|
||||||
|
| :-------------------------------- | -----------: | -------: | -------: | -------: |
|
||||||
|
| `mdlinkt -verbose -file links.md` | 822.2 ± 22.6 | 787.4 | 959.8 | 1.00 |
|
||||||
|
|
||||||
|
The test has been conducted on a **Ryzen 5 3600X**, at a **95 ± 5 MB/s** bandwitdh speed.
|
||||||
|
|
||||||
## Hacking
|
## Hacking
|
||||||
|
|
||||||
A nix flake is provided. Use `direnv allow` or `nix develop` to enter the development shell.
|
A nix flake is provided. Use `direnv allow` or `nix develop` to enter the development shell.
|
||||||
|
|
Loading…
Reference in a new issue