Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a more useful profile guided optimization test script #1299

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,26 @@ CONFIGOPTS_EMDUK=-UDUK_USE_FASTINT -UDUK_USE_PACKED_TVAL
CONFIGOPTS_DUKWEB=--option-file util/dukweb_base.yaml --fixup-file util/dukweb_fixup.h

# Profile guided optimization test set.
# FIXME
PGO_TEST_SET=\
tests/ecmascript/test-dev-mandel2-func.js \
tests/ecmascript/test-dev-totp.js \
tests/perf/test-fib.js \
tests/ecmascript/test-regexp-ipv6-regexp.js
tests/ecmascript/test-regexp-ipv6-regexp.js \
tests/octane/octane/base.js \
tests/octane/octane/box2d.js \
tests/octane/octane/code-load.js \
tests/octane/octane/crypto.js \
tests/octane/octane/deltablue.js \
tests/octane/octane/earley-boyer.js \
tests/octane/octane/gbemu-part1.js \
tests/octane/octane/gbemu-part2.js \
tests/octane/octane/navier-stokes.js \
tests/octane/octane/pdfjs.js \
tests/octane/octane/raytrace.js \
tests/octane/octane/richards.js \
tests/octane/octane/splay.js \
tests/octane/duktape_harness.js

# Compiler setup for Linux.
CC = gcc
Expand Down Expand Up @@ -378,7 +393,7 @@ duk.O2: linenoise prep/nondebug
$(CC) -o $@ -Iprep/nondebug $(CCOPTS_NONDEBUG) -O2 prep/nondebug/duktape.c $(DUKTAPE_CMDLINE_SOURCES) $(LINENOISE_SOURCES) $(CCLIBS)
@ls -l $@
-@size $@
duk-pgo.O2: linenoise prep/nondebug
duk-pgo.O2: linenoise octane-setup prep/nondebug
@echo "Compiling with -fprofile-generate..."
@rm -f *.gcda
$(CC) -o $@ -Iprep/nondebug $(CCOPTS_NONDEBUG) -O2 -fprofile-generate prep/nondebug/duktape.c $(DUKTAPE_CMDLINE_SOURCES) $(LINENOISE_SOURCES) $(CCLIBS)
Expand All @@ -396,7 +411,7 @@ duk-perf.O2: linenoise prep/nondebug-perf
$(CC) -o $@ -Iprep/nondebug-perf $(CCOPTS_NONDEBUG) -O2 prep/nondebug-perf/duktape.c $(DUKTAPE_CMDLINE_SOURCES) $(LINENOISE_SOURCES) $(CCLIBS)
@ls -l $@
-@size $@
duk-perf-pgo.O2: linenoise prep/nondebug-perf
duk-perf-pgo.O2: linenoise octane-setup prep/nondebug-perf
@echo "Compiling with -fprofile-generate..."
@rm -f *.gcda
$(CC) -o $@ -Iprep/nondebug-perf $(CCOPTS_NONDEBUG) -O2 -fprofile-generate prep/nondebug-perf/duktape.c $(DUKTAPE_CMDLINE_SOURCES) $(LINENOISE_SOURCES) $(CCLIBS)
Expand Down Expand Up @@ -898,6 +913,8 @@ ajtcl:
# Duktape binary releases are in a separate repo.
duktape-releases:
$(GIT) clone https://github.com/svaarala/duktape-releases.git
octane-setup:
cd tests/octane; make octane

# Reference documents.
references/ECMA-262\ 5th\ edition\ December\ 2009.pdf:
Expand Down