2025-05-02 14:58.59: New job: test ocaml-multicore/multicore-bench https://github.com/ocaml-multicore/multicore-bench.git#refs/heads/main (deca5287e35206850ec28880adae0705730115e9) (freebsd-x86_64:freebsd-14.2-5.3_opam-2.3)
Base: freebsd-14.2-ocaml-5.3
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 deca5287
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM freebsd-14.2-ocaml-5.3
# freebsd-14.2-5.3_opam-2.3
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
WORKDIR /src
RUN sudo ln -f /usr/local/bin/opam-2.3 /usr/local/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-02 14:58.59: Using cache hint "ocaml-multicore/multicore-bench-freebsd-14.2-ocaml-5.3-freebsd-14.2-5.3_opam-2.3-fdb66d4783b2d787160404816b7d94dd"
2025-05-02 14:58.59: Using OBuilder spec:
((from freebsd-14.2-ocaml-5.3)
(comment freebsd-14.2-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/local/bin/opam-2.3 /usr/local/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-02 14:58.59: Waiting for resource in pool OCluster
2025-05-02 17:03.40: Waiting for worker…
2025-05-02 18:25.00: Got resource from pool OCluster
Building on summer
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
Initialized empty Git repository in /obuilder/state/git/multicore-bench.git-b64f3a44a0cd11cb5d9a386b4ded860bff164371/.git/
HEAD is now at deca528 Ignore results from ops on `ref` benchmarks
(from freebsd-14.2-ocaml-5.3)
2025-05-02 18:11.22 ---> using "47c9a03b962be450225081ed69acde1f5c6dadb6d1106d9b1a8b4fd61c2defa6" from cache
/: (comment freebsd-14.2-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/local/bin/opam-2.3 /usr/local/bin/opam"))
2025-05-02 18:11.22 ---> using "6c919feff42b8acbece064f547886f17e62a0f8c652c95803d5cc1a0edc05bf0" from cache
/src: (run (shell "opam init --reinit -ni"))
No configuration file found, using 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.1 to version 2.2, which can't be reverted.
You may want to back it up before going further.
Continue? [y/n] y
[NOTE] The 'jobs' option was reset, its value was 1 and its new value will vary according to the current number of cores on your machine. You can restore the fixed value using:
opam option jobs=1 --global
Format upgrade done.
<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] no changes from git+file:///home/opam/opam-repository
2025-05-02 18:11.23 ---> using "ef1aecc2d79e0d6d7a69975e03fbee48aae321cc5ded967c4b85817abcd33408" from cache
/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
FreeBSD 14.2-RELEASE-p1
The OCaml toplevel, version 5.3.0
2.3.0
2025-05-02 18:11.23 ---> using "b81c61e28dd398a2621aef3fc778c808fda4399fe66dbfb28a40b55bd44ce32a" from cache
/src: (workdir /src)
/src: (run (shell "sudo chown opam /src"))
2025-05-02 18:11.23 ---> using "46859cd3f1ed5f6081f98d282b27cc9fcab2b0b04b4be45ac52d723eb6d8a59e" 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"))
From https://github.com/ocaml/opam-repository
* branch master -> FETCH_HEAD
48e47466f5..35eb2f107a master -> origin/master
35eb2f107a Merge pull request #27838 from maiste/release-dune-3.18.2
<><> 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).
The following packages are not being upgraded because the new versions conflict with other installed packages:
- ocaml.5.4.0
- ocaml-compiler.5.4
∗ ocaml-base-compiler.5.3.0 is installed and requires ocaml-compiler = 5.3.0
However, you may "opam upgrade" these packages explicitly, which will ask permission to downgrade or uninstall the conflicting packages.
Nothing to do.
2025-05-02 18:11.24 ---> using "ed83e18309f19cd8f5056b6b0ea4d9f4abe4b4b5940c53029385f326c0d414f5" from cache
/src: (copy (src multicore-bench.opam) (dst ./))
2025-05-02 18:11.27 ---> saved as "3b03f7cfe64085c4223456461e93fdb02b3262492958931b581cb9e3d54c7ca8"
/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-02 18:11.30 ---> saved as "bf2de1bdcd52640af232806c2e5fd1f96b32a528416a392f5e510c1171946c75"
/src: (run (network host)
(shell "echo '(lang dune 3.0)' > './dune-project'"))
2025-05-02 18:11.31 ---> saved as "21eddfe4c1078df29cc59a2a5e036a522f0efdb5ea332c88350290453beeeea4"
/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"))
[WARNING] Unknown update command for bsd, skipping system update
<><> 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-02 18:12.02 ---> saved as "87c911ec9ff1f1705e7b1225bccf55c33408f1c7fd0f8d7f88dffede408ac7f9"
/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
∗ astring 0.8.5
∗ backoff 0.1.1
∗ 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-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
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
⬇ 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 astring.0.8.5 (cached)
⬇ retrieved fmt.0.10.0 (cached)
⬇ retrieved logs.0.8.0 (cached)
⬇ retrieved mdx.2.5.0 (cached)
⬇ retrieved mtime.2.1.0 (cached)
⬇ retrieved ocaml-version.4.0.0 (cached)
⬇ retrieved multicore-magic.2.3.1 (cached)
⬇ retrieved ocamlfind.1.9.8 (cached)
⬇ retrieved ocamlbuild.0.16.1 (cached)
⬇ retrieved result.1.5 (cached)
⬇ retrieved seq.base (cached)
∗ installed seq.base
⬇ retrieved thread-table.1.0.0 (cached)
⬇ retrieved re.1.12.0 (cached)
⬇ retrieved topkg.1.0.8 (cached)
⬇ retrieved yojson.2.2.2 (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 backoff.0.1.1
∗ installed domain_shims.0.1.0
∗ installed camlp-streams.5.0.1
∗ installed csexp.1.5.2
∗ installed ocaml-version.4.0.0
∗ installed result.1.5
∗ installed thread-table.1.0.0
∗ installed multicore-magic.2.3.1
∗ installed cppo.1.8.0
∗ installed domain-local-await.1.0.1
∗ installed yojson.2.2.2
∗ installed re.1.12.0
∗ installed mdx.2.5.0
Done.
2025-05-02 18:14.59 ---> saved as "6a12c40d013fbdc4f97325990f085a8ee4d720ad29c84346a80a109b929dc5a4"
/src: (copy (src .) (dst /src))
2025-05-02 18:15.03 ---> saved as "d34f569aafdfee6b98127bd34cabda9c187383fd6bd2a256bf7039c7627e727a"
/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:
43.41 M/s
ops over time/get:
284.67 M/s
ops over time/incr:
70.14 M/s
ops over time/push & pop:
26.12 M/s
ops over time/swap:
30.88 M/s
ops over time/xchg int:
52.13 M/s
time per op/cas int:
23.03 ns
time per op/get:
3.51 ns
time per op/incr:
14.26 ns
time per op/push & pop:
38.29 ns
time per op/swap:
32.38 ns
time per op/xchg int:
19.18 ns
Atomic incr:
ops over time/CAS, 1 domains:
36.77 M/s
ops over time/CAS, 2 domains:
9.25 M/s
ops over time/CAS, 4 domains:
6.63 M/s
ops over time/CAS, 8 domains:
4.49 M/s
ops over time/CAS with backoff, 1 domains:
43.15 M/s
ops over time/CAS with backoff, 2 domains:
36.82 M/s
ops over time/CAS with backoff, 4 domains:
32.75 M/s
ops over time/CAS with backoff, 8 domains:
30.46 M/s
ops over time/Incr, 1 domains:
64.47 M/s
ops over time/Incr, 2 domains:
32.17 M/s
ops over time/Incr, 4 domains:
31.47 M/s
ops over time/Incr, 8 domains:
28.94 M/s
time per op/CAS, 1 domains:
27.19 ns
time per op/CAS, 2 domains:
216.19 ns
time per op/CAS, 4 domains:
603.58 ns
time per op/CAS, 8 domains:
1782.75 ns
time per op/CAS with backoff, 1 domains:
23.18 ns
time per op/CAS with backoff, 2 domains:
54.33 ns
time per op/CAS with backoff, 4 domains:
122.13 ns
time per op/CAS with backoff, 8 domains:
262.68 ns
time per op/Incr, 1 domains:
15.51 ns
time per op/Incr, 2 domains:
62.17 ns
time per op/Incr, 4 domains:
127.11 ns
time per op/Incr, 8 domains:
276.46 ns
Bounded_q:
messages over time/1 adder, 1 taker:
2.76 M/s
messages over time/1 adder, 2 takers:
1.41 M/s
messages over time/1 adder, 4 takers:
0.32 M/s
messages over time/2 adders, 1 taker:
2.48 M/s
messages over time/2 adders, 2 takers:
1.90 M/s
messages over time/2 adders, 4 takers:
1.48 M/s
messages over time/4 adders, 1 taker:
2.66 M/s
messages over time/4 adders, 2 takers:
2.28 M/s
messages over time/4 adders, 4 takers:
1.73 M/s
messages over time/one domain:
4.64 M/s
time per message/1 adder, 1 taker:
725.63 ns
time per message/1 adder, 2 takers:
2131.91 ns
time per message/1 adder, 4 takers:
15449.32 ns
time per message/2 adders, 1 taker:
1209.96 ns
time per message/2 adders, 2 takers:
2100.47 ns
time per message/2 adders, 4 takers:
4045.40 ns
time per message/4 adders, 1 taker:
1882.35 ns
time per message/4 adders, 2 takers:
2632.16 ns
time per message/4 adders, 4 takers:
4633.47 ns
time per message/one domain:
215.30 ns
Hashtbl:
operations over time/1 worker, 10% reads:
4.57 M/s
operations over time/1 worker, 50% reads:
7.58 M/s
operations over time/1 worker, 90% reads:
7.54 M/s
operations over time/2 workers, 10% reads:
2.38 M/s
operations over time/2 workers, 50% reads:
3.41 M/s
operations over time/2 workers, 90% reads:
4.15 M/s
operations over time/4 workers, 10% reads:
2.07 M/s
operations over time/4 workers, 50% reads:
2.44 M/s
operations over time/4 workers, 90% reads:
2.79 M/s
operations over time/8 workers, 10% reads:
1.96 M/s
operations over time/8 workers, 50% reads:
2.07 M/s
operations over time/8 workers, 90% reads:
2.43 M/s
operations over time/one domain, 10% reads:
11.51 M/s
operations over time/one domain, 50% reads:
11.73 M/s
operations over time/one domain, 90% reads:
12.16 M/s
time per operation/1 worker, 10% reads:
219.05 ns
time per operation/1 worker, 50% reads:
132.01 ns
time per operation/1 worker, 90% reads:
132.61 ns
time per operation/2 workers, 10% reads:
838.74 ns
time per operation/2 workers, 50% reads:
586.45 ns
time per operation/2 workers, 90% reads:
481.86 ns
time per operation/4 workers, 10% reads:
1936.58 ns
time per operation/4 workers, 50% reads:
1637.73 ns
time per operation/4 workers, 90% reads:
1431.52 ns
time per operation/8 workers, 10% reads:
4080.47 ns
time per operation/8 workers, 50% reads:
3857.32 ns
time per operation/8 workers, 90% reads:
3297.25 ns
time per operation/one domain, 10% reads:
86.86 ns
time per operation/one domain, 50% reads:
85.22 ns
time per operation/one domain, 90% reads:
82.21 ns
Queue:
messages over time/one domain:
14.63 M/s
time per message/one domain:
68.33 ns
Ref with Mutex:
ops over time/cas int:
9.03 M/s
ops over time/get:
11.21 M/s
ops over time/incr:
10.11 M/s
ops over time/push & pop:
8.28 M/s
ops over time/swap:
8.84 M/s
ops over time/xchg int:
9.27 M/s
time per op/cas int:
110.71 ns
time per op/get:
89.23 ns
time per op/incr:
98.93 ns
time per op/push & pop:
120.79 ns
time per op/swap:
113.09 ns
time per op/xchg int:
107.87 ns
Ref with [@poll error]:
ops over time/cas int:
86.91 M/s
ops over time/get:
320.99 M/s
ops over time/incr:
276.54 M/s
ops over time/push & pop:
33.95 M/s
ops over time/swap:
49.25 M/s
ops over time/xchg int:
80.16 M/s
time per op/cas int:
11.51 ns
time per op/get:
3.12 ns
time per op/incr:
3.62 ns
time per op/push & pop:
29.45 ns
time per op/swap:
20.31 ns
time per op/xchg int:
12.47 ns
Stack:
messages over time/one domain:
19.76 M/s
time per message/one domain:
50.61 ns
Unix:
blocking reads over time/1 worker:
1.35 M/s
blocking reads over time/2 workers:
2.60 M/s
blocking reads over time/4 workers:
3.99 M/s
time per blocking read/1 worker:
741.78 ns
time per blocking read/2 workers:
768.06 ns
time per blocking read/4 workers:
1001.65 ns
2025-05-02 18:15.33 ---> saved as "46cb2cb6d7c0bc51ec78bbe3afcea4feecae0edc7e2e94fbe1644a72018be9e1"
Job succeeded
2025-05-02 18:29.13: Job succeeded