2025-09-15 18:36.56: New job: test ocaml-multicore/multicore-bench https://github.com/ocaml-multicore/multicore-bench.git#refs/heads/main (efb15d8562dbdc1ba976ffc574de028e3c11c123) (linux-riscv64:debian-13-4.14_riscv64_opam-2.4)
Base: ocaml/opam:debian-13-ocaml-4.14@sha256:3e42b9c7112f8cd5d660e911bb5dcec54c8082a88cb5320d68bec72910c57d76
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-13-ocaml-4.14@sha256:3e42b9c7112f8cd5d660e911bb5dcec54c8082a88cb5320d68bec72910c57d76
# debian-13-4.14_riscv64_opam-2.4
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
WORKDIR /src
RUN sudo ln -f /usr/bin/opam-2.4 /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 109398e2fd61803126becd398df0f1eabc9f3ca2 || git fetch origin master) && git reset -q --hard 109398e2fd61803126becd398df0f1eabc9f3ca2 && 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.20.2 fmt.0.11.0 logs.0.9.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.13.2 result.1.5 seq.base thread-table.1.0.0 topkg.1.1.0 yojson.3.0.0"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.4 --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-09-15 18:36.56: Using cache hint "ocaml-multicore/multicore-bench-ocaml/opam:debian-13-ocaml-4.14@sha256:3e42b9c7112f8cd5d660e911bb5dcec54c8082a88cb5320d68bec72910c57d76-debian-13-4.14_riscv64_opam-2.4-d201c81d7e37170adc2a394de74586d2"
2025-09-15 18:36.56: Using OBuilder spec:
((from ocaml/opam:debian-13-ocaml-4.14@sha256:3e42b9c7112f8cd5d660e911bb5dcec54c8082a88cb5320d68bec72910c57d76)
(comment debian-13-4.14_riscv64_opam-2.4)
(user (uid 1000) (gid 1000))
(env CLICOLOR_FORCE 1)
(env OPAMCOLOR always)
(workdir /src)
(run (shell "sudo ln -f /usr/bin/opam-2.4 /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 109398e2fd61803126becd398df0f1eabc9f3ca2 || git fetch origin master) && git reset -q --hard 109398e2fd61803126becd398df0f1eabc9f3ca2 && 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.20.2 fmt.0.11.0 logs.0.9.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.13.2 result.1.5 seq.base thread-table.1.0.0 topkg.1.1.0 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.4 --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-09-15 18:36.56: Waiting for resource in pool OCluster
2025-09-15 20:14.29: Waiting for worker…
2025-09-16 03:31.33: Got resource from pool OCluster
Building on riscv-bm-04.sw.ci.dev
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
Initialized empty Git repository in /var/cache/obuilder/ocluster/git/multicore-bench.git-b64f3a44a0cd11cb5d9a386b4ded860bff164371/.git/
HEAD is now at efb15d8 Inline `Atomic` and `Ref` ops and unroll
(from ocaml/opam:debian-13-ocaml-4.14@sha256:3e42b9c7112f8cd5d660e911bb5dcec54c8082a88cb5320d68bec72910c57d76)
Unable to find image 'ocaml/opam:debian-13-ocaml-4.14@sha256:3e42b9c7112f8cd5d660e911bb5dcec54c8082a88cb5320d68bec72910c57d76' locally
docker.io/ocaml/opam@sha256:3e42b9c7112f8cd5d660e911bb5dcec54c8082a88cb5320d68bec72910c57d76: Pulling from ocaml/opam
8f913be5ecad: Already exists
ce31ce67e69b: Already exists
0cf3a7789759: Already exists
9f0c6299278d: Already exists
e94bba55929b: Already exists
fa0712264263: Already exists
2e9048a7b53d: Already exists
9902de28c3f0: Already exists
ff517c358677: Already exists
383f060cda87: Already exists
b7a964b1a83b: Already exists
02ef0fd530dd: Already exists
3cec61b290e9: Already exists
2273bd2c4d4b: Already exists
c04c67aab9ae: Already exists
b43aac5e47f2: Already exists
fa01fc863b11: Already exists
70ce8722af9c: Already exists
d62c11b367a0: Already exists
e28d1e571478: Already exists
e4619c0fdd56: Already exists
4f4fb700ef54: Already exists
2642eb02d1cf: Already exists
17410ed193a2: Already exists
ea4027cf29ff: Already exists
2d1c149b33bc: Already exists
aa1fc2e76ba7: Already exists
198f02c9d8bb: Already exists
f3c530c1395c: Already exists
b4c1f20e76b0: Already exists
dabbe871c8f1: Already exists
07bc2850efcf: Already exists
c44cd4c1c616: Already exists
9bad6d1480ef: Already exists
9139b16fda07: Already exists
ddce8e624d6f: Already exists
cdd44d9ef1e0: Already exists
9745a1b41bc7: Already exists
926c04a38725: Already exists
33c611bdffe3: Already exists
76e001bd7592: Pulling fs layer
8178b30eaed4: Pulling fs layer
d6a58bc7e6eb: Pulling fs layer
e3319bad4d65: Pulling fs layer
e3319bad4d65: Waiting
8178b30eaed4: Download complete
d6a58bc7e6eb: Verifying Checksum
d6a58bc7e6eb: Download complete
e3319bad4d65: Verifying Checksum
76e001bd7592: Verifying Checksum
76e001bd7592: Download complete
76e001bd7592: Pull complete
8178b30eaed4: Pull complete
d6a58bc7e6eb: Pull complete
e3319bad4d65: Pull complete
Digest: sha256:3e42b9c7112f8cd5d660e911bb5dcec54c8082a88cb5320d68bec72910c57d76
Status: Downloaded newer image for ocaml/opam@sha256:3e42b9c7112f8cd5d660e911bb5dcec54c8082a88cb5320d68bec72910c57d76
2025-09-16 03:31.36 ---> using "41e18d919d0b11522f47b39e88e0c9d78c1ffeea6ec60f162564375bd01b80ea" from cache
/: (comment debian-13-4.14_riscv64_opam-2.4)
/: (user (uid 1000) (gid 1000))
/: (env CLICOLOR_FORCE 1)
/: (env OPAMCOLOR always)
/: (workdir /src)
/src: (run (shell "sudo ln -f /usr/bin/opam-2.4 /usr/bin/opam"))
2025-09-16 03:31.36 ---> using "e07d6b530ead7a31dec960643554fb0da046873e8598bf1409f025c2db405708" 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 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-09-16 03:31.36 ---> using "9e72986e6b4a664627654c3fba814a27f8a03e51653bf35430caab8f7c5e7860" from cache
/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.10.113-scw1
The OCaml toplevel, version 4.14.2
2.4.1
2025-09-16 03:31.36 ---> using "44de67850c6875516e73867da2b24f5a432152581729b0ec29b7e316e2181069" from cache
/src: (workdir /src)
/src: (run (shell "sudo chown opam /src"))
2025-09-16 03:31.36 ---> using "545d37e12873553aaba720a97b538ff7ecb3142de0fe24495cb597077237b3c6" from cache
/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e 109398e2fd61803126becd398df0f1eabc9f3ca2 || git fetch origin master) && git reset -q --hard 109398e2fd61803126becd398df0f1eabc9f3ca2 && git log --no-decorate -n1 --oneline && opam update -u"))
109398e2fd Merge pull request #28437 from maiste/release-dune-3.20.2
<><> 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 at these versions (e.g. "opam upgrade ocaml.5.3.0"), 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-09-16 03:31.36 ---> using "4bfebd6567764f5512fcde312d22f595e17f671828d1a3a1008f629afeeee9f1" from cache
/src: (copy (src multicore-bench.opam) (dst ./))
2025-09-16 03:31.36 ---> saved as "53de42d97efe3b93b06719e2bc8f7758a85d6089d740cb33e3fc86bbb2474b62"
/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-09-16 03:31.44 ---> saved as "e9b19f4c547dd4c117df27c2c6b986bd55081d6a21578309dcbb96530e69c02a"
/src: (run (network host)
(shell "echo '(lang dune 3.0)' > './dune-project'"))
2025-09-16 03:31.44 ---> saved as "65682a49cf9c336d13c990e17dcac5e13dc0b459edadddefd1bef47d4a52f6aa"
/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.20.2 fmt.0.11.0 logs.0.9.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.13.2 result.1.5 seq.base thread-table.1.0.0 topkg.1.1.0 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.4 --depext-only -y multicore-bench.dev $DEPS"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://deb.debian.org/debian trixie InRelease
- Get:2 http://deb.debian.org/debian trixie-updates InRelease [47.3 kB]
- Get:3 http://deb.debian.org/debian-security trixie-security InRelease [43.4 kB]
- Get:4 http://deb.debian.org/debian-security trixie-security/main riscv64 Packages [36.6 kB]
- Fetched 127 kB in 0s (295 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-09-16 03:32.28 ---> saved as "9cbc21856ca4a3c2cd0de1b6b39d0881f63b4c1fab3c976751d012e66f93e10a"
/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.20.2
- install fmt 0.11.0
- install logs 0.9.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.13.2
- install result 1.5
- install seq base
- install thread-table 1.0.0
- install topkg 1.1.0
- install yojson 3.0.0
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved astring.0.8.5 (cached)
-> retrieved backoff.0.1.1 (cached)
-> retrieved camlp-streams.5.0.1 (cached)
-> retrieved cmdliner.1.3.0 (cached)
-> retrieved cppo.1.8.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.11.0 (cached)
-> retrieved logs.0.9.0 (cached)
-> retrieved mtime.2.1.0 (cached)
-> retrieved mdx.2.5.0 (cached)
-> retrieved multicore-magic.2.3.1 (cached)
-> retrieved ocaml-version.4.0.1 (cached)
-> retrieved ocamlfind.1.9.8 (cached)
-> retrieved ocamlbuild.0.16.1 (cached)
-> retrieved re.1.13.2 (cached)
-> retrieved seq.base (cached)
-> retrieved result.1.5 (cached)
-> retrieved thread-table.1.0.0 (cached)
-> retrieved topkg.1.1.0 (cached)
-> retrieved yojson.3.0.0 (cached)
-> retrieved dune.3.20.2 (cached)
-> installed cmdliner.1.3.0
-> installed ocamlfind.1.9.8
-> installed seq.base
-> installed ocamlbuild.0.16.1
-> installed topkg.1.1.0
-> installed fmt.0.11.0
-> installed astring.0.8.5
-> installed mtime.2.1.0
-> installed logs.0.9.0
-> installed dune.3.20.2
-> installed camlp-streams.5.0.1
-> installed backoff.0.1.1
-> installed csexp.1.5.2
-> installed domain_shims.0.1.0
-> installed multicore-magic.2.3.1
-> installed cppo.1.8.0
-> installed result.1.5
-> installed ocaml-version.4.0.1
-> installed thread-table.1.0.0
-> installed domain-local-await.1.0.1
-> installed re.1.13.2
-> installed yojson.3.0.0
-> installed mdx.2.5.0
Done.
# To update the current shell environment, run: eval $(opam env)
2025-09-16 03:37.26 ---> saved as "b1a20bb49c187313700e3c5b97bd90e6a058569f93944a165d952a43e17bd2f9"
/src: (copy (src .) (dst /src))
2025-09-16 03:37.26 ---> saved as "e3a4757af560dc6ea7cf3f708f281d8adee83d01ce73cb524fd3d7f7c20f3912"
/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:
76.80 M/s
ops over time/get:
866.53 M/s
ops over time/incr:
268.81 M/s
ops over time/push & pop:
16.48 M/s
ops over time/swap:
11.64 M/s
ops over time/xchg int:
83.75 M/s
time per op/cas int:
13.02 ns
time per op/get:
1.15 ns
time per op/incr:
3.72 ns
time per op/push & pop:
60.68 ns
time per op/swap:
85.94 ns
time per op/xchg int:
11.94 ns
Atomic incr:
ops over time/CAS, 1 domains:
61.68 M/s
ops over time/CAS with backoff, 1 domains:
59.46 M/s
ops over time/Incr, 1 domains:
150.52 M/s
time per op/CAS, 1 domains:
16.21 ns
time per op/CAS with backoff, 1 domains:
16.82 ns
time per op/Incr, 1 domains:
6.64 ns
Bounded_q:
messages over time/one domain:
1.79 M/s
time per message/one domain:
557.21 ns
Hashtbl:
operations over time/1 worker, 10% reads:
2.97 M/s
operations over time/1 worker, 50% reads:
2.96 M/s
operations over time/1 worker, 90% reads:
3.04 M/s
operations over time/2 workers, 10% reads:
2.85 M/s
operations over time/2 workers, 50% reads:
2.93 M/s
operations over time/2 workers, 90% reads:
3.00 M/s
operations over time/4 workers, 10% reads:
2.88 M/s
operations over time/4 workers, 50% reads:
3.01 M/s
operations over time/4 workers, 90% reads:
3.01 M/s
operations over time/8 workers, 10% reads:
2.76 M/s
operations over time/8 workers, 50% reads:
2.95 M/s
operations over time/8 workers, 90% reads:
2.96 M/s
operations over time/one domain, 10% reads:
7.13 M/s
operations over time/one domain, 50% reads:
7.34 M/s
operations over time/one domain, 90% reads:
7.79 M/s
time per operation/1 worker, 10% reads:
337.04 ns
time per operation/1 worker, 50% reads:
337.50 ns
time per operation/1 worker, 90% reads:
329.46 ns
time per operation/2 workers, 10% reads:
702.69 ns
time per operation/2 workers, 50% reads:
682.13 ns
time per operation/2 workers, 90% reads:
665.89 ns
time per operation/4 workers, 10% reads:
1391.25 ns
time per operation/4 workers, 50% reads:
1328.30 ns
time per operation/4 workers, 90% reads:
1330.61 ns
time per operation/8 workers, 10% reads:
2903.14 ns
time per operation/8 workers, 50% reads:
2709.36 ns
time per operation/8 workers, 90% reads:
2703.02 ns
time per operation/one domain, 10% reads:
140.34 ns
time per operation/one domain, 50% reads:
136.29 ns
time per operation/one domain, 90% reads:
128.42 ns
Queue:
messages over time/one domain:
7.25 M/s
time per message/one domain:
137.87 ns
Ref with Mutex:
ops over time/cas int:
4.85 M/s
ops over time/get:
5.03 M/s
ops over time/incr:
5.14 M/s
ops over time/push & pop:
4.24 M/s
ops over time/swap:
4.57 M/s
ops over time/xchg int:
4.77 M/s
time per op/cas int:
206.05 ns
time per op/get:
198.98 ns
time per op/incr:
194.63 ns
time per op/push & pop:
235.98 ns
time per op/swap:
218.78 ns
time per op/xchg int:
209.50 ns
Ref with [@poll error]:
ops over time/cas int:
77.86 M/s
ops over time/get:
866.78 M/s
ops over time/incr:
250.83 M/s
ops over time/push & pop:
16.20 M/s
ops over time/swap:
11.91 M/s
ops over time/xchg int:
77.24 M/s
time per op/cas int:
12.84 ns
time per op/get:
1.15 ns
time per op/incr:
3.99 ns
time per op/push & pop:
61.74 ns
time per op/swap:
83.96 ns
time per op/xchg int:
12.95 ns
Stack:
messages over time/one domain:
8.38 M/s
time per message/one domain:
119.30 ns
Unix:
blocking reads over time/1 worker:
0.14 M/s
time per blocking read/1 worker:
7264.99 ns
2025-09-16 03:37.55 ---> saved as "2826900f979016bddf7c4c8e75f95b36e3da2dad5b4b83ddb843440387b1a457"
Job succeeded
2025-09-16 03:37.55: Job succeeded