edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits
| 1 | //! benchp1: ASS parse throughput for lanes/bench.md ("lane benchp1"). |
| 2 | //! |
| 3 | //! usage: benchp1 ass <file> [reps] |
| 4 | //! |
| 5 | //! Parses the whole file `reps` times (default 5). Each timed run repeats the parse until it |
| 6 | //! takes at least 0.2 s, so the per-parse time is not timer noise. Prints the best per-parse |
| 7 | //! time, the throughput in MB/s and the cue count of the parsed track (checked against ffprobe). |
| 8 | use black_box; |
| 9 | use Instant; |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 |