2025-09-16 10:13.44: New job: test ocaml-multicore/multicore-bench https://github.com/ocaml-multicore/multicore-bench.git#refs/heads/main (efb15d8562dbdc1ba976ffc574de028e3c11c123) (linux-x86_64:ubuntu-22.04-5.3_opam-2.4)
Base: ocaml/opam:ubuntu-22.04-ocaml-5.3@sha256:6c7955e0185185836d263d289dacb46372674bb2be83dc570321ce11c445832e
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:ubuntu-22.04-ocaml-5.3@sha256:6c7955e0185185836d263d289dacb46372674bb2be83dc570321ce11c445832e
# ubuntu-22.04-5.3_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 6ef6813522b6ea29933f6451236a1639bdbaec61 || git fetch origin master) && git reset -q --hard 6ef6813522b6ea29933f6451236a1639bdbaec61 && 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.20.2 fmt.0.11.0 logs.0.9.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.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-16 10:13.44: Using cache hint "ocaml-multicore/multicore-bench-ocaml/opam:ubuntu-22.04-ocaml-5.3@sha256:6c7955e0185185836d263d289dacb46372674bb2be83dc570321ce11c445832e-ubuntu-22.04-5.3_opam-2.4-6002683b6d421cfbe1933c41f8fca838"
2025-09-16 10:13.44: Using OBuilder spec:
((from ocaml/opam:ubuntu-22.04-ocaml-5.3@sha256:6c7955e0185185836d263d289dacb46372674bb2be83dc570321ce11c445832e)
(comment ubuntu-22.04-5.3_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 6ef6813522b6ea29933f6451236a1639bdbaec61 || git fetch origin master) && git reset -q --hard 6ef6813522b6ea29933f6451236a1639bdbaec61 && 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.20.2 fmt.0.11.0 logs.0.9.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.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-16 10:13.44: Waiting for resource in pool OCluster
2025-09-16 14:17.59: Waiting for worker…
2025-09-16 14:21.52: Got resource from pool OCluster
Building on doris.caelum.ci.dev
All commits already cached
HEAD is now at efb15d8 Inline `Atomic` and `Ref` ops and unroll
(from ocaml/opam:ubuntu-22.04-ocaml-5.3@sha256:6c7955e0185185836d263d289dacb46372674bb2be83dc570321ce11c445832e)
2025-09-16 14:49.30 ---> using "84d5a24cc34d95fa0893803f1632642c34bae5424a408b1ab6b8f28a98dc9823" from cache
/: (comment ubuntu-22.04-5.3_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 14:49.30 ---> using "5502da855f135ff26bd454556a3a645fad01bd459758f8a80b9b35c45f8ff57d" 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 14:49.30 ---> using "166fc33c0106f626b80f373e55c68935600a09fe26123ce9a8d2741fd563ab44" from cache
/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-142-generic
The OCaml toplevel, version 5.3.0
2.4.1
2025-09-16 14:49.30 ---> using "a1ab8b994d7df1eb0ad30e1a3aa72cad98b7f3caf63955d15f7a0cf6169b5d51" from cache
/src: (workdir /src)
/src: (run (shell "sudo chown opam /src"))
2025-09-16 14:49.30 ---> using "0f742c2519e53e31181ec0f96a8854d5164996ff19726507722bf32dbe19cea7" from cache
/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e 6ef6813522b6ea29933f6451236a1639bdbaec61 || git fetch origin master) && git reset -q --hard 6ef6813522b6ea29933f6451236a1639bdbaec61 && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
* branch master -> FETCH_HEAD
ee24528071..7949ff40d8 master -> origin/master
6ef6813522 Merge pull request #28449 from dra27/ocaml-compiler-msvc
<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from git+file:///home/opam/opam-repository
Already up-to-date.
Nothing to do.
# To update the current shell environment, run: eval $(opam env)
2025-09-16 14:49.30 ---> using "62bf9e1f0fb367a7c1c72bf07d8222eb84c17bb96dd28163df40153e6bc7cfe0" from cache
/src: (copy (src multicore-bench.opam) (dst ./))
2025-09-16 14:49.30 ---> saved as "f59d66456895f090f9577a683f7dfbf588c8de6c607539ddfe384537ed2f9370"
/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 14:49.33 ---> saved as "ba4db20a75402e7e83e1dd7932c356638b2cccd9607025165ce5afeca0b6930c"
/src: (run (network host)
(shell "echo '(lang dune 3.0)' > './dune-project'"))
2025-09-16 14:49.33 ---> saved as "81b6b6d4079fb020589b4d5ea07aca2740faf9d9520ccfda5de91729bc534d87"
/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.20.2 fmt.0.11.0 logs.0.9.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.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://archive.ubuntu.com/ubuntu jammy InRelease
- Get:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]
- Get:3 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [127 kB]
- Get:4 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB]
- Get:5 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [88.8 kB]
- Get:6 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [5627 kB]
- Get:7 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [3624 kB]
- Get:8 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1581 kB]
- Get:9 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [1274 kB]
- Get:10 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [80.3 kB]
- Get:11 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [5441 kB]
- Get:12 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [3311 kB]
- Fetched 21.4 MB in 2s (11.4 MB/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-09-16 14:49.47 ---> saved as "ddcf33ac2cce0dbc0ef8bb9718f819e7f6ad95a0c567b6271553d10192b29e02"
/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.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)
-> installed seq.base
-> 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 ocamlbuild.0.16.1
-> installed topkg.1.1.0
-> installed mtime.2.1.0
-> installed fmt.0.11.0
-> installed astring.0.8.5
-> installed logs.0.9.0
-> installed dune.3.20.2
-> 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 camlp-streams.5.0.1
-> installed multicore-magic.2.3.1
-> installed domain-local-await.1.0.1
-> installed re.1.13.2
-> 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-09-16 14:50.25 ---> saved as "ba518c2b190d5559bc479eda67c605c349da8f3d537642c5c28e5b679f7c3446"
/src: (copy (src .) (dst /src))
2025-09-16 14:50.25 ---> saved as "c429aa84c823662bebaf5853dba687a0b65ab5ce89a05814da1f99720efc5157"
/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:
157.50 M/s
ops over time/get:
2869.93 M/s
ops over time/incr:
180.18 M/s
ops over time/push & pop:
58.92 M/s
ops over time/swap:
131.39 M/s
ops over time/xchg int:
166.38 M/s
time per op/cas int:
6.35 ns
time per op/get:
0.35 ns
time per op/incr:
5.55 ns
time per op/push & pop:
16.97 ns
time per op/swap:
7.61 ns
time per op/xchg int:
6.01 ns
Atomic incr:
ops over time/CAS, 1 domains:
152.03 M/s
ops over time/CAS, 2 domains:
55.56 M/s
ops over time/CAS, 4 domains:
53.11 M/s
ops over time/CAS, 8 domains:
36.25 M/s
ops over time/CAS with backoff, 1 domains:
151.34 M/s
ops over time/CAS with backoff, 2 domains:
65.52 M/s
ops over time/CAS with backoff, 4 domains:
41.59 M/s
ops over time/CAS with backoff, 8 domains:
33.80 M/s
ops over time/Incr, 1 domains:
170.09 M/s
ops over time/Incr, 2 domains:
80.18 M/s
ops over time/Incr, 4 domains:
69.95 M/s
ops over time/Incr, 8 domains:
77.44 M/s
time per op/CAS, 1 domains:
6.58 ns
time per op/CAS, 2 domains:
36.00 ns
time per op/CAS, 4 domains:
75.31 ns
time per op/CAS, 8 domains:
220.69 ns
time per op/CAS with backoff, 1 domains:
6.61 ns
time per op/CAS with backoff, 2 domains:
30.52 ns
time per op/CAS with backoff, 4 domains:
96.18 ns
time per op/CAS with backoff, 8 domains:
236.69 ns
time per op/Incr, 1 domains:
5.88 ns
time per op/Incr, 2 domains:
24.94 ns
time per op/Incr, 4 domains:
57.18 ns
time per op/Incr, 8 domains:
103.31 ns
Bounded_q:
messages over time/1 adder, 1 taker:
2.72 M/s
messages over time/1 adder, 2 takers:
2.22 M/s
messages over time/1 adder, 4 takers:
2.07 M/s
messages over time/2 adders, 1 taker:
3.74 M/s
messages over time/2 adders, 2 takers:
1.84 M/s
messages over time/2 adders, 4 takers:
1.49 M/s
messages over time/4 adders, 1 taker:
1.55 M/s
messages over time/4 adders, 2 takers:
0.98 M/s
messages over time/4 adders, 4 takers:
1.54 M/s
messages over time/one domain:
13.82 M/s
time per message/1 adder, 1 taker:
734.77 ns
time per message/1 adder, 2 takers:
1352.14 ns
time per message/1 adder, 4 takers:
2414.51 ns
time per message/2 adders, 1 taker:
802.23 ns
time per message/2 adders, 2 takers:
2176.57 ns
time per message/2 adders, 4 takers:
4016.73 ns
time per message/4 adders, 1 taker:
3233.04 ns
time per message/4 adders, 2 takers:
6103.38 ns
time per message/4 adders, 4 takers:
5181.41 ns
time per message/one domain:
72.36 ns
Hashtbl:
operations over time/1 worker, 10% reads:
17.32 M/s
operations over time/1 worker, 50% reads:
16.54 M/s
operations over time/1 worker, 90% reads:
14.11 M/s
operations over time/2 workers, 10% reads:
3.21 M/s
operations over time/2 workers, 50% reads:
2.61 M/s
operations over time/2 workers, 90% reads:
4.37 M/s
operations over time/4 workers, 10% reads:
1.56 M/s
operations over time/4 workers, 50% reads:
1.75 M/s
operations over time/4 workers, 90% reads:
3.42 M/s
operations over time/8 workers, 10% reads:
0.93 M/s
operations over time/8 workers, 50% reads:
1.09 M/s
operations over time/8 workers, 90% reads:
2.48 M/s
operations over time/one domain, 10% reads:
23.52 M/s
operations over time/one domain, 50% reads:
23.59 M/s
operations over time/one domain, 90% reads:
32.46 M/s
time per operation/1 worker, 10% reads:
57.73 ns
time per operation/1 worker, 50% reads:
60.46 ns
time per operation/1 worker, 90% reads:
70.85 ns
time per operation/2 workers, 10% reads:
624.01 ns
time per operation/2 workers, 50% reads:
765.04 ns
time per operation/2 workers, 90% reads:
457.60 ns
time per operation/4 workers, 10% reads:
2564.66 ns
time per operation/4 workers, 50% reads:
2290.75 ns
time per operation/4 workers, 90% reads:
1168.07 ns
time per operation/8 workers, 10% reads:
8605.71 ns
time per operation/8 workers, 50% reads:
7353.43 ns
time per operation/8 workers, 90% reads:
3224.44 ns
time per operation/one domain, 10% reads:
42.51 ns
time per operation/one domain, 50% reads:
42.38 ns
time per operation/one domain, 90% reads:
30.81 ns
Queue:
messages over time/one domain:
37.62 M/s
time per message/one domain:
26.58 ns
Ref with Mutex:
ops over time/cas int:
45.66 M/s
ops over time/get:
36.79 M/s
ops over time/incr:
34.69 M/s
ops over time/push & pop:
25.60 M/s
ops over time/swap:
48.99 M/s
ops over time/xchg int:
46.41 M/s
time per op/cas int:
21.90 ns
time per op/get:
27.18 ns
time per op/incr:
28.82 ns
time per op/push & pop:
39.06 ns
time per op/swap:
20.41 ns
time per op/xchg int:
21.55 ns
Ref with [@poll error]:
ops over time/cas int:
235.80 M/s
ops over time/get:
2628.95 M/s
ops over time/incr:
435.42 M/s
ops over time/push & pop:
82.08 M/s
ops over time/swap:
110.46 M/s
ops over time/xchg int:
255.01 M/s
time per op/cas int:
4.24 ns
time per op/get:
0.38 ns
time per op/incr:
2.30 ns
time per op/push & pop:
12.18 ns
time per op/swap:
9.05 ns
time per op/xchg int:
3.92 ns
Stack:
messages over time/one domain:
36.26 M/s
time per message/one domain:
27.58 ns
Unix:
blocking reads over time/1 worker:
1.04 M/s
blocking reads over time/2 workers:
2.08 M/s
blocking reads over time/4 workers:
4.14 M/s
time per blocking read/1 worker:
960.14 ns
time per blocking read/2 workers:
959.98 ns
time per blocking read/4 workers:
965.54 ns
2025-09-16 14:50.39 ---> saved as "090c4ee6ab37caf5a1b5e76fd02db5e28d0cc8fcfaa34c53ab5600fb6da178ae"
Job succeeded
2025-09-16 14:50.39: Job succeeded