2025-05-10 12:26.47: New job: test ocaml-multicore/multicore-bench https://github.com/ocaml-multicore/multicore-bench.git#refs/heads/main (adb1f6a5d252f2a3952c65542f8dba1226ae5c3e) (linux-x86_64:debian-12-5.3+flambda_opam-2.3)
Base: ocaml/opam:debian-12-ocaml-5.3-flambda@sha256:102e61eadd02c8453b955d72f3a495806f17f5de549d3643cc924c320fabd8f4
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-flambda@sha256:102e61eadd02c8453b955d72f3a495806f17f5de549d3643cc924c320fabd8f4
# debian-12-5.3+flambda_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-compiler.5.3.0 ocaml-config.3 ocaml-variants.5.3.0+options 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.47: Using cache hint "ocaml-multicore/multicore-bench-ocaml/opam:debian-12-ocaml-5.3-flambda@sha256:102e61eadd02c8453b955d72f3a495806f17f5de549d3643cc924c320fabd8f4-debian-12-5.3+flambda_opam-2.3-5f6361cdc44d847134c15785efd09bbf"
2025-05-10 12:26.47: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-5.3-flambda@sha256:102e61eadd02c8453b955d72f3a495806f17f5de549d3643cc924c320fabd8f4)
(comment debian-12-5.3+flambda_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-compiler.5.3.0 ocaml-config.3 ocaml-variants.5.3.0+options 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.47: Waiting for resource in pool OCluster
2025-05-10 13:36.34: Waiting for worker…
2025-05-10 13:40.17: Got resource from pool OCluster
Building on x86-bm-c1.sw.ocaml.org
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-flambda@sha256:102e61eadd02c8453b955d72f3a495806f17f5de549d3643cc924c320fabd8f4)
2025-05-10 13:40.17 ---> using "21ca48779d7c8771accdf60eb888012ef48685ba9d539046f9f2e6ce2db9408d" from cache
/: (comment debian-12-5.3+flambda_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:40.17 ---> using "c3f3aa93c3355a64826565104635ed2c75e43663faf3bb1239283e2d0babab60" 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-10 13:40.17 ---> using "292270fbfb1491d8dafae52ea17d8b381a33866b2212919c484f3fdce286b697" 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:40.17 ---> using "3a794d0297d6d3662e91621faf2070f604c02f28ce3386d50957daf0a3b38339" from cache
/src: (workdir /src)
/src: (run (shell "sudo chown opam /src"))
2025-05-10 13:40.17 ---> using "ec8f95289b8846ee13cf13cb3aea5f3aff51a6aaee7942d4311969425d84ec7c" 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:40.17 ---> using "f2e9e0b22988e1345c02f7d102a6beb60e567e3a312671bce8f7d453a6e72e1f" from cache
/src: (copy (src multicore-bench.opam) (dst ./))
2025-05-10 13:40.17 ---> saved as "ef1b78da2ef6ec0c89748d363041b0b04675e420687e9be331a54706b590e007"
/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:40.21 ---> saved as "1527a35ff2765b49708473a3a68aa9148890399641729d3fd6adaa27d5b406da"
/src: (run (network host)
(shell "echo '(lang dune 3.0)' > './dune-project'"))
2025-05-10 13:40.21 ---> saved as "e1056a525ea47bfdcf6c891f7d3eed2dbf900c93de0936a285b2535b11f29c9e"
/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-compiler.5.3.0 ocaml-config.3 ocaml-variants.5.3.0+options 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 amd64 Packages [258 kB]
- Fetched 361 kB in 0s (847 kB/s)
- Reading package lists...
-
<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[multicore-bench.dev] synchronised (file:///src)
[NOTE] Package ocaml-variants is already installed (current version is 5.3.0+options).
[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 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:40.39 ---> saved as "c2b95e4c0f055d42638d9a0fecabe914173bf13ca41073275acda9dd1765da8f"
/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam install $DEPS"))
[NOTE] Package ocaml-variants is already installed (current version is 5.3.0+options).
[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 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 astring.0.8.5 (cached)
-> retrieved backoff.0.1.1 (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 yojson.2.2.2 (cached)
-> retrieved topkg.1.0.8 (cached)
-> retrieved dune.3.18.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 thread-table.1.0.0
-> installed csexp.1.5.2
-> installed multicore-magic.2.3.1
-> installed result.1.5
-> installed ocaml-version.4.0.0
-> installed backoff.0.1.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:42.19 ---> saved as "bfabe17f089473e1537850fc78aeec456d4d2584404d2afa48a21eb9d7516e78"
/src: (copy (src .) (dst /src))
2025-05-10 13:42.19 ---> saved as "728f190a06df48b7bdf5f78e93c1eea75b5539164d942731b38f1acd4dc807ec"
/src: (run (shell "opam exec -- dune build @install @check @runtest && rm -rf _build"))
(cd _build/default && /home/opam/.opam/5.3/bin/ocamlopt.opt -w @1..3@5..28@31..39@43@46..47@49..57@61..62@67@69-40 -strict-sequence -strict-formats -short-paths -keep-locs -g -I lib/.multicore_bench.objs/byte -I lib/.multicore_bench.objs/native -I /home/opam/.opam/5.3/lib/backoff -I /home/opam/.opam/5.3/lib/domain-local-await -I /home/opam/.opam/5.3/lib/mtime -I /home/opam/.opam/5.3/lib/mtime/clock -I /home/opam/.opam/5.3/lib/multicore-magic -I /home/opam/.opam/5.3/lib/ocaml/str -I /home/opam/.opam/5.3/lib/yojson -intf-suffix .ml -no-alias-deps -opaque -open Multicore_bench__ -o lib/.multicore_bench.objs/native/multicore_bench__Times.cmx -c -impl lib/times.ml)
File "_none_", line 1:
Warning 58 [no-cmx-file]: no cmx file was found in path for module Thread_table, and its interface was not compiled with -opaque
(cd _build/default/bench && ./main.exe -brief)
Atomic:
ops over time/cas int:
30.13 M/s
ops over time/get:
159.20 M/s
ops over time/incr:
35.84 M/s
ops over time/push & pop:
13.15 M/s
ops over time/swap:
28.03 M/s
ops over time/xchg int:
32.19 M/s
time per op/cas int:
33.19 ns
time per op/get:
6.28 ns
time per op/incr:
27.90 ns
time per op/push & pop:
76.02 ns
time per op/swap:
35.67 ns
time per op/xchg int:
31.07 ns
Atomic incr:
ops over time/CAS, 1 domains:
61.89 M/s
ops over time/CAS, 2 domains:
12.51 M/s
ops over time/CAS, 4 domains:
5.48 M/s
ops over time/CAS, 8 domains:
4.05 M/s
ops over time/CAS with backoff, 1 domains:
47.67 M/s
ops over time/CAS with backoff, 2 domains:
34.01 M/s
ops over time/CAS with backoff, 4 domains:
11.73 M/s
ops over time/CAS with backoff, 8 domains:
22.09 M/s
ops over time/Incr, 1 domains:
74.52 M/s
ops over time/Incr, 2 domains:
38.14 M/s
ops over time/Incr, 4 domains:
34.40 M/s
ops over time/Incr, 8 domains:
30.82 M/s
time per op/CAS, 1 domains:
16.16 ns
time per op/CAS, 2 domains:
159.88 ns
time per op/CAS, 4 domains:
730.10 ns
time per op/CAS, 8 domains:
1977.38 ns
time per op/CAS with backoff, 1 domains:
20.98 ns
time per op/CAS with backoff, 2 domains:
58.81 ns
time per op/CAS with backoff, 4 domains:
341.14 ns
time per op/CAS with backoff, 8 domains:
362.21 ns
time per op/Incr, 1 domains:
13.42 ns
time per op/Incr, 2 domains:
52.44 ns
time per op/Incr, 4 domains:
116.26 ns
time per op/Incr, 8 domains:
259.60 ns
Bounded_q:
messages over time/1 adder, 1 taker:
1.63 M/s
messages over time/1 adder, 2 takers:
0.81 M/s
messages over time/1 adder, 4 takers:
0.42 M/s
messages over time/2 adders, 1 taker:
2.62 M/s
messages over time/2 adders, 2 takers:
1.43 M/s
messages over time/2 adders, 4 takers:
0.65 M/s
messages over time/4 adders, 1 taker:
1.19 M/s
messages over time/4 adders, 2 takers:
0.95 M/s
messages over time/4 adders, 4 takers:
0.70 M/s
messages over time/one domain:
2.89 M/s
time per message/1 adder, 1 taker:
1230.70 ns
time per message/1 adder, 2 takers:
3722.48 ns
time per message/1 adder, 4 takers:
11945.23 ns
time per message/2 adders, 1 taker:
1144.88 ns
time per message/2 adders, 2 takers:
2805.91 ns
time per message/2 adders, 4 takers:
9203.81 ns
time per message/4 adders, 1 taker:
4201.79 ns
time per message/4 adders, 2 takers:
6326.49 ns
time per message/4 adders, 4 takers:
11445.67 ns
time per message/one domain:
345.64 ns
Hashtbl:
operations over time/1 worker, 10% reads:
6.47 M/s
operations over time/1 worker, 50% reads:
6.65 M/s
operations over time/1 worker, 90% reads:
7.90 M/s
operations over time/2 workers, 10% reads:
2.20 M/s
operations over time/2 workers, 50% reads:
3.95 M/s
operations over time/2 workers, 90% reads:
4.33 M/s
operations over time/4 workers, 10% reads:
1.63 M/s
operations over time/4 workers, 50% reads:
3.09 M/s
operations over time/4 workers, 90% reads:
3.44 M/s
operations over time/8 workers, 10% reads:
1.29 M/s
operations over time/8 workers, 50% reads:
1.79 M/s
operations over time/8 workers, 90% reads:
2.19 M/s
operations over time/one domain, 10% reads:
15.94 M/s
operations over time/one domain, 50% reads:
18.84 M/s
operations over time/one domain, 90% reads:
18.15 M/s
time per operation/1 worker, 10% reads:
154.56 ns
time per operation/1 worker, 50% reads:
150.40 ns
time per operation/1 worker, 90% reads:
126.64 ns
time per operation/2 workers, 10% reads:
908.25 ns
time per operation/2 workers, 50% reads:
506.28 ns
time per operation/2 workers, 90% reads:
462.00 ns
time per operation/4 workers, 10% reads:
2448.94 ns
time per operation/4 workers, 50% reads:
1293.07 ns
time per operation/4 workers, 90% reads:
1164.48 ns
time per operation/8 workers, 10% reads:
6199.98 ns
time per operation/8 workers, 50% reads:
4462.56 ns
time per operation/8 workers, 90% reads:
3647.58 ns
time per operation/one domain, 10% reads:
62.73 ns
time per operation/one domain, 50% reads:
53.09 ns
time per operation/one domain, 90% reads:
55.09 ns
Queue:
messages over time/one domain:
14.74 M/s
time per message/one domain:
67.85 ns
Ref with Mutex:
ops over time/cas int:
5.88 M/s
ops over time/get:
8.83 M/s
ops over time/incr:
8.18 M/s
ops over time/push & pop:
5.52 M/s
ops over time/swap:
4.71 M/s
ops over time/xchg int:
6.97 M/s
time per op/cas int:
169.93 ns
time per op/get:
113.30 ns
time per op/incr:
122.25 ns
time per op/push & pop:
181.27 ns
time per op/swap:
212.13 ns
time per op/xchg int:
143.54 ns
Ref with [@poll error]:
ops over time/cas int:
107.34 M/s
ops over time/get:
193.97 M/s
ops over time/incr:
149.76 M/s
ops over time/push & pop:
30.57 M/s
ops over time/swap:
62.79 M/s
ops over time/xchg int:
104.21 M/s
time per op/cas int:
9.32 ns
time per op/get:
5.16 ns
time per op/incr:
6.68 ns
time per op/push & pop:
32.72 ns
time per op/swap:
15.93 ns
time per op/xchg int:
9.60 ns
Stack:
messages over time/one domain:
23.67 M/s
time per message/one domain:
42.24 ns
Unix:
blocking reads over time/1 worker:
0.44 M/s
blocking reads over time/2 workers:
1.05 M/s
blocking reads over time/4 workers:
2.26 M/s
time per blocking read/1 worker:
2277.95 ns
time per blocking read/2 workers:
1903.49 ns
time per blocking read/4 workers:
1770.38 ns
2025-05-10 13:42.43 ---> saved as "d861b28c337e54da348ea35a7fdf53c854e3255b5e61982bb41a7df7aa595658"
Job succeeded
2025-05-10 13:42.43: Job succeeded