File: benchmark.mk

package info (click to toggle)
coz-profiler 0.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 22,528 kB
  • sloc: ansic: 188,045; javascript: 20,133; cpp: 6,852; makefile: 214; python: 118; sh: 88
file content (23 lines) | stat: -rw-r--r-- 594 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
include $(ROOT)/common.mk

RECURSIVE_TARGETS += bench bench_large bench_small

ifeq ($(USE_SYSTEM_COZ),)
CFLAGS   += -I$(ROOT)/include
CXXFLAGS += -I$(ROOT)/include
endif

# Set up build targets for benchmarking
large_inputs:

small_inputs:

bench:: bench_large

bench_large:: $(OTHER_TARGETS) large_inputs
	@echo $(LOG_PREFIX) Running benchmark on large input $(LOG_SUFFIX)
	$(COZ) run $(COZ_ARGS) --- ./$< $(BENCH_LARGE_ARGS)

bench_small:: $(OTHER_TARGETS) small_inputs
	@echo $(LOG_PREFIX) Running benchmark on small input $(LOG_SUFFIX)
	$(COZ) run $(COZ_ARGS) --- ./$< $(BENCH_SMALL_ARGS)