Organisationsocaml-multicoremulticore-benchefb15d (main)freebsd-14.2-5.3_opam-2.3

freebsd-14.2-5.3_opam-2.3

Link Copied
Code Copied

Logs

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-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 efb15d85
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 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-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.19.1 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.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-5.3-freebsd-14.2-5.3_opam-2.3-10db08213cc6d5aab31cc60439730334"
2025-06-14 20:09.10: 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 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-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.19.1 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.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
HEAD is now at 6b750f3 Inline `Atomic` and `Ref` ops and unroll
HEAD is now at efb15d8 Inline `Atomic` and `Ref` ops and unroll


(from freebsd-14.2-ocaml-5.3)
2025-06-14 20:09.11 ---> 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-06-14 20:09.12 ---> 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-06-14 20:09.12 ---> 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-06-14 20:09.13 ---> using "b81c61e28dd398a2621aef3fc778c808fda4399fe66dbfb28a40b55bd44ce32a" from cache


/src: (workdir /src)


/src: (run (shell "sudo chown opam /src"))
2025-06-14 20:09.13 ---> 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 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-compiler.5.5
 ocaml-base-compiler.5.4.0~alpha1 is installed and requires ocaml-compiler = 5.4.0~alpha1
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 "a9420a3ab65801c7f6c4af3f07a913633af0b1411a14a559e5cccec61179c019" from cache


/src: (copy (src multicore-bench.opam) (dst ./))
2025-06-14 20:09.14 ---> using "7ef6091aac2c7d3f2b73d568ce75e739da165fc8ecb10d5421f1deba027b678a" 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 "c47b803d62b76c19ae8036c0a7e54eeae9335c3236e43ca2bf65473906d76d35" from cache


/src: (run (network host)
(shell "echo '(lang dune 3.0)' > './dune-project'"))
2025-06-14 20:09.15 ---> using "932d762389460ff1ab2f5fba19b8600251c95ee5b081c61610075f5718c00b6e" from cache


/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.19.1 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.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 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-06-14 20:09.16 ---> using "2336ddb3413de296f3244268649d8185750c5f76984ea51ea40970b189b31c0e" 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 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.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 backoff.0.1.1  (cached)
 retrieved astring.0.8.5  (cached)
 retrieved cmdliner.1.3.0  (cached)
 retrieved csexp.1.5.2  (cached)
 retrieved cppo.1.8.0  (cached)
 retrieved domain-local-await.1.0.1  (cached)
 retrieved domain_shims.0.1.0  (cached)
 retrieved camlp-streams.5.0.1  (cached)
 retrieved fmt.0.10.0  (cached)
 retrieved logs.0.8.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 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 re.1.12.0
 installed ocaml-version.4.0.1
 installed domain-local-await.1.0.1
 installed multicore-magic.2.3.1
 installed domain_shims.0.1.0
 installed csexp.1.5.2
 installed yojson.3.0.0
 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 "ea7cd8e0b8561c8097a97bd00786d851b75da4103d22ccf03f020a0a111ad05a" from cache


