2025-06-12 14:21.29: New job: test ocaml-multicore/multicore-bench https://github.com/ocaml-multicore/multicore-bench.git#refs/heads/main (d2dcd9f17eb27ef2e967e6e40389827f80fd9514) (linux-x86_64:debian-12-5.3_opam-2.3)
Base: ocaml/opam:debian-12-ocaml-5.3@sha256:458b49b62865f1cfc7737d31da6aa961afc961ce10c214b72f9fdd4b7985dc6e
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 d2dcd9f1
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-5.3@sha256:458b49b62865f1cfc7737d31da6aa961afc961ce10c214b72f9fdd4b7985dc6e
# debian-12-5.3_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-domains.base base-effects.base base-nnp.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.5.3.0 ocaml-base-compiler.5.3.0 ocaml-compiler.5.3.0 ocaml-config.3 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-12 14:21.29: Using cache hint "ocaml-multicore/multicore-bench-ocaml/opam:debian-12-ocaml-5.3@sha256:458b49b62865f1cfc7737d31da6aa961afc961ce10c214b72f9fdd4b7985dc6e-debian-12-5.3_opam-2.3-10db08213cc6d5aab31cc60439730334"
2025-06-12 14:21.29: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-5.3@sha256:458b49b62865f1cfc7737d31da6aa961afc961ce10c214b72f9fdd4b7985dc6e)
(comment debian-12-5.3_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-domains.base base-effects.base base-nnp.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.5.3.0 ocaml-base-compiler.5.3.0 ocaml-compiler.5.3.0 ocaml-config.3 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-12 14:21.29: Waiting for resource in pool OCluster
2025-06-12 19:18.45: Waiting for worker…
2025-06-12 19:21.12: Got resource from pool OCluster
Building on bremusa.ocamllabs.io
All commits already cached
HEAD is now at d2dcd9f Try to avoid false sharing
(from ocaml/opam:debian-12-ocaml-5.3@sha256:458b49b62865f1cfc7737d31da6aa961afc961ce10c214b72f9fdd4b7985dc6e)
2025-06-12 19:21.13 ---> using "96697d8e79983291d560edbf731c893ea129e422e8dda14986eae24c3f7015ce" from cache
/: (comment debian-12-5.3_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-12 19:21.13 ---> using "399839540ee4951b543ccb424e193cc11994597b031e27f8e7eb093c0cdb72ee" 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-12 19:21.13 ---> using "72512caa6994f9b90c379a25ae2297e61d0ae9f8d7fa55e5981e75cb91cd604a" from cache
/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 6.8.0-59-generic
The OCaml toplevel, version 5.3.0
2.3.0
2025-06-12 19:21.13 ---> using "b42b7d17178434ed1e5995526e0de64bf245d8f95c75891550c5f5aa669684a4" from cache
/src: (workdir /src)
/src: (run (shell "sudo chown opam /src"))
2025-06-12 19:21.13 ---> using "2017b209d87937b64be72838400dcc6e6fec01bc30677330c6af75dd31354bd7" 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"))
From https://github.com/ocaml/opam-repository
* branch master -> FETCH_HEAD
bc726805e3..a28eb8a148 master -> origin/master
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-12 19:21.13 ---> using "dfcd4740a011495e4fa3bbea4feb634d379deceabae0184b972ed0bbbe2b68fb" from cache
/src: (copy (src multicore-bench.opam) (dst ./))
2025-06-12 19:21.14 ---> saved as "f7c02fffa6a2e6c048c6ba2e6f6912ffb3e233e27f6a88b90020019dcf1651f7"
/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-12 19:21.17 ---> saved as "8c57f8d5e72c58495e375ad70f14557d20c91642a0a0a984f42e4d8b0a49822d"
/src: (run (network host)
(shell "echo '(lang dune 3.0)' > './dune-project'"))
2025-06-12 19:21.17 ---> saved as "e5743b86bd430c23e2d666d32f488c87c312aaf75a4d7627ab11917a55274c86"
/src: (env DEPS "astring.0.8.5 backoff.0.1.1 base-bigarray.base base-domains.base base-effects.base base-nnp.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.5.3.0 ocaml-base-compiler.5.3.0 ocaml-compiler.5.3.0 ocaml-config.3 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 amd64 Packages [266 kB]
- Fetched 369 kB in 1s (481 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 3).
[NOTE] Package ocaml-compiler is already installed (current version is 5.3.0).
[NOTE] Package ocaml-base-compiler is already installed (current version is 5.3.0).
[NOTE] Package ocaml is already installed (current version is 5.3.0).
[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-nnp is already installed (current version is base).
[NOTE] Package base-effects is already installed (current version is base).
[NOTE] Package base-domains is already installed (current version is base).
[NOTE] Package base-bigarray is already installed (current version is base).
2025-06-12 19:21.45 ---> saved as "258974acf941e08464ed8dfb2af29af0e8e6b461d409c6e6b93a35fb77dc803a"
/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 3).
[NOTE] Package ocaml-compiler is already installed (current version is 5.3.0).
[NOTE] Package ocaml-base-compiler is already installed (current version is 5.3.0).
[NOTE] Package ocaml is already installed (current version is 5.3.0).
[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-nnp is already installed (current version is base).
[NOTE] Package base-effects is already installed (current version is base).
[NOTE] Package base-domains 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 backoff.0.1.1 (cached)
-> retrieved astring.0.8.5 (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.10.0 (cached)
-> retrieved logs.0.8.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.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 csexp.1.5.2
-> installed result.1.5
-> installed thread-table.1.0.0
-> installed ocaml-version.4.0.1
-> installed multicore-magic.2.3.1
-> installed camlp-streams.5.0.1
-> installed domain-local-await.1.0.1
-> installed cppo.1.8.0
-> installed re.1.12.0
-> installed yojson.3.0.0
-> installed mdx.2.5.0
Done.
# To update the current shell environment, run: eval $(opam env)
2025-06-12 19:23.30 ---> saved as "4375e60cba99ea38d74265b3e6956f71d394b1f3a1e98268c5c03e106fc79664"
/src: (copy (src .) (dst /src))
2025-06-12 19:23.31 ---> saved as "b029fdff38f5e9f606e73a1c6e02e64bd207d47e7d425dc99fd8c7655c5758c3"
/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:
53.64 M/s
ops over time/get:
320.06 M/s
ops over time/incr:
76.53 M/s
ops over time/push & pop:
34.64 M/s
ops over time/swap:
38.07 M/s
ops over time/xchg int:
55.31 M/s
time per op/cas int:
18.64 ns
time per op/get:
3.12 ns
time per op/incr:
13.07 ns
time per op/push & pop:
28.87 ns
time per op/swap:
26.27 ns
time per op/xchg int:
18.08 ns
Atomic incr:
ops over time/CAS, 1 domains:
71.31 M/s
ops over time/CAS, 2 domains:
42.58 M/s
ops over time/CAS, 4 domains:
7.95 M/s
ops over time/CAS, 8 domains:
6.03 M/s
ops over time/CAS with backoff, 1 domains:
45.75 M/s
ops over time/CAS with backoff, 2 domains:
61.42 M/s
ops over time/CAS with backoff, 4 domains:
37.77 M/s
ops over time/CAS with backoff, 8 domains:
33.20 M/s
ops over time/Incr, 1 domains:
77.70 M/s
ops over time/Incr, 2 domains:
45.14 M/s
ops over time/Incr, 4 domains:
37.05 M/s
ops over time/Incr, 8 domains:
39.08 M/s
time per op/CAS, 1 domains:
14.02 ns
time per op/CAS, 2 domains:
46.97 ns
time per op/CAS, 4 domains:
503.27 ns
time per op/CAS, 8 domains:
1325.84 ns
time per op/CAS with backoff, 1 domains:
21.86 ns
time per op/CAS with backoff, 2 domains:
32.57 ns
time per op/CAS with backoff, 4 domains:
105.90 ns
time per op/CAS with backoff, 8 domains:
240.99 ns
time per op/Incr, 1 domains:
12.87 ns
time per op/Incr, 2 domains:
44.31 ns
time per op/Incr, 4 domains:
107.97 ns
time per op/Incr, 8 domains:
204.70 ns
Bounded_q:
messages over time/1 adder, 1 taker:
1.51 M/s
messages over time/1 adder, 2 takers:
1.86 M/s
messages over time/1 adder, 4 takers:
2.38 M/s
messages over time/2 adders, 1 taker:
2.83 M/s
messages over time/2 adders, 2 takers:
2.78 M/s
messages over time/2 adders, 4 takers:
1.11 M/s
messages over time/4 adders, 1 taker:
1.28 M/s
messages over time/4 adders, 2 takers:
1.10 M/s
messages over time/4 adders, 4 takers:
0.96 M/s
messages over time/one domain:
9.51 M/s
time per message/1 adder, 1 taker:
1321.65 ns
time per message/1 adder, 2 takers:
1608.82 ns
time per message/1 adder, 4 takers:
2098.80 ns
time per message/2 adders, 1 taker:
1058.37 ns
time per message/2 adders, 2 takers:
1437.75 ns
time per message/2 adders, 4 takers:
5403.42 ns
time per message/4 adders, 1 taker:
3906.46 ns
time per message/4 adders, 2 takers:
5435.63 ns
time per message/4 adders, 4 takers:
8362.66 ns
time per message/one domain:
105.10 ns
Hashtbl:
operations over time/1 worker, 10% reads:
7.13 M/s
operations over time/1 worker, 50% reads:
8.35 M/s
operations over time/1 worker, 90% reads:
7.76 M/s
operations over time/2 workers, 10% reads:
2.60 M/s
operations over time/2 workers, 50% reads:
2.50 M/s
operations over time/2 workers, 90% reads:
2.31 M/s
operations over time/4 workers, 10% reads:
2.53 M/s
operations over time/4 workers, 50% reads:
2.71 M/s
operations over time/4 workers, 90% reads:
3.44 M/s
operations over time/8 workers, 10% reads:
2.15 M/s
operations over time/8 workers, 50% reads:
2.24 M/s
operations over time/8 workers, 90% reads:
3.16 M/s
operations over time/one domain, 10% reads:
11.82 M/s
operations over time/one domain, 50% reads:
12.20 M/s
operations over time/one domain, 90% reads:
14.14 M/s
time per operation/1 worker, 10% reads:
140.20 ns
time per operation/1 worker, 50% reads:
119.82 ns
time per operation/1 worker, 90% reads:
128.93 ns
time per operation/2 workers, 10% reads:
770.21 ns
time per operation/2 workers, 50% reads:
801.19 ns
time per operation/2 workers, 90% reads:
866.80 ns
time per operation/4 workers, 10% reads:
1578.42 ns
time per operation/4 workers, 50% reads:
1473.33 ns
time per operation/4 workers, 90% reads:
1164.46 ns
time per operation/8 workers, 10% reads:
3716.82 ns
time per operation/8 workers, 50% reads:
3565.38 ns
time per operation/8 workers, 90% reads:
2533.58 ns
time per operation/one domain, 10% reads:
84.57 ns
time per operation/one domain, 50% reads:
81.95 ns
time per operation/one domain, 90% reads:
70.73 ns
Queue:
messages over time/one domain:
19.55 M/s
time per message/one domain:
51.16 ns
Ref with Mutex:
ops over time/cas int:
16.55 M/s
ops over time/get:
18.73 M/s
ops over time/incr:
18.14 M/s
ops over time/push & pop:
13.76 M/s
ops over time/swap:
16.46 M/s
ops over time/xchg int:
17.55 M/s
time per op/cas int:
60.42 ns
time per op/get:
53.39 ns
time per op/incr:
55.14 ns
time per op/push & pop:
72.69 ns
time per op/swap:
60.76 ns
time per op/xchg int:
56.99 ns
Ref with [@poll error]:
ops over time/cas int:
98.71 M/s
ops over time/get:
333.73 M/s
ops over time/incr:
262.02 M/s
ops over time/push & pop:
38.96 M/s
ops over time/swap:
54.07 M/s
ops over time/xchg int:
104.60 M/s
time per op/cas int:
10.13 ns
time per op/get:
3.00 ns
time per op/incr:
3.82 ns
time per op/push & pop:
25.67 ns
time per op/swap:
18.49 ns
time per op/xchg int:
9.56 ns
Stack:
messages over time/one domain:
22.36 M/s
time per message/one domain:
44.72 ns
Unix:
blocking reads over time/1 worker:
0.78 M/s
blocking reads over time/2 workers:
1.55 M/s
blocking reads over time/4 workers:
2.86 M/s
time per blocking read/1 worker:
1281.38 ns
time per blocking read/2 workers:
1289.42 ns
time per blocking read/4 workers:
1398.91 ns
2025-06-12 19:23.50 ---> saved as "1ed117ff2fe740835fba3e8c2a343b6bd9cac7fd94c46030d4969b46c310086b"
Job succeeded
2025-06-12 19:23.50: Job succeeded