1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-16 23:42:39 +01:00
uBlock/doc/benchmarks/cpu-usage-overall-notes.txt

31 lines
746 B
Plaintext
Raw Normal View History

2014-12-26 18:47:16 +01:00
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
2014-12-26 19:00:07 +01:00
`all.txt` contains a csv of the results.
Paste in spreadsheet. Etc.
2014-12-26 18:47:16 +01:00
2014-12-26 19:00:07 +01:00
`tessal` script:
2014-12-26 18:47:16 +01:00
#!/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