/src: (copy (src .) (dst /src))
2025-06-14 20:09.16 ---> using "7b5492f2366003d51a52fd2210fc674fe2e8019419e77613aca4f034d5c35e2f" 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:
75.29 M/s
ops over time/get:
1917.02 M/s
ops over time/incr:
92.17 M/s
ops over time/push & pop:
40.15 M/s
ops over time/swap:
50.88 M/s
ops over time/xchg int:
85.59 M/s
time per op/cas int:
13.28 ns
time per op/get:
0.52 ns
time per op/incr:
10.85 ns
time per op/push & pop:
24.91 ns
time per op/swap:
19.65 ns
time per op/xchg int:
11.68 ns
Atomic incr:
ops over time/CAS, 1 domains:
56.39 M/s
ops over time/CAS, 2 domains:
11.86 M/s
ops over time/CAS, 4 domains:
18.56 M/s
ops over time/CAS, 8 domains:
15.48 M/s
ops over time/CAS with backoff, 1 domains:
40.70 M/s
ops over time/CAS with backoff, 2 domains:
40.24 M/s
ops over time/CAS with backoff, 4 domains:
32.07 M/s
ops over time/CAS with backoff, 8 domains:
12.60 M/s
ops over time/Incr, 1 domains:
90.47 M/s
ops over time/Incr, 2 domains:
48.88 M/s
ops over time/Incr, 4 domains:
47.95 M/s
ops over time/Incr, 8 domains:
50.61 M/s
time per op/CAS, 1 domains:
17.73 ns
time per op/CAS, 2 domains:
168.69 ns
time per op/CAS, 4 domains:
215.54 ns
time per op/CAS, 8 domains:
516.93 ns
time per op/CAS with backoff, 1 domains:
24.57 ns
time per op/CAS with backoff, 2 domains:
49.70 ns
time per op/CAS with backoff, 4 domains:
124.73 ns
time per op/CAS with backoff, 8 domains:
634.91 ns
time per op/Incr, 1 domains:
11.05 ns
time per op/Incr, 2 domains:
40.91 ns
time per op/Incr, 4 domains:
83.42 ns
time per op/Incr, 8 domains:
158.08 ns
Bounded_q:
messages over time/1 adder, 1 taker:
3.35 M/s
messages over time/1 adder, 2 takers:
2.84 M/s
messages over time/1 adder, 4 takers:
2.45 M/s
messages over time/2 adders, 1 taker:
3.18 M/s
messages over time/2 adders, 2 takers:
2.86 M/s
messages over time/2 adders, 4 takers:
2.54 M/s
messages over time/4 adders, 1 taker:
4.32 M/s
messages over time/4 adders, 2 takers:
3.53 M/s
messages over time/4 adders, 4 takers:
2.43 M/s
messages over time/one domain:
6.91 M/s
time per message/1 adder, 1 taker:
596.46 ns
time per message/1 adder, 2 takers:
1056.39 ns
time per message/1 adder, 4 takers:
2039.75 ns
time per message/2 adders, 1 taker:
944.53 ns
time per message/2 adders, 2 takers:
1397.13 ns
time per message/2 adders, 4 takers:
2359.73 ns
time per message/4 adders, 1 taker:
1156.23 ns
time per message/4 adders, 2 takers:
1700.83 ns
time per message/4 adders, 4 takers:
3298.85 ns
time per message/one domain:
144.77 ns
Hashtbl:
operations over time/1 worker, 10% reads:
9.63 M/s
operations over time/1 worker, 50% reads:
9.43 M/s
operations over time/1 worker, 90% reads:
9.97 M/s
operations over time/2 workers, 10% reads:
4.61 M/s
operations over time/2 workers, 50% reads:
2.46 M/s
operations over time/2 workers, 90% reads:
5.30 M/s
operations over time/4 workers, 10% reads:
2.28 M/s
operations over time/4 workers, 50% reads:
2.06 M/s
operations over time/4 workers, 90% reads:
3.08 M/s
operations over time/8 workers, 10% reads:
1.97 M/s
operations over time/8 workers, 50% reads:
2.19 M/s
operations over time/8 workers, 90% reads:
3.00 M/s
operations over time/one domain, 10% reads:
17.44 M/s
operations over time/one domain, 50% reads:
17.88 M/s
operations over time/one domain, 90% reads:
20.15 M/s
time per operation/1 worker, 10% reads:
103.87 ns
time per operation/1 worker, 50% reads:
106.09 ns
time per operation/1 worker, 90% reads:
100.34 ns
time per operation/2 workers, 10% reads:
434.30 ns
time per operation/2 workers, 50% reads:
811.63 ns
time per operation/2 workers, 90% reads:
377.03 ns
time per operation/4 workers, 10% reads:
1757.33 ns
time per operation/4 workers, 50% reads:
1939.16 ns
time per operation/4 workers, 90% reads:
1298.10 ns
time per operation/8 workers, 10% reads:
4063.61 ns
time per operation/8 workers, 50% reads:
3660.77 ns
time per operation/8 workers, 90% reads:
2666.48 ns
time per operation/one domain, 10% reads:
57.35 ns
time per operation/one domain, 50% reads:
55.94 ns
time per operation/one domain, 90% reads:
49.63 ns
Queue:
messages over time/one domain:
25.01 M/s
time per message/one domain:
39.99 ns
Ref with Mutex:
ops over time/cas int:
17.68 M/s
ops over time/get:
18.65 M/s
ops over time/incr:
18.94 M/s
ops over time/push & pop:
15.67 M/s
ops over time/swap:
17.10 M/s
ops over time/xchg int:
17.68 M/s
time per op/cas int:
56.55 ns
time per op/get:
53.62 ns
time per op/incr:
52.79 ns
time per op/push & pop:
63.82 ns
time per op/swap:
58.49 ns
time per op/xchg int:
56.56 ns
Ref with [@poll error]:
ops over time/cas int:
132.00 M/s
ops over time/get:
1916.77 M/s
ops over time/incr:
399.30 M/s
ops over time/push & pop:
59.03 M/s
ops over time/swap:
83.99 M/s
ops over time/xchg int:
135.47 M/s
time per op/cas int:
7.58 ns
time per op/get:
0.52 ns
time per op/incr:
2.50 ns
time per op/push & pop:
16.94 ns
time per op/swap:
11.91 ns
time per op/xchg int:
7.38 ns
Stack:
messages over time/one domain:
30.94 M/s
time per message/one domain:
32.32 ns
Unix:
blocking reads over time/1 worker:
2.09 M/s
blocking reads over time/2 workers:
4.19 M/s
blocking reads over time/4 workers:
8.37 M/s
time per blocking read/1 worker:
477.46 ns
time per blocking read/2 workers:
477.30 ns
time per blocking read/4 workers:
477.91 ns
2025-06-14 20:09.17 ---> using "b652d545b1e937f92478ed4459102378c1a6200b5cdfa2e411e2d4234a6b5d34" from cache
Job succeeded
2025-06-14 20:09.17: Job succeeded