diff options
author | kleines Filmröllchen <malu.bertsch@gmail.com> | 2021-12-21 00:22:29 +0100 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2021-12-20 23:15:22 -0800 |
commit | 102e0af867358969c28899ccd3c70998d4ead77f (patch) | |
tree | d00e52d3efca03bb0905425f0d6f43e7130fc215 /Base/usr/share/man/man1 | |
parent | ed9e7f1ad033404901a231fb5840225bef137581 (diff) | |
download | serenity-102e0af867358969c28899ccd3c70998d4ead77f.zip |
Base: Add documentation for abench
See #11311 :^)
Diffstat (limited to 'Base/usr/share/man/man1')
-rw-r--r-- | Base/usr/share/man/man1/abench.md | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Base/usr/share/man/man1/abench.md b/Base/usr/share/man/man1/abench.md new file mode 100644 index 0000000000..cb336d7f71 --- /dev/null +++ b/Base/usr/share/man/man1/abench.md @@ -0,0 +1,30 @@ +## Name + +abench - benchmark audio decoders + +## Synopsis + +```**sh +$ abench [--sample-count samples] <path> +``` + +## Description + +This program can be used to benchmark the performance of audio decoder plugins in LibAudio. It reports the raw decoding speed that is achieved on the given input file, without any overhead from resampling or actually playing the file. It is not only useful for benchmarking the decode speed of the file and/or profiling decoders, but also for checking conformance with (quirky) files. + +While `abench` is running, it doesn't report anything to make measurements more accurate. After running, abench reports sample count, loader runtime, µs/sample, realtime speed and (for reference) realtime µs/Sample. "Realtime speed" refers to how much faster the loader is compared to playing the file, and "realtime µs/sample" then refers to the amount of time each sample normally takes up when played back. When realtime speed is over 100%, it means that the loader can load the file while it is playing at the same time. + +## Options + +* `-s`, `--sample-count`: How many samples to load at maximum. This allows you to only benchmark some initial chunk of the file, which is useful when testing on quirky files that happen to be large. + +## Arguments + +* `path`: Path to audio file. As usual, the file type is determined automatically. + +## Examples + +```sh +$ abench ~/sound.flac +$ abench -s 20000 ~/music.flac +``` |