diff options
author | gorhill <rhill@raymondhill.net> | 2014-12-26 12:47:16 -0500 |
---|---|---|
committer | gorhill <rhill@raymondhill.net> | 2014-12-26 12:47:16 -0500 |
commit | e08b8d34576a816e46069d888d657c4160645d6a (patch) | |
tree | 33f71cdc14c3db9b348b87b811956450c96be7f0 /doc | |
parent | 1633c6c494e2989d840ce4922060ba4f4fc1f17c (diff) | |
download | uBlock-e08b8d34576a816e46069d888d657c4160645d6a.zip uBlock-e08b8d34576a816e46069d888d657c4160645d6a.tar.gz uBlock-e08b8d34576a816e46069d888d657c4160645d6a.tar.bz2 |
cpu benchmark notes
Diffstat (limited to 'doc')
-rw-r--r-- | doc/benchmarks/cpu-usage-overall-notes.txt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/doc/benchmarks/cpu-usage-overall-notes.txt b/doc/benchmarks/cpu-usage-overall-notes.txt new file mode 100644 index 0000000..e9621bc --- /dev/null +++ b/doc/benchmarks/cpu-usage-overall-notes.txt @@ -0,0 +1,32 @@ +Steps, roughly: + +Capture Task Manager using SimpleScreenRecorder + +Launch reference benchmark + +Stop and save capture once reference benchmark completes + +Extract/crop/scale area to OCR (the CPU figures) + + avconv -i ublock-cpu.webm -r 4 -vsync 1 -vf "[in] crop=40:86:310:100 [T1], [T1] scale=160:360 [out]" -t 2400 img/img-%04d.png + +Execute tesseract custom script: + + ./tessall + +Then + + cat out.txt | perl -p -000 -e 's/(\d)\n/\1,/g' | perl -p -e 's/,\n$//' + + +tessal script: + + #!/bin/sh + rm all.txt + echo + for i in img/img*.png; do + echo -ne '\r' $i + b=`basename $i .png` + tesseract $i out -psm 6 digits 1>/dev/null 2>&1 + cat out.txt | perl -p -000 -e 's/(\d+)\s+/\1,/g' | perl -pe 's/,$/\n/' >> all.txt + done
\ No newline at end of file |