edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiB4d688f2Tahinli6 days ago3943 commits
| 1 | #!/usr/bin/env bash |
| 2 | # bench-rows.sh: local best-of-5 decode rows (DONE.md D7: speed is measured on the local |
| 3 | # 12-core machine). Rows: ec-vp8 decode, ec-vp9 decode at 1/2/4/6 tile threads, ec-ac3 5.1 |
| 4 | # 448k decode with parity, ec-h264 decode at 1/2/4/6 cores (the decoder runs 1 thread). |
| 5 | # Every row starts only when the 1-minute load is below 3; otherwise it waits in 290 s |
| 6 | # steps for at most 1 h (12 steps). Clips come from scripts/bench-rows-clips.sh. |
| 7 | # Usage: scripts/bench-rows.sh (prints markdown rows; also saved under $BENCH_CLIPS) |
| 8 | |
| 9 | root= |
| 10 | clips= |
| 11 | |
| 12 | |
| 13 | |
| 14 | rel=/release |
| 15 | today= |
| 16 | res="/bench-rows-.md" |
| 17 | |
| 18 | |
| 19 | # Prints the 1-minute load once it is below 3. Returns 1 after 1 h of waiting. |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | # emit <crate> <clip> <threads> <load> <fps> <realtime> <check> |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | # ---- build (outside the gate; nothing is timed here) ---- |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | # ---- ec-vp8 decode, 1080p30 libvpx clip, 1 thread (the decoder has no thread knob) ---- |
| 50 | vp8=/vp8-1080p30.ivf |
| 51 | if ; then |
| 52 | line= |
| 53 | fps= |
| 54 | raw=/vp8.yuv |
| 55 | |
| 56 | got=; |
| 57 | want= |
| 58 | check="md5 " |
| 59 | |
| 60 | else |
| 61 | |
| 62 | fi |
| 63 | |
| 64 | # ---- ec-vp9 decode, 1080p30 profile 0, 4 tile columns, threads 1/2/4/6 ---- |
| 65 | vp9=/vp9-1080p30-tile4.ivf |
| 66 | want= |
| 67 | for; do |
| 68 | if ; then |
| 69 | best=0 |
| 70 | for; do |
| 71 | f= |
| 72 | best= |
| 73 | done |
| 74 | raw=/vp9.yuv |
| 75 | EC_RAW_OUT= |
| 76 | got=; |
| 77 | check="md5 " |
| 78 | |
| 79 | |
| 80 | else |
| 81 | |
| 82 | fi |
| 83 | done |
| 84 | |
| 85 | # ---- ec-ac3 decode, AC-3 5.1 448 kb/s, 60 s; speed to /dev/null, parity to a file ---- |
| 86 | ac3=/ac3-5.1-448k.ac3 |
| 87 | if ; then |
| 88 | best=0 |
| 89 | for; do |
| 90 | rt= |
| 91 | best= |
| 92 | done |
| 93 | out=/ac3.f32 |
| 94 | errs= |
| 95 | par= |
| 96 | |
| 97 | |
| 98 | |
| 99 | else |
| 100 | |
| 101 | fi |
| 102 | |
| 103 | # ---- ec-h264 decode: the bench.log:145 row, from tools/ec-bench itself, pinned to 1/2/4/6 |
| 104 | # cores. The decoder has no thread knob (ec-h264 spawns threads only in enc/), so the |
| 105 | # core count is the only parallelism available; 5 full ec-bench runs per core count. ---- |
| 106 | bench=/release/ec-bench |
| 107 | for; do |
| 108 | best="" |
| 109 | loads="" |
| 110 | for; do |
| 111 | if ; then |
| 112 | line= |
| 113 | ms= |
| 114 | frames= |
| 115 | loads=" " |
| 116 | if [ || ; then |
| 117 | best=; bestframes= |
| 118 | fi |
| 119 | else |
| 120 | loads=" gate-timeout" |
| 121 | fi |
| 122 | done |
| 123 | fps= |
| 124 | |
| 125 | |
| 126 | |
| 127 | done |
| 128 |