Add initial shaping performance test and profiler
This commit is contained in:
parent
39afe608b4
commit
53dc8d944f
BIN
perf/fonts/Amiri-Regular.ttf
Normal file
BIN
perf/fonts/Amiri-Regular.ttf
Normal file
Binary file not shown.
BIN
perf/fonts/NotoNastaliqUrdu-Regular.ttf
Normal file
BIN
perf/fonts/NotoNastaliqUrdu-Regular.ttf
Normal file
Binary file not shown.
BIN
perf/fonts/NotoSansDevanagari-Regular.ttf
Normal file
BIN
perf/fonts/NotoSansDevanagari-Regular.ttf
Normal file
Binary file not shown.
BIN
perf/fonts/Roboto-Regular.ttf
Normal file
BIN
perf/fonts/Roboto-Regular.ttf
Normal file
Binary file not shown.
25
perf/run.sh
Executable file
25
perf/run.sh
Executable file
@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
CXX=clang++
|
||||
FONT=fonts/NotoNastaliqUrdu-Regular.ttf
|
||||
TEXT=text/test-long-arabic-paragraph.txt
|
||||
|
||||
$CXX ../util/hb-shape.cc ../util/options.cc ../src/harfbuzz.cc \
|
||||
-lm -fno-rtti -fno-exceptions -fno-omit-frame-pointer -DHB_NO_MT \
|
||||
-I../src $FLAGS $SOURCES \
|
||||
-DPACKAGE_NAME='""' -DPACKAGE_VERSION='""' \
|
||||
-DHAVE_GLIB $(pkg-config --cflags --libs glib-2.0) \
|
||||
-o hb-shape -g -O2 # -O3 \
|
||||
#-march=native -mtune=native \
|
||||
#-Rpass=loop-vectorize -Rpass-missed=loop-vectorize \
|
||||
#-Rpass-analysis=loop-vectorize -fsave-optimization-record
|
||||
|
||||
# -march=native: enable all vector instructions current CPU can offer
|
||||
# -Rpass*: https://llvm.org/docs/Vectorizers.html#diagnostics
|
||||
|
||||
#sudo rm capture.syscap > /dev/null
|
||||
#sysprof-cli -c "./a.out $@"
|
||||
#sysprof capture.syscap
|
||||
|
||||
perf stat ./hb-shape -o /dev/null $FONT --text-file $TEXT --num-iterations=100 --font-funcs=ot
|
||||
#perf record -g ./hb-shape -O '' -o /dev/null $FONT --text-file $TEXT --num-iterations=100 --font-funcs=ot
|
||||
#perf report -g
|
1896
perf/text/littleprince.txt
Normal file
1896
perf/text/littleprince.txt
Normal file
File diff suppressed because it is too large
Load Diff
18
perf/text/test-long-arabic-paragraph.txt
Normal file
18
perf/text/test-long-arabic-paragraph.txt
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user