put benchmark compilation into oasis

This commit is contained in:
Simon Cruanes 2014-05-20 22:22:06 +02:00
parent e1cbfedeab
commit dcbee64684
3 changed files with 59 additions and 7005 deletions

View file

@ -40,12 +40,6 @@ configure:
# OASIS_STOP
benchs: all
ocamlbuild -use-ocamlfind -pkg benchmark -pkg unix \
bench/benchs.native bench/simple_bench.native \
bench/bench_persistent.native \
bench/bench_persistent_read.native
tests:
ocamlbuild -use-ocamlfind -pkg oUnit tests/run_tests.native

28
_oasis
View file

@ -15,6 +15,10 @@ Description:
like `filter`, `map`, `take`, `drop` and `append` can be performed before the
sequence is iterated/folded on.
Flag bench
Description: enable benchmarks (require library Benchmark)
Default: false
Library "sequence"
Path: .
Modules: Sequence
@ -31,6 +35,30 @@ Test all
Type: custom
Command: make tests
Executable benchs
Path: bench
Install: false
CompiledObject: native
Build$: flag(bench)
BuildDepends: sequence,benchmark
MainIs: benchs.ml
Executable bench_persistent
Path: bench
Install: false
CompiledObject: native
Build$: flag(bench)
BuildDepends: sequence,benchmark
MainIs: bench_persistent.ml
Executable bench_persistent_read
Path: bench
Install: false
CompiledObject: native
Build$: flag(bench)
BuildDepends: sequence,benchmark
MainIs: bench_persistent_read.ml
SourceRepository head
Type: git
Location: https://github.com/c-cube/sequence

7028
setup.ml

File diff suppressed because it is too large Load diff