File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -20,3 +20,5 @@ test262o
2020test262o_ * .txt
2121unicode
2222unicode_gen
23+ run_octane
24+ run_sunspider_like
Original file line number Diff line number Diff line change @@ -351,6 +351,7 @@ clean:
351351rm -f examples/* .so tests/* .so
352352rm -rf $(OBJDIR ) / * .dSYM/ qjs-debug
353353rm -rf run-test262-debug run-test262-32
354+ rm -f run_octane run_sunspider_like
354355
355356install : all
356357mkdir -p " $( DESTDIR) $( PREFIX) /bin"
@@ -531,4 +532,18 @@ bench-v8: qjs
531532tests/bjson.so : $(OBJDIR ) /tests/bjson.pic.o
532533$(CC ) $(LDFLAGS ) -shared -o $@ $^ $(LIBS )
533534
535+ BENCHMARKDIR =../quickjs-benchmarks
536+
537+ run_sunspider_like : $(BENCHMARKDIR ) /run_sunspider_like.c
538+ $(CC ) $(CFLAGS ) $(LDFLAGS ) -DNO_INCLUDE_DIR -I. -o $@ $< libquickjs$(LTOEXT ) .a $(LIBS )
539+
540+ run_octane : $(BENCHMARKDIR ) /run_octane.c
541+ $(CC ) $(CFLAGS ) $(LDFLAGS ) -DNO_INCLUDE_DIR -I. -o $@ $< libquickjs$(LTOEXT ) .a $(LIBS )
542+
543+ benchmarks : run_sunspider_like run_octane
544+ ./run_sunspider_like $(BENCHMARKDIR ) /kraken-1.0/
545+ ./run_sunspider_like $(BENCHMARKDIR ) /kraken-1.1/
546+ ./run_sunspider_like $(BENCHMARKDIR ) /sunspider-1.0/
547+ ./run_octane $(BENCHMARKDIR ) /
548+
534549-include $(wildcard $(OBJDIR ) /* .d)
You can’t perform that action at this time.
0 commit comments