2025-05-10 12:26.01: New job: test ocaml-multicore/multicore-bench https://github.com/ocaml-multicore/multicore-bench.git#refs/heads/main (adb1f6a5d252f2a3952c65542f8dba1226ae5c3e) (linux-arm64:debian-12-5.3_arm64_opam-2.3)
Base: ocaml/opam:debian-12-ocaml-5.3@sha256:f3f7c954361569e1f7fd1e1b6ab41b5bd4f00147ee97d71ea399a22764f568d3
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 adb1f6a5
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-5.3@sha256:f3f7c954361569e1f7fd1e1b6ab41b5bd4f00147ee97d71ea399a22764f568d3
# debian-12-5.3_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 35eb2f107a989a2d623b0bbe170696398fcb9b1e || git fetch origin master) && git reset -q --hard 35eb2f107a989a2d623b0bbe170696398fcb9b1e && 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.18.2 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.0 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.2.2.2"
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-05-10 12:26.01: Using cache hint "ocaml-multicore/multicore-bench-ocaml/opam:debian-12-ocaml-5.3@sha256:f3f7c954361569e1f7fd1e1b6ab41b5bd4f00147ee97d71ea399a22764f568d3-debian-12-5.3_arm64_opam-2.3-fdb66d4783b2d787160404816b7d94dd"
2025-05-10 12:26.01: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-5.3@sha256:f3f7c954361569e1f7fd1e1b6ab41b5bd4f00147ee97d71ea399a22764f568d3)
(comment debian-12-5.3_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 35eb2f107a989a2d623b0bbe170696398fcb9b1e || git fetch origin master) && git reset -q --hard 35eb2f107a989a2d623b0bbe170696398fcb9b1e && 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.18.2 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.0 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.2.2.2")
(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-05-10 12:26.01: Waiting for resource in pool OCluster
2025-05-10 12:31.28: Waiting for worker…
2025-05-10 13:25.31: Got resource from pool OCluster
Building on kydoime.caelum.ci.dev
All commits already cached
HEAD is now at adb1f6a Bench queues and stacks with heap allocated blocks
(from ocaml/opam:debian-12-ocaml-5.3@sha256:f3f7c954361569e1f7fd1e1b6ab41b5bd4f00147ee97d71ea399a22764f568d3)
Unable to find image 'ocaml/opam:debian-12-ocaml-5.3@sha256:f3f7c954361569e1f7fd1e1b6ab41b5bd4f00147ee97d71ea399a22764f568d3' locally
docker.io/ocaml/opam@sha256:f3f7c954361569e1f7fd1e1b6ab41b5bd4f00147ee97d71ea399a22764f568d3: Pulling from ocaml/opam
b17c8e92fb87: Pulling fs layer
b17c8e92fb87: Verifying Checksum
b17c8e92fb87: Download complete
b17c8e92fb87: Pull complete
Digest: sha256:f3f7c954361569e1f7fd1e1b6ab41b5bd4f00147ee97d71ea399a22764f568d3
Status: Downloaded newer image for ocaml/opam@sha256:f3f7c954361569e1f7fd1e1b6ab41b5bd4f00147ee97d71ea399a22764f568d3
2025-05-10 13:25.31 ---> using "978b9672b52860448462f39ede8f8b4212c220fbb438fba1dfbc6def719b7210" from cache
/: (comment debian-12-5.3_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-05-10 13:25.31 ---> using "496cc35f114b05b801d3e9ee6474864c453fb63d6b47eb13a1549a1750ca635f" 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.
Continue? [y/n] y
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.
Format upgrade done.
<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2025-05-10 13:25.31 ---> using "7d05921eabd1fe38008746d72fe6393680f11c689b91eb2d7502bbd1bff3fb98" from cache
/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-134-generic
The OCaml toplevel, version 5.3.0
2.3.0
2025-05-10 13:25.31 ---> using "9502e2c4f53b5580308524d5b4c73de1f298163f2699b8bac50471099eae33e6" from cache
/src: (workdir /src)
/src: (run (shell "sudo chown opam /src"))
2025-05-10 13:25.31 ---> using "981e6ce16a11cbfdb1466639b83481acca0dd8d5862dfa3fd7af24a690882e61" from cache
/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e 35eb2f107a989a2d623b0bbe170696398fcb9b1e || git fetch origin master) && git reset -q --hard 35eb2f107a989a2d623b0bbe170696398fcb9b1e && git log --no-decorate -n1 --oneline && opam update -u"))
35eb2f107a Merge pull request #27838 from maiste/release-dune-3.18.2
<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] no changes 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-05-10 13:25.31 ---> using "3c780e8f25f16e0e9e9b0f62c87de5efcf761c7e394382f952c5fc6f04f9e229" from cache
/src: (copy (src multicore-bench.opam) (dst ./))
2025-05-10 13:25.31 ---> saved as "ab8887d7d6dccf46d9a7a2004508e17262cadf16c9c0f20994d43d0952274787"
/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-05-10 13:25.33 ---> saved as "fcb67d9c41eb6fb876e0b14eb9def60bd62edfb419473db42f2865f40c1c161e"
/src: (run (network host)
(shell "echo '(lang dune 3.0)' > './dune-project'"))
2025-05-10 13:25.33 ---> saved as "5941527ce9677b714ebd3b0062c38a248224f39f9fffcdbb0ff07e5b60f139b8"
/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.18.2 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.0 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.2.2.2")
/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 [254 kB]
- Fetched 357 kB in 0s (862 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-05-10 13:25.44 ---> saved as "01ff8bac8833f6592446f30947e1f7e88dd389d0a3d1b304033006f2da17e97d"
/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.18.2
- 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.0
- 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 2.2.2
<><> 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.0 (cached)
-> retrieved ocamlbuild.0.16.1 (cached)
-> retrieved ocamlfind.1.9.8 (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 dune.3.18.2 (cached)
-> retrieved topkg.1.0.8 (cached)
-> retrieved yojson.2.2.2 (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.18.2
-> installed domain_shims.0.1.0
-> installed csexp.1.5.2
-> installed backoff.0.1.1
-> installed thread-table.1.0.0
-> installed result.1.5
-> installed ocaml-version.4.0.0
-> installed multicore-magic.2.3.1
-> installed camlp-streams.5.0.1
-> installed domain-local-await.1.0.1
-> installed re.1.12.0
-> installed cppo.1.8.0
-> installed yojson.2.2.2
-> installed mdx.2.5.0
Done.
# To update the current shell environment, run: eval $(opam env)
2025-05-10 13:26.23 ---> saved as "d127031c2b69262072f2f3931eafc070b6ef46b2481e6dae509d2254fcd9ac5a"
/src: (copy (src .) (dst /src))
2025-05-10 13:26.23 ---> saved as "9de214d8d761045c4ee07edc33a09863af11db959347493cd95165278e91848c"
/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:
88.08 M/s
ops over time/get:
189.32 M/s
ops over time/incr:
93.51 M/s
ops over time/push & pop:
45.16 M/s
ops over time/swap:
51.10 M/s
ops over time/xchg int:
78.90 M/s
time per op/cas int:
11.35 ns
time per op/get:
5.28 ns
time per op/incr:
10.69 ns
time per op/push & pop:
22.15 ns
time per op/swap:
19.57 ns
time per op/xchg int:
12.67 ns
Atomic incr:
ops over time/CAS, 1 domains:
73.40 M/s
ops over time/CAS, 2 domains:
23.71 M/s
ops over time/CAS, 4 domains:
22.09 M/s
ops over time/CAS, 8 domains:
19.06 M/s
ops over time/CAS with backoff, 1 domains:
72.09 M/s
ops over time/CAS with backoff, 2 domains:
69.94 M/s
ops over time/CAS with backoff, 4 domains:
67.08 M/s
ops over time/CAS with backoff, 8 domains:
54.22 M/s
ops over time/Incr, 1 domains:
101.97 M/s
ops over time/Incr, 2 domains:
56.61 M/s
ops over time/Incr, 4 domains:
54.79 M/s
ops over time/Incr, 8 domains:
47.21 M/s
time per op/CAS, 1 domains:
13.62 ns
time per op/CAS, 2 domains:
84.34 ns
time per op/CAS, 4 domains:
181.11 ns
time per op/CAS, 8 domains:
419.67 ns
time per op/CAS with backoff, 1 domains:
13.87 ns
time per op/CAS with backoff, 2 domains:
28.59 ns
time per op/CAS with backoff, 4 domains:
59.63 ns
time per op/CAS with backoff, 8 domains:
147.55 ns
time per op/Incr, 1 domains:
9.81 ns
time per op/Incr, 2 domains:
35.33 ns
time per op/Incr, 4 domains:
73.00 ns
time per op/Incr, 8 domains:
169.46 ns
Bounded_q:
messages over time/1 adder, 1 taker:
0.99 M/s
messages over time/1 adder, 2 takers:
1.70 M/s
messages over time/1 adder, 4 takers:
0.72 M/s
messages over time/2 adders, 1 taker:
1.84 M/s
messages over time/2 adders, 2 takers:
1.39 M/s
messages over time/2 adders, 4 takers:
0.98 M/s
messages over time/4 adders, 1 taker:
1.46 M/s
messages over time/4 adders, 2 takers:
1.31 M/s
messages over time/4 adders, 4 takers:
1.15 M/s
messages over time/one domain:
9.82 M/s
time per message/1 adder, 1 taker:
2015.70 ns
time per message/1 adder, 2 takers:
1762.77 ns
time per message/1 adder, 4 takers:
6966.14 ns
time per message/2 adders, 1 taker:
1632.35 ns
time per message/2 adders, 2 takers:
2886.67 ns
time per message/2 adders, 4 takers:
6124.78 ns
time per message/4 adders, 1 taker:
3417.61 ns
time per message/4 adders, 2 takers:
4566.39 ns
time per message/4 adders, 4 takers:
6984.45 ns
time per message/one domain:
101.78 ns
Hashtbl:
operations over time/1 worker, 10% reads:
14.65 M/s
operations over time/1 worker, 50% reads:
15.48 M/s
operations over time/1 worker, 90% reads:
18.17 M/s
operations over time/2 workers, 10% reads:
2.86 M/s
operations over time/2 workers, 50% reads:
2.88 M/s
operations over time/2 workers, 90% reads:
3.93 M/s
operations over time/4 workers, 10% reads:
2.47 M/s
operations over time/4 workers, 50% reads:
2.92 M/s
operations over time/4 workers, 90% reads:
3.70 M/s
operations over time/8 workers, 10% reads:
2.06 M/s
operations over time/8 workers, 50% reads:
2.43 M/s
operations over time/8 workers, 90% reads:
3.37 M/s
operations over time/one domain, 10% reads:
24.09 M/s
operations over time/one domain, 50% reads:
26.48 M/s
operations over time/one domain, 90% reads:
38.21 M/s
time per operation/1 worker, 10% reads:
68.25 ns
time per operation/1 worker, 50% reads:
64.58 ns
time per operation/1 worker, 90% reads:
55.05 ns
time per operation/2 workers, 10% reads:
699.43 ns
time per operation/2 workers, 50% reads:
693.24 ns
time per operation/2 workers, 90% reads:
509.33 ns
time per operation/4 workers, 10% reads:
1621.29 ns
time per operation/4 workers, 50% reads:
1368.05 ns
time per operation/4 workers, 90% reads:
1081.56 ns
time per operation/8 workers, 10% reads:
3875.23 ns
time per operation/8 workers, 50% reads:
3294.57 ns
time per operation/8 workers, 90% reads:
2376.59 ns
time per operation/one domain, 10% reads:
41.51 ns
time per operation/one domain, 50% reads:
37.76 ns
time per operation/one domain, 90% reads:
26.17 ns
Queue:
messages over time/one domain:
24.25 M/s
time per message/one domain:
41.23 ns
Ref with Mutex:
ops over time/cas int:
28.65 M/s
ops over time/get:
34.92 M/s
ops over time/incr:
32.72 M/s
ops over time/push & pop:
24.05 M/s
ops over time/swap:
23.11 M/s
ops over time/xchg int:
27.00 M/s
time per op/cas int:
34.90 ns
time per op/get:
28.64 ns
time per op/incr:
30.57 ns
time per op/push & pop:
41.58 ns
time per op/swap:
43.27 ns
time per op/xchg int:
37.04 ns
Ref with [@poll error]:
ops over time/cas int:
88.89 M/s
ops over time/get:
740.79 M/s
ops over time/incr:
187.31 M/s
ops over time/push & pop:
58.81 M/s
ops over time/swap:
71.31 M/s
ops over time/xchg int:
88.26 M/s
time per op/cas int:
11.25 ns
time per op/get:
1.35 ns
time per op/incr:
5.34 ns
time per op/push & pop:
17.00 ns
time per op/swap:
14.02 ns
time per op/xchg int:
11.33 ns
Stack:
messages over time/one domain:
31.14 M/s
time per message/one domain:
32.11 ns
Unix:
blocking reads over time/1 worker:
2.55 M/s
blocking reads over time/2 workers:
5.10 M/s
blocking reads over time/4 workers:
10.30 M/s
time per blocking read/1 worker:
392.06 ns
time per blocking read/2 workers:
392.42 ns
time per blocking read/4 workers:
388.23 ns
2025-05-10 13:26.38 ---> saved as "33249f6ba315611ec5e5a1e8c51eb266394fc555dd0c7cb008de4dd68aada3df"
Job succeeded
2025-05-10 13:26.38: Job succeeded