aboutsummaryrefslogtreecommitdiff
path: root/sort-benchmark/pairs/Makefile
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-04-29 21:59:51 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2024-04-29 21:59:51 +0200
commit2f19e94b0ce78d6ccc9eedbf04b8a3460fd05565 (patch)
treebc3a8cea30ecca96ed7ed779a1a4149ef9baa068 /sort-benchmark/pairs/Makefile
downloadtaming-cpp-2f19e94b0ce78d6ccc9eedbf04b8a3460fd05565.tar.gz
taming-cpp-2f19e94b0ce78d6ccc9eedbf04b8a3460fd05565.zip
Sort benchmarks
Diffstat (limited to '')
-rw-r--r--sort-benchmark/pairs/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/sort-benchmark/pairs/Makefile b/sort-benchmark/pairs/Makefile
new file mode 100644
index 0000000..56a37ee
--- /dev/null
+++ b/sort-benchmark/pairs/Makefile
@@ -0,0 +1,20 @@
1CC = gcc
2CPP = g++
3OPT = -O3
4VAR = -DARRAYSIZE=100000000
5
6all: sort_c sort_cpp sort_parallel_cpp
7
8sort_c:
9 ${CC} ${OPT} ${VAR} -std=c11 -o sort sort.c
10 ./sort
11
12sort_cpp:
13 ${CPP} ${OPT} ${VAR} -std=c++20 -o sort sort.cpp
14 ./sort
15
16sort_parallel_cpp:
17 ${CPP} ${OPT} ${VAR} -std=c++20 -o sort sort_parallel.cpp -ltbb
18 ./sort
19
20.PHONY: sort_c sort_cpp sort_parallel_cpp

Generated with cgit - Back to sebastiano.tronto.net