forked from jaspervdj/blaze-markup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (28 loc) · 1.09 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
################################################################################
# Configuration
################################################################################
GHC = ghc
GHCI = ghci
GHC_FLAGS = -O2 -fforce-recomp -ibenchmarks -isrc -itests
BENCHMARK_FLAGS = --resamples 10000
################################################################################
# Tests
################################################################################
# Run the tests
test:
$(GHC) $(GHC_FLAGS) -fhpc --make tests/TestSuite.hs
rm -f TestSuite.tix
./tests/TestSuite
# HPC
test-hpc:
hpc markup --destdir=hpc TestSuite
################################################################################
# Benchmarks
################################################################################
benchmark:
$(GHC) $(GHC_FLAGS) --make -main-is RunHtmlBenchmarks benchmarks/RunHtmlBenchmarks.hs
./benchmarks/RunHtmlBenchmarks $(BENCHMARK_FLAGS) -o report.html
benchmark-bigtable-non-haskell:
ruby benchmarks/bigtable/erb.rb
ruby benchmarks/bigtable/erubis.rb
php -n benchmarks/bigtable/php.php