Commit 695b57d 1 parent 3d26052 commit 695b57d Copy full SHA for 695b57d
File tree 6 files changed +40
-1
lines changed
6 files changed +40
-1
lines changed Original file line number Diff line number Diff line change 8
8
* Runtime: remove polyfill for Map to simplify MlObjectTable implementation (#1846 )
9
9
* Runtime: refactor caml_xmlhttprequest_create implementation (#1846 )
10
10
* Runtime: update constant imports to use ` node:fs ` module (#1850 )
11
+ * Misc: add a benchmarking suite for targeting [ current-bench] ( https://github.com/ocurrent/current-bench )
11
12
12
13
## Bug fixes
13
14
* Runtime: fix path normalization (#1848 )
Original file line number Diff line number Diff line change @@ -34,4 +34,7 @@ installdoc:
34
34
git worktree add _wikidoc origin/wikidoc
35
35
rsync -av doc-dev/ _wikidoc/doc/dev/
36
36
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
Original file line number Diff line number Diff line change
1
+ FROM ocaml/opam:debian-ocaml-5.3
2
+ WORKDIR /bench-dir
3
+ RUN sudo apt-get update && \
4
+ sudo apt-get install -qq -yy --no-install-recommends pkg-config libgmp-dev \
5
+ wget
6
+ RUN sudo ln -sf /usr/bin/opam-2.3 /usr/bin/opam
7
+ RUN opam remote add origin https://github.com/ocaml/opam-repository.git && \
8
+ opam update
9
+ RUN wget https://nodejs.org/dist/v22.14.0/node-v22.14.0-linux-x64.tar.xz && \
10
+ tar xJvf node-v22.14.0-linux-x64.tar.xz
11
+ ENV PATH="/bench-dir/node-v22.14.0-linux-x64/bin:$PATH"
12
+ RUN wget https://github.com/WebAssembly/binaryen/releases/download/version_122/binaryen-version_122-x86_64-linux.tar.gz && \
13
+ tar xzvf binaryen-version_122-x86_64-linux.tar.gz
14
+ ENV PATH="/bench-dir/binaryen-version_122/bin:$PATH"
15
+ RUN opam install --fake binaryen-bin
16
+ COPY --chown=opam:opam ./*.opam ./
17
+ RUN opam pin -yn --with-version=dev .
18
+ RUN opam install -y --deps-only js_of_ocaml-compiler
19
+ COPY --chown=opam:opam . ./
20
+ RUN opam install -y wasm_of_ocaml-compiler
21
+ WORKDIR ./benchmarks
Original file line number Diff line number Diff line change @@ -10,6 +10,16 @@ GRAPHSEFF = time-effects.pdf size-effects.pdf size-bzip2-effects.pdf
10
10
# For full benchs:
11
11
all : _perf graphsnopr graphspr graphseff _noperf
12
12
13
+ # This target is the one run by `current-bench`,
14
+ # see https://github.com/ocurrent/current-bench
15
+ .PHONY : bench
16
+ bench : __run
17
+ $(REPORT ) -format current-bench -config report-wasm-cb.config \
18
+ -ylabel " Wasm_of_ocaml"
19
+ $(REPORT ) -format current-bench -config report-jsoo-cb.config \
20
+ -ylabel " Js_of_ocaml"
21
+
22
+
13
23
graphsnopr : _noprecomp $(GRAPHSNOPR )
14
24
15
25
graphspr : __precomp $(GRAPHSPR )
Original file line number Diff line number Diff line change
1
+ histogramref times node js_of_ocaml #fbaf4f node
2
+ histogram sizes "" js_of_ocaml/gzipped #ffffff Size (gzipped)
Original file line number Diff line number Diff line change
1
+ histogram times node wasm_of_ocaml #ffffff node
2
+ histogram sizes "" wasm_of_ocaml/gzipped #ffffff Generated Wasm (gzipped)
You can’t perform that action at this time.
0 commit comments