Skip to content

Commit df5a387

Browse files
committed
Fix up setup
1 parent d973698 commit df5a387

File tree

3 files changed

+27
-7
lines changed

3 files changed

+27
-7
lines changed

Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,7 @@ installdoc:
3434
git worktree add _wikidoc origin/wikidoc
3535
rsync -av doc-dev/ _wikidoc/doc/dev/
3636

37-
.PHONY: all tests tests-wasm test runtest runtests doc clean installdoc
37+
bench:
38+
$(MAKE) -C benchmarks bench
39+
40+
.PHONY: all tests tests-wasm test runtest runtests doc clean installdoc bench

benchmarks/Makefile

+4-6
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ all: _perf graphsnopr graphspr graphseff _noperf
1313
# This target is the one run by `current-bench`,
1414
# see https://github.com/ocurrent/current-bench
1515
.PHONY: bench
16-
bench: time-wasm.json
16+
bench: __run_wasm
17+
$(REPORT) -format current-bench -config report-wasm-cb.config \
18+
-ylabel "Wasm - Execution time"
19+
1720

1821
graphsnopr: _noprecomp $(GRAPHSNOPR)
1922

@@ -248,11 +251,6 @@ nativejs.png: nativejs.svg
248251
%.png: %.svg
249252
inkscape -D -o "$@" -w 1024 $<
250253

251-
time-wasm.json: __run_wasm
252-
$(REPORT) -format current-bench -config report-wasm-cb.config \
253-
-ylabel "Wasm - Execution time" \
254-
> $@
255-
256254
_perf:
257255
for i in /sys/devices/system/cpu/cpu* ; \
258256
do \

wasm_of_ocaml-compiler-bench.opam

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# This file is generated by dune, edit dune-project instead
2+
opam-version: "2.0"
3+
synopsis: "Compiler from OCaml bytecode to WebAssembly"
4+
description:
5+
"Wasm_of_ocaml is a compiler from OCaml bytecode to WebAssembly. It makes it possible to run pure OCaml programs in JavaScript environment like browsers and Node.js"
6+
maintainer: ["Ocsigen team <dev@ocsigen.org>"]
7+
authors: ["Ocsigen team <dev@ocsigen.org>"]
8+
license: [
9+
"GPL-2.0-or-later" "LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception"
10+
]
11+
homepage: "https://ocsigen.org/js_of_ocaml/latest/manual/overview"
12+
doc: "https://ocsigen.org/js_of_ocaml/latest/manual/overview"
13+
bug-reports: "https://github.com/ocsigen/js_of_ocaml/issues"
14+
depends: [
15+
"wasm_of_ocaml-compiler" {= version}
16+
]
17+
dev-repo: "git+https://github.com/ocsigen/js_of_ocaml.git"
18+
build: [
19+
]

0 commit comments

Comments
 (0)