2025-06-14 20:09.10: New job: test ocaml-multicore/multicore-bench https://github.com/ocaml-multicore/multicore-bench.git#refs/heads/main (efb15d8562dbdc1ba976ffc574de028e3c11c123) (freebsd-x86_64:freebsd-14.2-4.14_opam-2.3)
Base: freebsd-14.2-ocaml-4.14
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 freebsd-14.2-ocaml-4.14
# freebsd-14.2-4.14_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 a28eb8a148feb4fbc6466fa0791668993513dbde || git fetch origin master) && git reset -q --hard a28eb8a148feb4fbc6466fa0791668993513dbde && 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-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.19.1 fmt.0.10.0 logs.0.8.0 mdx.2.5.0 mtime.2.1.0 multicore-magic.2.3.1 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-config.2 ocaml-options-vanilla.1 ocaml-version.4.0.1 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.3.0.0"
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-06-14 20:09.10: Using cache hint "ocaml-multicore/multicore-bench-freebsd-14.2-ocaml-4.14-freebsd-14.2-4.14_opam-2.3-5e4c8ffe3a82688c609d0a76996fa04b"
2025-06-14 20:09.10: Using OBuilder spec:
((from freebsd-14.2-ocaml-4.14)
(comment freebsd-14.2-4.14_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 a28eb8a148feb4fbc6466fa0791668993513dbde || git fetch origin master) && git reset -q --hard a28eb8a148feb4fbc6466fa0791668993513dbde && 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-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.19.1 fmt.0.10.0 logs.0.8.0 mdx.2.5.0 mtime.2.1.0 multicore-magic.2.3.1 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-config.2 ocaml-options-vanilla.1 ocaml-version.4.0.1 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.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.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-06-14 20:09.10: Waiting for resource in pool OCluster
2025-06-14 20:09.10: Waiting for worker…
2025-06-14 20:09.10: Got resource from pool OCluster
Building on rosemary
All commits already cached
HEAD is now at efb15d8 Inline `Atomic` and `Ref` ops and unroll
(from freebsd-14.2-ocaml-4.14)
2025-06-14 20:09.11 ---> using "e232d73c9161ea3ff94ff4ae2b5a6983da9a9ca98d5185b2db1dbadeae5228e2" from cache
/: (comment freebsd-14.2-4.14_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-06-14 20:09.12 ---> using "5aedfaeff2bc60ce09298f87624d557fac4c416addb6915ab987317e95fa6323" 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-06-14 20:09.13 ---> using "33d10a393b3f49c5577becd825d2bcab91e98bdde15eb554bf0dba345ccb7809" from cache
/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
FreeBSD 14.2-RELEASE-p1
The OCaml toplevel, version 4.14.2
2.3.0
2025-06-14 20:09.13 ---> using "318cf18a0512582a14a586ceb7ba02273510347df5896f5e5d533054ff3c99cc" from cache
/src: (workdir /src)
/src: (run (shell "sudo chown opam /src"))
2025-06-14 20:09.14 ---> using "6fc646c578a950069629f2a24c45eb1d012bef32c9d3cba5f25029d6618e05d7" from cache
/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e a28eb8a148feb4fbc6466fa0791668993513dbde || git fetch origin master) && git reset -q --hard a28eb8a148feb4fbc6466fa0791668993513dbde && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
* branch master -> FETCH_HEAD
0d013e603b..a28eb8a148 master -> origin/master
a28eb8a148 Merge pull request #28017 from maiste/release-dune-3.19.1
<><> 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.5.0
- ocaml-config.3
However, you may "opam upgrade" these packages explicitly, which will ask permission to downgrade or uninstall the conflicting packages.
Nothing to do.
2025-06-14 20:09.14 ---> using "adaa5293b255f3e807e5bebf31f0ec8a092812f028b09db8d8dcee21ea8d9a4d" from cache
/src: (copy (src multicore-bench.opam) (dst ./))
2025-06-14 20:09.15 ---> using "232d1e3f99b658c03467fce9ab6ff2f3d8850ee752b98d34da625c804ef36e5a" from cache
/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-06-14 20:09.15 ---> using "ce4a4f85adc4512b117251d8a4696befd5a485ae5107b39e041c6e08b72b03d2" from cache
/src: (run (network host)
(shell "echo '(lang dune 3.0)' > './dune-project'"))
2025-06-14 20:09.15 ---> using "d4ce61f4f800f91c507e3e080e9b5f80342ee6eefe7e94e488fdaa82cf7c59d7" from cache
/src: (env DEPS "astring.0.8.5 backoff.0.1.1 base-bigarray.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.19.1 fmt.0.10.0 logs.0.8.0 mdx.2.5.0 mtime.2.1.0 multicore-magic.2.3.1 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-config.2 ocaml-options-vanilla.1 ocaml-version.4.0.1 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.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.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 2).
[NOTE] Package ocaml-base-compiler is already installed (current version is 4.14.2).
[NOTE] Package ocaml is already installed (current version is 4.14.2).
[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-bigarray is already installed (current version is base).
2025-06-14 20:09.16 ---> using "71511b4d63d8d67a8d05554f327a5ceba7f6ea6926d4f87db9a65fc080fbf06f" from cache
/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 2).
[NOTE] Package ocaml-base-compiler is already installed (current version is 4.14.2).
[NOTE] Package ocaml is already installed (current version is 4.14.2).
[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-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.19.1
∗ 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.1
∗ 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 3.0.0
<><> 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 csexp.1.5.2 (cached)
⬇ retrieved cmdliner.1.3.0 (cached)
⬇ retrieved domain_shims.0.1.0 (cached)
⬇ retrieved domain-local-await.1.0.1 (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 ocaml-version.4.0.1 (cached)
⬇ retrieved mdx.2.5.0 (cached)
⬇ retrieved ocamlbuild.0.16.1 (cached)
⬇ retrieved re.1.12.0 (cached)
⬇ retrieved ocamlfind.1.9.8 (cached)
⬇ retrieved seq.base (cached)
∗ installed seq.base
⬇ retrieved thread-table.1.0.0 (cached)
⬇ retrieved result.1.5 (cached)
⬇ retrieved topkg.1.0.8 (cached)
⬇ retrieved yojson.3.0.0 (cached)
⬇ retrieved dune.3.19.1 (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.19.1
∗ installed thread-table.1.0.0
∗ installed result.1.5
∗ installed ocaml-version.4.0.1
∗ installed re.1.12.0
∗ installed domain-local-await.1.0.1
∗ installed multicore-magic.2.3.1
∗ installed domain_shims.0.1.0
∗ installed yojson.3.0.0
∗ installed csexp.1.5.2
∗ installed cppo.1.8.0
∗ installed camlp-streams.5.0.1
∗ installed backoff.0.1.1
∗ installed mdx.2.5.0
Done.
2025-06-14 20:09.16 ---> using "c964d216f2fafa71d6e78e68ecd9860ec044e6abb55c9e3c5be436e830fd8eb1" from cache
/src: (copy (src .) (dst /src))
2025-06-14 20:09.17 ---> using "c9e49c1a0cd45d4f7ba95721f5ee6435b1692db2e90278738a29b3944b55187f" from cache
/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:
191.65 M/s
ops over time/get:
1912.06 M/s
ops over time/incr:
299.15 M/s
ops over time/push & pop:
84.16 M/s
ops over time/swap:
97.98 M/s
ops over time/xchg int:
181.96 M/s
time per op/cas int:
5.22 ns
time per op/get:
0.52 ns
time per op/incr:
3.34 ns
time per op/push & pop:
11.88 ns
time per op/swap:
10.21 ns
time per op/xchg int:
5.50 ns
Atomic incr:
ops over time/CAS, 1 domains:
165.21 M/s
ops over time/CAS with backoff, 1 domains:
165.14 M/s
ops over time/Incr, 1 domains:
289.93 M/s
time per op/CAS, 1 domains:
6.05 ns
time per op/CAS with backoff, 1 domains:
6.06 ns
time per op/Incr, 1 domains:
3.45 ns
Bounded_q:
messages over time/one domain:
7.73 M/s
time per message/one domain:
129.36 ns
Hashtbl:
operations over time/1 worker, 10% reads:
9.32 M/s
operations over time/1 worker, 50% reads:
9.16 M/s
operations over time/1 worker, 90% reads:
9.73 M/s
operations over time/2 workers, 10% reads:
9.28 M/s
operations over time/2 workers, 50% reads:
9.13 M/s
operations over time/2 workers, 90% reads:
9.69 M/s
operations over time/4 workers, 10% reads:
8.78 M/s
operations over time/4 workers, 50% reads:
8.68 M/s
operations over time/4 workers, 90% reads:
9.37 M/s
operations over time/8 workers, 10% reads:
7.71 M/s
operations over time/8 workers, 50% reads:
7.87 M/s
operations over time/8 workers, 90% reads:
8.44 M/s
operations over time/one domain, 10% reads:
16.38 M/s
operations over time/one domain, 50% reads:
15.97 M/s
operations over time/one domain, 90% reads:
16.84 M/s
time per operation/1 worker, 10% reads:
107.27 ns
time per operation/1 worker, 50% reads:
109.21 ns
time per operation/1 worker, 90% reads:
102.81 ns
time per operation/2 workers, 10% reads:
215.60 ns
time per operation/2 workers, 50% reads:
218.95 ns
time per operation/2 workers, 90% reads:
206.33 ns
time per operation/4 workers, 10% reads:
455.82 ns
time per operation/4 workers, 50% reads:
460.69 ns
time per operation/4 workers, 90% reads:
426.78 ns
time per operation/8 workers, 10% reads:
1037.41 ns
time per operation/8 workers, 50% reads:
1016.93 ns
time per operation/8 workers, 90% reads:
948.38 ns
time per operation/one domain, 10% reads:
61.06 ns
time per operation/one domain, 50% reads:
62.63 ns
time per operation/one domain, 90% reads:
59.40 ns
Queue:
messages over time/one domain:
31.06 M/s
time per message/one domain:
32.19 ns
Ref with Mutex:
ops over time/cas int:
19.31 M/s
ops over time/get:
20.11 M/s
ops over time/incr:
19.96 M/s
ops over time/push & pop:
18.21 M/s
ops over time/swap:
18.68 M/s
ops over time/xchg int:
19.29 M/s
time per op/cas int:
51.78 ns
time per op/get:
49.74 ns
time per op/incr:
50.11 ns
time per op/push & pop:
54.92 ns
time per op/swap:
53.54 ns
time per op/xchg int:
51.84 ns
Ref with [@poll error]:
ops over time/cas int:
177.62 M/s
ops over time/get:
1908.79 M/s
ops over time/incr:
398.88 M/s
ops over time/push & pop:
84.11 M/s
ops over time/swap:
98.12 M/s
ops over time/xchg int:
182.13 M/s
time per op/cas int:
5.63 ns
time per op/get:
0.52 ns
time per op/incr:
2.51 ns
time per op/push & pop:
11.89 ns
time per op/swap:
10.19 ns
time per op/xchg int:
5.49 ns
Stack:
messages over time/one domain:
35.61 M/s
time per message/one domain:
28.08 ns
Unix:
blocking reads over time/1 worker:
0.49 M/s
time per blocking read/1 worker:
2061.04 ns
2025-06-14 20:09.17 ---> using "b766e8170ab41f7c49a972a78df548ca72643f073c4bf2315296d1c9cd525ee7" from cache
Job succeeded
2025-06-14 20:09.17: Job succeeded