Skip to content

Commit

Permalink
Add benchmark data and a Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
bos committed Feb 1, 2011
1 parent 7bf5471 commit 6ca4fe7
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 13 deletions.
15 changes: 2 additions & 13 deletions .hgignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
^dist$
benchmarks/Arse
benchmarks/med.txt
benchmarks/tiny
^benchmarks/(?:AesonParse|EncodeFile|JsonParse|json-data)$
.*\.(?:h[ip]|o|orig|out|pdf|prof|ps|rej)$

syntax: glob
*.aux
*.hi
*.hp
*.o
*.orig
*.out
*.pdf
*.prof
*.ps
*.rej
*~
.*.swp
.\#*
Expand Down
21 changes: 21 additions & 0 deletions benchmarks/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
ghc := ghc
ghcflags := -O

binaries := AesonParse EncodeFile JsonParse

all: json-data/example.json $(binaries)

AesonParse: AesonParse.hs
$(ghc) $(ghcflags) --make -o $@ $^

EncodeFile: EncodeFile.hs
$(ghc) $(ghcflags) --make -o $@ $^

JsonParse: JsonParse.hs
$(ghc) $(ghcflags) --make -o $@ $^

json-data/example.json: json-data.tar.bz2
bzip2 -dc < $^ | tar -m -xf -

clean:
-rm -f *.o *.hi $(binaries)
Binary file added benchmarks/json-data.tar.bz2
Binary file not shown.

0 comments on commit 6ca4fe7

Please sign in to comment.