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-ppc64:debian-12-5.3_ppc64_opam-2.3)
Base: ocaml/opam:debian-12-ocaml-5.3@sha256:e02db52b4786c0140a88a7ce65e51b43ea08675bf9ac59a987f144b54907ed1f
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:e02db52b4786c0140a88a7ce65e51b43ea08675bf9ac59a987f144b54907ed1f
# debian-12-5.3_ppc64_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:e02db52b4786c0140a88a7ce65e51b43ea08675bf9ac59a987f144b54907ed1f-debian-12-5.3_ppc64_opam-2.3-fdb66d4783b2d787160404816b7d94dd"
2025-05-10 12:26.01: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-5.3@sha256:e02db52b4786c0140a88a7ce65e51b43ea08675bf9ac59a987f144b54907ed1f)
(comment debian-12-5.3_ppc64_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:26.27: Waiting for worker…
2025-05-11 08:20.37: Got resource from pool OCluster
Building on orithia.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:e02db52b4786c0140a88a7ce65e51b43ea08675bf9ac59a987f144b54907ed1f)
Unable to find image 'ocaml/opam:debian-12-ocaml-5.3@sha256:e02db52b4786c0140a88a7ce65e51b43ea08675bf9ac59a987f144b54907ed1f' locally
docker.io/ocaml/opam@sha256:e02db52b4786c0140a88a7ce65e51b43ea08675bf9ac59a987f144b54907ed1f: Pulling from ocaml/opam
Digest: sha256:e02db52b4786c0140a88a7ce65e51b43ea08675bf9ac59a987f144b54907ed1f
Status: Downloaded newer image for ocaml/opam@sha256:e02db52b4786c0140a88a7ce65e51b43ea08675bf9ac59a987f144b54907ed1f
2025-05-11 08:20.37 ---> using "c4635525160c9f185a969ee812d6101e71fefa1ed329a5898c9422fb30c6512a" from cache
/: (comment debian-12-5.3_ppc64_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-11 08:20.37 ---> using "4e9719c80ce561fffd0cc76802598cfcd57ca2847222a8c998d4a21a3b71d577" 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-05-11 08:20.37 ---> using "c578370adbc5087aa27747e9f0370d2ae139ce1ed965c7b6c59e043adc113803" from cache
/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 6.8.0-58-generic
The OCaml toplevel, version 5.3.0
2.3.0
2025-05-11 08:20.37 ---> using "62f9b695304e1372bbeceabf06a5730df030c63db289471a97379b2bfe6dd883" from cache
/src: (workdir /src)
/src: (run (shell "sudo chown opam /src"))
2025-05-11 08:20.37 ---> using "67acfddc9eaa74ca1a3b210e7cecfe4216f9afd47f84e1282ed78076dabb3426" 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-11 08:20.37 ---> using "5e80f4cadd3c9c91590394544691cfb94cbed85fbf2b44601b0ea8b5bb6f66c7" from cache
/src: (copy (src multicore-bench.opam) (dst ./))
2025-05-11 08:20.38 ---> saved as "7ce3e0231fddc50441ee520c259a250a01b9dbc4c47b75d5352aa35a051071d1"
/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-11 08:20.42 ---> saved as "523af34bf60e139d755307fff4e71940364f91ae09e896c8e55aae804508ffe2"
/src: (run (network host)
(shell "echo '(lang dune 3.0)' > './dune-project'"))
2025-05-11 08:20.43 ---> saved as "3a663f45a7a746d6a47141a7281d1ae034951d26cb1103189851bce583f4c583"
/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 ppc64el Packages [247 kB]
- Fetched 350 kB in 0s (719 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-11 08:21.03 ---> saved as "cb28c44fc207a7924200fd0d3a9bb70dbe36d7189535537340cbb632f3aaee5c"
/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 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 multicore-magic.2.3.1 (cached)
-> retrieved mdx.2.5.0 (cached)
-> retrieved ocaml-version.4.0.0 (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 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 ocaml-version.4.0.0
-> installed thread-table.1.0.0
-> installed backoff.0.1.1
-> installed result.1.5
-> 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-11 08:22.05 ---> saved as "37bf9efc008322707593e3fb51ce052b7cd36b09333f7507ecafc31e60610ce5"
/src: (copy (src .) (dst /src))
2025-05-11 08:22.06 ---> saved as "e3962b6255f7e9a5cfdaa4486499aec84c045f39ed0826bafa2f9c55936ba47a"
/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:
18.63 M/s
ops over time/get:
45.48 M/s
ops over time/incr:
20.10 M/s
ops over time/push & pop:
12.29 M/s
ops over time/swap:
13.13 M/s
ops over time/xchg int:
17.29 M/s
time per op/cas int:
53.68 ns
time per op/get:
21.99 ns
time per op/incr:
49.74 ns
time per op/push & pop:
81.40 ns
time per op/swap:
76.17 ns
time per op/xchg int:
57.82 ns
Atomic incr:
ops over time/CAS, 1 domains:
13.50 M/s
ops over time/CAS, 2 domains:
7.65 M/s
ops over time/CAS, 4 domains:
5.19 M/s
ops over time/CAS, 8 domains:
4.27 M/s
ops over time/CAS with backoff, 1 domains:
12.94 M/s
ops over time/CAS with backoff, 2 domains:
6.13 M/s
ops over time/CAS with backoff, 4 domains:
3.60 M/s
ops over time/CAS with backoff, 8 domains:
3.27 M/s
ops over time/Incr, 1 domains:
12.91 M/s
ops over time/Incr, 2 domains:
18.35 M/s
ops over time/Incr, 4 domains:
16.32 M/s
ops over time/Incr, 8 domains:
13.84 M/s
time per op/CAS, 1 domains:
74.06 ns
time per op/CAS, 2 domains:
261.51 ns
time per op/CAS, 4 domains:
771.34 ns
time per op/CAS, 8 domains:
1873.56 ns
time per op/CAS with backoff, 1 domains:
77.26 ns
time per op/CAS with backoff, 2 domains:
326.08 ns
time per op/CAS with backoff, 4 domains:
1109.70 ns
time per op/CAS with backoff, 8 domains:
2449.63 ns
time per op/Incr, 1 domains:
77.45 ns
time per op/Incr, 2 domains:
109.01 ns
time per op/Incr, 4 domains:
245.10 ns
time per op/Incr, 8 domains:
577.92 ns
Bounded_q:
messages over time/1 adder, 1 taker:
1.61 M/s
messages over time/1 adder, 2 takers:
1.38 M/s
messages over time/1 adder, 4 takers:
0.41 M/s
messages over time/2 adders, 1 taker:
1.72 M/s
messages over time/2 adders, 2 takers:
1.48 M/s
messages over time/2 adders, 4 takers:
0.85 M/s
messages over time/4 adders, 1 taker:
1.47 M/s
messages over time/4 adders, 2 takers:
1.13 M/s
messages over time/4 adders, 4 takers:
1.04 M/s
messages over time/one domain:
6.27 M/s
time per message/1 adder, 1 taker:
1243.78 ns
time per message/1 adder, 2 takers:
2174.99 ns
time per message/1 adder, 4 takers:
12327.12 ns
time per message/2 adders, 1 taker:
1745.72 ns
time per message/2 adders, 2 takers:
2700.79 ns
time per message/2 adders, 4 takers:
7083.39 ns
time per message/4 adders, 1 taker:
3403.85 ns
time per message/4 adders, 2 takers:
5286.53 ns
time per message/4 adders, 4 takers:
7681.79 ns
time per message/one domain:
159.47 ns
Hashtbl:
operations over time/1 worker, 10% reads:
6.99 M/s
operations over time/1 worker, 50% reads:
7.21 M/s
operations over time/1 worker, 90% reads:
8.27 M/s
operations over time/2 workers, 10% reads:
2.90 M/s
operations over time/2 workers, 50% reads:
1.82 M/s
operations over time/2 workers, 90% reads:
2.85 M/s
operations over time/4 workers, 10% reads:
1.29 M/s
operations over time/4 workers, 50% reads:
1.29 M/s
operations over time/4 workers, 90% reads:
1.85 M/s
operations over time/8 workers, 10% reads:
0.75 M/s
operations over time/8 workers, 50% reads:
0.94 M/s
operations over time/8 workers, 90% reads:
2.03 M/s
operations over time/one domain, 10% reads:
20.96 M/s
operations over time/one domain, 50% reads:
20.19 M/s
operations over time/one domain, 90% reads:
26.54 M/s
time per operation/1 worker, 10% reads:
142.97 ns
time per operation/1 worker, 50% reads:
138.71 ns
time per operation/1 worker, 90% reads:
120.89 ns
time per operation/2 workers, 10% reads:
690.38 ns
time per operation/2 workers, 50% reads:
1101.41 ns
time per operation/2 workers, 90% reads:
702.61 ns
time per operation/4 workers, 10% reads:
3111.60 ns
time per operation/4 workers, 50% reads:
3099.33 ns
time per operation/4 workers, 90% reads:
2159.63 ns
time per operation/8 workers, 10% reads:
10647.83 ns
time per operation/8 workers, 50% reads:
8491.11 ns
time per operation/8 workers, 90% reads:
3939.69 ns
time per operation/one domain, 10% reads:
47.72 ns
time per operation/one domain, 50% reads:
49.52 ns
time per operation/one domain, 90% reads:
37.68 ns
Queue:
messages over time/one domain:
9.76 M/s
time per message/one domain:
102.45 ns
Ref with Mutex:
ops over time/cas int:
8.81 M/s
ops over time/get:
10.61 M/s
ops over time/incr:
9.59 M/s
ops over time/push & pop:
8.37 M/s
ops over time/swap:
8.58 M/s
ops over time/xchg int:
8.85 M/s
time per op/cas int:
113.50 ns
time per op/get:
94.27 ns
time per op/incr:
104.23 ns
time per op/push & pop:
119.43 ns
time per op/swap:
116.52 ns
time per op/xchg int:
113.02 ns
Ref with [@poll error]:
ops over time/cas int:
73.08 M/s
ops over time/get:
387.34 M/s
ops over time/incr:
98.81 M/s
ops over time/push & pop:
52.34 M/s
ops over time/swap:
52.37 M/s
ops over time/xchg int:
72.70 M/s
time per op/cas int:
13.68 ns
time per op/get:
2.58 ns
time per op/incr:
10.12 ns
time per op/push & pop:
19.10 ns
time per op/swap:
19.10 ns
time per op/xchg int:
13.75 ns
Stack:
messages over time/one domain:
10.94 M/s
time per message/one domain:
91.41 ns
Unix:
blocking reads over time/1 worker:
1.07 M/s
blocking reads over time/2 workers:
2.12 M/s
blocking reads over time/4 workers:
4.27 M/s
time per blocking read/1 worker:
938.77 ns
time per blocking read/2 workers:
943.88 ns
time per blocking read/4 workers:
935.87 ns
2025-05-11 08:22.33 ---> saved as "4068f8c8ac89f78b2a4ba2517637d895549636e63e0df9618b2bd9e7b70a2f87"
Job succeeded
2025-05-11 08:22.34: Job succeeded