2025-06-17 18:26.55: New job: test ocaml-multicore/multicore-bench https://github.com/ocaml-multicore/multicore-bench.git#refs/heads/main (efb15d8562dbdc1ba976ffc574de028e3c11c123) (linux-arm64:debian-12-4.14_arm64_opam-2.3)
Base: ocaml/opam:debian-12-ocaml-4.14@sha256:917f88b62776594a1765ee493319c20552daa24bd5650f3686d77d2a4c834d3a
Opam project build
To reproduce locally:
git clone --recursive "https://github.com/ocaml-multicore/multicore-bench.git" -b "main" && cd "multicore-bench" && git reset --hard efb15d85
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-4.14@sha256:917f88b62776594a1765ee493319c20552daa24bd5650f3686d77d2a4c834d3a
# debian-12-4.14_arm64_opam-2.3
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
WORKDIR /src
RUN sudo ln -f /usr/bin/opam-2.3 /usr/bin/opam
RUN opam init --reinit -ni
RUN uname -rs && opam exec -- ocaml -version && opam --version
WORKDIR /src
RUN sudo chown opam /src
RUN cd ~/opam-repository && (git cat-file -e a28eb8a148feb4fbc6466fa0791668993513dbde || git fetch origin master) && git reset -q --hard a28eb8a148feb4fbc6466fa0791668993513dbde && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 multicore-bench.opam ./
RUN opam pin add -yn multicore-bench.dev './'
RUN echo '(lang dune 3.0)' > './dune-project'
ENV DEPS="astring.0.8.5 backoff.0.1.1 base-bigarray.base base-threads.base base-unix.base camlp-streams.5.0.1 cmdliner.1.3.0 cppo.1.8.0 csexp.1.5.2 domain-local-await.1.0.1 domain_shims.0.1.0 dune.3.19.1 fmt.0.10.0 logs.0.8.0 mdx.2.5.0 mtime.2.1.0 multicore-magic.2.3.1 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-config.2 ocaml-options-vanilla.1 ocaml-version.4.0.1 ocamlbuild.0.16.1 ocamlfind.1.9.8 re.1.12.0 result.1.5 seq.base thread-table.1.0.0 topkg.1.0.8 yojson.3.0.0"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.3 --depext-only -y multicore-bench.dev $DEPS
RUN opam install $DEPS
COPY --chown=1000:1000 . /src
RUN opam exec -- dune build @install @check @runtest && rm -rf _build
END-OF-DOCKERFILE
docker build .
END-REPRO-BLOCK
2025-06-17 18:26.55: Using cache hint "ocaml-multicore/multicore-bench-ocaml/opam:debian-12-ocaml-4.14@sha256:917f88b62776594a1765ee493319c20552daa24bd5650f3686d77d2a4c834d3a-debian-12-4.14_arm64_opam-2.3-5e4c8ffe3a82688c609d0a76996fa04b"
2025-06-17 18:26.55: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-4.14@sha256:917f88b62776594a1765ee493319c20552daa24bd5650f3686d77d2a4c834d3a)
(comment debian-12-4.14_arm64_opam-2.3)
(user (uid 1000) (gid 1000))
(env CLICOLOR_FORCE 1)
(env OPAMCOLOR always)
(workdir /src)
(run (shell "sudo ln -f /usr/bin/opam-2.3 /usr/bin/opam"))
(run (shell "opam init --reinit -ni"))
(run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
(workdir /src)
(run (shell "sudo chown opam /src"))
(run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e a28eb8a148feb4fbc6466fa0791668993513dbde || git fetch origin master) && git reset -q --hard a28eb8a148feb4fbc6466fa0791668993513dbde && git log --no-decorate -n1 --oneline && opam update -u"))
(copy (src multicore-bench.opam) (dst ./))
(run (network host)
(shell "opam pin add -yn multicore-bench.dev './'"))
(run (network host)
(shell "echo '(lang dune 3.0)' > './dune-project'"))
(env DEPS "astring.0.8.5 backoff.0.1.1 base-bigarray.base base-threads.base base-unix.base camlp-streams.5.0.1 cmdliner.1.3.0 cppo.1.8.0 csexp.1.5.2 domain-local-await.1.0.1 domain_shims.0.1.0 dune.3.19.1 fmt.0.10.0 logs.0.8.0 mdx.2.5.0 mtime.2.1.0 multicore-magic.2.3.1 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-config.2 ocaml-options-vanilla.1 ocaml-version.4.0.1 ocamlbuild.0.16.1 ocamlfind.1.9.8 re.1.12.0 result.1.5 seq.base thread-table.1.0.0 topkg.1.0.8 yojson.3.0.0")
(env CI true)
(env OCAMLCI true)
(run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam update --depexts && opam install --cli=2.3 --depext-only -y multicore-bench.dev $DEPS"))
(run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam install $DEPS"))
(copy (src .) (dst /src))
(run (shell "opam exec -- dune build @install @check @runtest && rm -rf _build"))
)
2025-06-17 18:26.55: Waiting for resource in pool OCluster
2025-06-17 18:27.18: Waiting for worker…
2025-06-17 18:45.39: Got resource from pool OCluster
Building on kydoime.caelum.ci.dev
HEAD is now at 6b750f3 Inline `Atomic` and `Ref` ops and unroll
HEAD is now at efb15d8 Inline `Atomic` and `Ref` ops and unroll
(from ocaml/opam:debian-12-ocaml-4.14@sha256:917f88b62776594a1765ee493319c20552daa24bd5650f3686d77d2a4c834d3a)
Unable to find image 'ocaml/opam:debian-12-ocaml-4.14@sha256:917f88b62776594a1765ee493319c20552daa24bd5650f3686d77d2a4c834d3a' locally
docker.io/ocaml/opam@sha256:917f88b62776594a1765ee493319c20552daa24bd5650f3686d77d2a4c834d3a: Pulling from ocaml/opam
846ba23f7e65: Pulling fs layer
846ba23f7e65: Verifying Checksum
846ba23f7e65: Download complete
846ba23f7e65: Pull complete
Digest: sha256:917f88b62776594a1765ee493319c20552daa24bd5650f3686d77d2a4c834d3a
Status: Downloaded newer image for ocaml/opam@sha256:917f88b62776594a1765ee493319c20552daa24bd5650f3686d77d2a4c834d3a
2025-06-17 18:45.40 ---> using "11d19f84cb930f3d6a4c8f86d2191508a43befa6559297f1fd2bcae65bdc877b" from cache
/: (comment debian-12-4.14_arm64_opam-2.3)
/: (user (uid 1000) (gid 1000))
/: (env CLICOLOR_FORCE 1)
/: (env OPAMCOLOR always)
/: (workdir /src)
/src: (run (shell "sudo ln -f /usr/bin/opam-2.3 /usr/bin/opam"))
2025-06-17 18:45.40 ---> using "85df4472775e0e47cd1b46937b61a81bae88e16265d2314168ca69abc8f9c720" from cache
/src: (run (shell "opam init --reinit -ni"))
Configuring from /home/opam/.opamrc and then from built-in defaults.
Checking for available remotes: rsync and local, git.
- you won't be able to use mercurial repositories unless you install the hg command on your system.
- you won't be able to use darcs repositories unless you install the darcs command on your system.
This development version of opam requires an update to the layout of /home/opam/.opam from version 2.0 to version 2.2, which can't be reverted.
You may want to back it up before going further.
Continue? [y/n] y
Format upgrade done.
<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2025-06-17 18:45.40 ---> using "7ecd163ad6b3b717443fbd526461bbccff30db10ebb94e4193f5f19bc0da321a" from cache
/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-134-generic
The OCaml toplevel, version 4.14.2
2.3.0
2025-06-17 18:45.40 ---> using "79cfde54565251707f8c6b9aa29e6281ba5f020714a012422cea3a51a197c1c5" from cache
/src: (workdir /src)
/src: (run (shell "sudo chown opam /src"))
2025-06-17 18:45.40 ---> using "0bc0d206574dd8bfb0f2a8360c500fee7965d33bea04df26fb8bd47b108815fa" from cache
/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e a28eb8a148feb4fbc6466fa0791668993513dbde || git fetch origin master) && git reset -q --hard a28eb8a148feb4fbc6466fa0791668993513dbde && git log --no-decorate -n1 --oneline && opam update -u"))
a28eb8a148 Merge pull request #28017 from maiste/release-dune-3.19.1
<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from git+file:///home/opam/opam-repository
Everything as up-to-date as possible (run with --verbose to show unavailable upgrades).
However, you may "opam upgrade" these packages explicitly, which will ask permission to downgrade or uninstall the conflicting packages.
Nothing to do.
# To update the current shell environment, run: eval $(opam env)
2025-06-17 18:45.40 ---> using "f73bfb77153d0633fb70a999704f92fced87d317ca4f09447477dba0053e68a6" from cache
/src: (copy (src multicore-bench.opam) (dst ./))
2025-06-17 18:45.41 ---> saved as "576849eab5104cbe1cf67cbe5823ee1e0ed1eef19e72474349c0428bb59fdff4"
/src: (run (network host)
(shell "opam pin add -yn multicore-bench.dev './'"))
[multicore-bench.dev] synchronised (file:///src)
multicore-bench is now pinned to file:///src (version dev)
2025-06-17 18:45.42 ---> saved as "e5bfe59a2b8f99c197602ec50ac650d6a3c295ff83b71ac280b8835eb97b32da"
/src: (run (network host)
(shell "echo '(lang dune 3.0)' > './dune-project'"))
2025-06-17 18:45.42 ---> saved as "d0a8b554eb3d6e84e897273768b0275bc6cf292cbd964d7cef4be775f8927a02"
/src: (env DEPS "astring.0.8.5 backoff.0.1.1 base-bigarray.base base-threads.base base-unix.base camlp-streams.5.0.1 cmdliner.1.3.0 cppo.1.8.0 csexp.1.5.2 domain-local-await.1.0.1 domain_shims.0.1.0 dune.3.19.1 fmt.0.10.0 logs.0.8.0 mdx.2.5.0 mtime.2.1.0 multicore-magic.2.3.1 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-config.2 ocaml-options-vanilla.1 ocaml-version.4.0.1 ocamlbuild.0.16.1 ocamlfind.1.9.8 re.1.12.0 result.1.5 seq.base thread-table.1.0.0 topkg.1.0.8 yojson.3.0.0")
/src: (env CI true)
/src: (env OCAMLCI true)
/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam update --depexts && opam install --cli=2.3 --depext-only -y multicore-bench.dev $DEPS"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://deb.debian.org/debian bookworm InRelease
- Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
- Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
- Get:4 http://deb.debian.org/debian-security bookworm-security/main arm64 Packages [259 kB]
- Fetched 362 kB in 0s (902 kB/s)
- Reading package lists...
-
<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[multicore-bench.dev] synchronised (file:///src)
[NOTE] Package ocaml-options-vanilla is already installed (current version is 1).
[NOTE] Package ocaml-config is already installed (current version is 2).
[NOTE] Package ocaml-base-compiler is already installed (current version is 4.14.2).
[NOTE] Package ocaml is already installed (current version is 4.14.2).
[NOTE] Package base-unix is already installed (current version is base).
[NOTE] Package base-threads is already installed (current version is base).
[NOTE] Package base-bigarray is already installed (current version is base).
2025-06-17 18:45.54 ---> saved as "56a923f14d06b4768ef835923fb9d57722d6838e63e13aa522877ccfd75a0519"
/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam install $DEPS"))
[NOTE] Package ocaml-options-vanilla is already installed (current version is 1).
[NOTE] Package ocaml-config is already installed (current version is 2).
[NOTE] Package ocaml-base-compiler is already installed (current version is 4.14.2).
[NOTE] Package ocaml is already installed (current version is 4.14.2).
[NOTE] Package base-unix is already installed (current version is base).
[NOTE] Package base-threads is already installed (current version is base).
[NOTE] Package base-bigarray is already installed (current version is base).
The following actions will be performed:
=== install 23 packages
- install astring 0.8.5
- install backoff 0.1.1
- install camlp-streams 5.0.1
- install cmdliner 1.3.0
- install cppo 1.8.0
- install csexp 1.5.2
- install domain-local-await 1.0.1
- install domain_shims 0.1.0
- install dune 3.19.1
- install fmt 0.10.0
- install logs 0.8.0
- install mdx 2.5.0
- install mtime 2.1.0
- install multicore-magic 2.3.1
- install ocaml-version 4.0.1
- install ocamlbuild 0.16.1
- install ocamlfind 1.9.8
- install re 1.12.0
- install result 1.5
- install seq base
- install thread-table 1.0.0
- install topkg 1.0.8
- install yojson 3.0.0
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved camlp-streams.5.0.1 (cached)
-> retrieved backoff.0.1.1 (cached)
-> retrieved astring.0.8.5 (cached)
-> retrieved cppo.1.8.0 (cached)
-> retrieved cmdliner.1.3.0 (cached)
-> retrieved csexp.1.5.2 (cached)
-> retrieved domain-local-await.1.0.1 (cached)
-> retrieved domain_shims.0.1.0 (cached)
-> retrieved fmt.0.10.0 (cached)
-> retrieved logs.0.8.0 (cached)
-> retrieved mtime.2.1.0 (cached)
-> retrieved multicore-magic.2.3.1 (cached)
-> retrieved mdx.2.5.0 (cached)
-> retrieved ocaml-version.4.0.1 (cached)
-> retrieved ocamlfind.1.9.8 (cached)
-> retrieved ocamlbuild.0.16.1 (cached)
-> retrieved re.1.12.0 (cached)
-> retrieved seq.base (cached)
-> installed seq.base
-> retrieved result.1.5 (cached)
-> retrieved thread-table.1.0.0 (cached)
-> retrieved topkg.1.0.8 (cached)
-> retrieved yojson.3.0.0 (cached)
-> retrieved dune.3.19.1 (cached)
-> installed cmdliner.1.3.0
-> installed ocamlfind.1.9.8
-> installed ocamlbuild.0.16.1
-> installed topkg.1.0.8
-> installed mtime.2.1.0
-> installed fmt.0.10.0
-> installed astring.0.8.5
-> installed logs.0.8.0
-> installed dune.3.19.1
-> installed domain_shims.0.1.0
-> installed backoff.0.1.1
-> installed camlp-streams.5.0.1
-> installed csexp.1.5.2
-> installed multicore-magic.2.3.1
-> installed result.1.5
-> installed thread-table.1.0.0
-> installed domain-local-await.1.0.1
-> installed ocaml-version.4.0.1
-> installed re.1.12.0
-> installed cppo.1.8.0
-> installed yojson.3.0.0
-> installed mdx.2.5.0
Done.
# To update the current shell environment, run: eval $(opam env)
2025-06-17 18:46.36 ---> saved as "00512811669531cb4545c270ccc3f109ed660e5513779694ea97f1afff391337"
/src: (copy (src .) (dst /src))
2025-06-17 18:46.36 ---> saved as "139c6dcabbbf0907ce162d21ddd54077e63b91fbea8cbd943d971b719534d903"
/src: (run (shell "opam exec -- dune build @install @check @runtest && rm -rf _build"))
(cd _build/default/bench && ./main.exe -brief)
Atomic:
ops over time/cas int:
253.29 M/s
ops over time/get:
2590.92 M/s
ops over time/incr:
518.67 M/s
ops over time/push & pop:
94.40 M/s
ops over time/swap:
108.33 M/s
ops over time/xchg int:
235.96 M/s
time per op/cas int:
3.95 ns
time per op/get:
0.39 ns
time per op/incr:
1.93 ns
time per op/push & pop:
10.59 ns
time per op/swap:
9.23 ns
time per op/xchg int:
4.24 ns
Atomic incr:
ops over time/CAS, 1 domains:
205.90 M/s
ops over time/CAS with backoff, 1 domains:
196.49 M/s
ops over time/Incr, 1 domains:
393.51 M/s
time per op/CAS, 1 domains:
4.86 ns
time per op/CAS with backoff, 1 domains:
5.09 ns
time per op/Incr, 1 domains:
2.54 ns
Bounded_q:
messages over time/one domain:
13.05 M/s
time per message/one domain:
76.62 ns
Hashtbl:
operations over time/1 worker, 10% reads:
15.23 M/s
operations over time/1 worker, 50% reads:
15.02 M/s
operations over time/1 worker, 90% reads:
17.22 M/s
operations over time/2 workers, 10% reads:
14.53 M/s
operations over time/2 workers, 50% reads:
14.61 M/s
operations over time/2 workers, 90% reads:
17.21 M/s
operations over time/4 workers, 10% reads:
8.44 M/s
operations over time/4 workers, 50% reads:
9.34 M/s
operations over time/4 workers, 90% reads:
13.14 M/s
operations over time/8 workers, 10% reads:
5.81 M/s
operations over time/8 workers, 50% reads:
5.85 M/s
operations over time/8 workers, 90% reads:
6.89 M/s
operations over time/one domain, 10% reads:
17.63 M/s
operations over time/one domain, 50% reads:
25.04 M/s
operations over time/one domain, 90% reads:
32.89 M/s
time per operation/1 worker, 10% reads:
65.66 ns
time per operation/1 worker, 50% reads:
66.59 ns
time per operation/1 worker, 90% reads:
58.07 ns
time per operation/2 workers, 10% reads:
137.60 ns
time per operation/2 workers, 50% reads:
136.93 ns
time per operation/2 workers, 90% reads:
116.19 ns
time per operation/4 workers, 10% reads:
474.02 ns
time per operation/4 workers, 50% reads:
428.07 ns
time per operation/4 workers, 90% reads:
304.31 ns
time per operation/8 workers, 10% reads:
1377.07 ns
time per operation/8 workers, 50% reads:
1368.24 ns
time per operation/8 workers, 90% reads:
1161.84 ns
time per operation/one domain, 10% reads:
56.71 ns
time per operation/one domain, 50% reads:
39.93 ns
time per operation/one domain, 90% reads:
30.40 ns
Queue:
messages over time/one domain:
39.87 M/s
time per message/one domain:
25.08 ns
Ref with Mutex:
ops over time/cas int:
38.21 M/s
ops over time/get:
41.96 M/s
ops over time/incr:
42.32 M/s
ops over time/push & pop:
36.01 M/s
ops over time/swap:
35.94 M/s
ops over time/xchg int:
38.16 M/s
time per op/cas int:
26.17 ns
time per op/get:
23.83 ns
time per op/incr:
23.63 ns
time per op/push & pop:
27.77 ns
time per op/swap:
27.83 ns
time per op/xchg int:
26.20 ns
Ref with [@poll error]:
ops over time/cas int:
270.79 M/s
ops over time/get:
2593.33 M/s
ops over time/incr:
548.24 M/s
ops over time/push & pop:
94.21 M/s
ops over time/swap:
106.87 M/s
ops over time/xchg int:
249.50 M/s
time per op/cas int:
3.69 ns
time per op/get:
0.39 ns
time per op/incr:
1.82 ns
time per op/push & pop:
10.61 ns
time per op/swap:
9.36 ns
time per op/xchg int:
4.01 ns
Stack:
messages over time/one domain:
43.86 M/s
time per message/one domain:
22.80 ns
Unix:
blocking reads over time/1 worker:
0.68 M/s
time per blocking read/1 worker:
1467.56 ns
2025-06-17 18:46.41 ---> saved as "0c002a2f5ce56272a56b8ec7b5da638478c068db223dd445eccf5c17f0f9f690"
Job succeeded
2025-06-17 18:46.41: Job succeeded