2025-02-05 08:34.24: New job: test ocaml-multicore/multicore-bench https://github.com/ocaml-multicore/multicore-bench.git#refs/heads/main (deca5287e35206850ec28880adae0705730115e9) (freebsd-x86_64:freebsd-14.1-5.3_opam-2.3)
Base: freebsd-14.1-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.1-ocaml-5.3
# freebsd-14.1-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 3ee951993de4d18fd335fcea4ac7375cab56a637 || git fetch origin master) && git reset -q --hard 3ee951993de4d18fd335fcea4ac7375cab56a637 && 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.17.2 fmt.0.9.0 logs.0.7.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.3.7.3 ocamlbuild.0.15.0 ocamlfind.1.9.8 re.1.12.0 result.1.5 seq.base thread-table.1.0.0 topkg.1.0.7 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-02-05 08:34.24: Using cache hint "ocaml-multicore/multicore-bench-freebsd-14.1-ocaml-5.3-freebsd-14.1-5.3_opam-2.3-bbdea2f49ee045baf858fda2a2111a8d"
2025-02-05 08:34.24: Using OBuilder spec:
((from freebsd-14.1-ocaml-5.3)
(comment freebsd-14.1-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 3ee951993de4d18fd335fcea4ac7375cab56a637 || git fetch origin master) && git reset -q --hard 3ee951993de4d18fd335fcea4ac7375cab56a637 && 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.17.2 fmt.0.9.0 logs.0.7.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.3.7.3 ocamlbuild.0.15.0 ocamlfind.1.9.8 re.1.12.0 result.1.5 seq.base thread-table.1.0.0 topkg.1.0.7 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-02-05 08:34.24: Waiting for resource in pool OCluster
2025-02-05 09:13.07: Waiting for worker…
2025-02-05 10:39.15: Got resource from pool OCluster
Building on spring
All commits already cached
HEAD is now at deca528 Ignore results from ops on `ref` benchmarks
(from freebsd-14.1-ocaml-5.3)
2025-02-05 10:26.49 ---> using "fa4c65a721275037aa0f851d49090cd38fc202c0147147d39fba5c0e4d9b16e6" from cache
/: (comment freebsd-14.1-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-02-05 10:26.50 ---> using "707c7e294765dd0c27e269a5b580560b225237a2f86c98e49e9b55231281b700" 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-02-05 10:26.50 ---> using "45749df81b3980750ffa6bca410a05b72322147ab2725b654dada75710103de9" from cache
/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
FreeBSD 14.1-RELEASE-p5
The OCaml toplevel, version 5.3.0
2.3.0
2025-02-05 10:26.51 ---> using "f64bb7c3e303337c7ff569b67d81a7b6dbef733cbc8fc2ef78eebdda8d34b5e9" from cache
/src: (workdir /src)
/src: (run (shell "sudo chown opam /src"))
2025-02-05 10:26.51 ---> using "b5dd81919ce8bb132a9ebf4541726236220f50fa3e495f7f25632fce1e88b154" from cache
/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e 3ee951993de4d18fd335fcea4ac7375cab56a637 || git fetch origin master) && git reset -q --hard 3ee951993de4d18fd335fcea4ac7375cab56a637 && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
* branch master -> FETCH_HEAD
f93eb7cb02..3ee951993d master -> origin/master
3ee951993d Merge pull request #27253 from kit-ty-kate/opam-publish-ocamlfind.1.9.8
<><> 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
However, you may "opam upgrade" these packages explicitly, which will ask permission to downgrade or uninstall the conflicting packages.
Nothing to do.
2025-02-05 10:26.51 ---> using "8f993e8cfebd9253fc6f4bcb9aa0ed2db657100f2976c939ac68a930992353fb" from cache
/src: (copy (src multicore-bench.opam) (dst ./))
2025-02-05 10:26.52 ---> saved as "b9a8b9b19677dbd063c2be2d285be005f1570df081b0b99ee093d6520f067ed5"
/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-02-05 10:26.57 ---> saved as "1e033a7928d882a2eba6cd0a063b40e7fbedd84361debe2517e3d23208d8dea7"
/src: (run (network host)
(shell "echo '(lang dune 3.0)' > './dune-project'"))
2025-02-05 10:27.01 ---> saved as "c2adbf09220122b46a4af373258d3cf95aec26a3d22d5b49ccc819d9d28d5fb6"
/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.17.2 fmt.0.9.0 logs.0.7.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.3.7.3 ocamlbuild.0.15.0 ocamlfind.1.9.8 re.1.12.0 result.1.5 seq.base thread-table.1.0.0 topkg.1.0.7 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-02-05 10:27.21 ---> saved as "aa5cece8a832eb78164257c874499ef6e22e54215ddb17a571c8a6dbaea4e277"
/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.17.2
∗ fmt 0.9.0
∗ logs 0.7.0
∗ mdx 2.5.0
∗ mtime 2.1.0
∗ multicore-magic 2.3.1
∗ ocaml-version 3.7.3
∗ ocamlbuild 0.15.0
∗ ocamlfind 1.9.8
∗ re 1.12.0
∗ result 1.5
∗ seq base
∗ thread-table 1.0.0
∗ topkg 1.0.7
∗ yojson 2.2.2
<><> 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.9.0 (cached)
⬇ retrieved logs.0.7.0 (cached)
⬇ retrieved mtime.2.1.0 (cached)
⬇ retrieved mdx.2.5.0 (cached)
⬇ retrieved multicore-magic.2.3.1 (cached)
⬇ retrieved ocaml-version.3.7.3 (cached)
⬇ retrieved ocamlbuild.0.15.0 (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.7 (cached)
⬇ retrieved yojson.2.2.2 (cached)
⬇ retrieved dune.3.17.2 (cached)
∗ installed cmdliner.1.3.0
∗ installed ocamlbuild.0.15.0
∗ installed ocamlfind.1.9.8
∗ installed topkg.1.0.7
∗ installed fmt.0.9.0
∗ installed mtime.2.1.0
∗ installed astring.0.8.5
∗ installed logs.0.7.0
∗ installed dune.3.17.2
∗ installed domain_shims.0.1.0
∗ installed ocaml-version.3.7.3
∗ installed multicore-magic.2.3.1
∗ installed csexp.1.5.2
∗ installed thread-table.1.0.0
∗ installed result.1.5
∗ installed re.1.12.0
∗ installed cppo.1.8.0
∗ installed camlp-streams.5.0.1
∗ installed domain-local-await.1.0.1
∗ installed backoff.0.1.1
∗ installed yojson.2.2.2
∗ installed mdx.2.5.0
Done.
2025-02-05 10:29.48 ---> saved as "2492de34367e3eba99de43480ad3ec4213319ad511f44283f4c660d6530ffbd7"
/src: (copy (src .) (dst /src))
2025-02-05 10:29.51 ---> saved as "9e059eeb35da781edc1e62fd9a0cc8320cd02dc1e2f15c5c4310e056e2163dc9"
/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:
47.51 M/s
ops over time/get:
356.43 M/s
ops over time/incr:
67.90 M/s
ops over time/push & pop:
23.93 M/s
ops over time/swap:
30.87 M/s
ops over time/xchg int:
61.07 M/s
time per op/cas int:
21.05 ns
time per op/get:
2.81 ns
time per op/incr:
14.73 ns
time per op/push & pop:
41.79 ns
time per op/swap:
32.39 ns
time per op/xchg int:
16.38 ns
Atomic incr:
ops over time/CAS, 1 domains:
42.19 M/s
ops over time/CAS, 2 domains:
8.78 M/s
ops over time/CAS, 4 domains:
5.49 M/s
ops over time/CAS, 8 domains:
1.56 M/s
ops over time/CAS with backoff, 1 domains:
42.42 M/s
ops over time/CAS with backoff, 2 domains:
42.18 M/s
ops over time/CAS with backoff, 4 domains:
26.39 M/s
ops over time/CAS with backoff, 8 domains:
14.73 M/s
ops over time/Incr, 1 domains:
67.92 M/s
ops over time/Incr, 2 domains:
34.73 M/s
ops over time/Incr, 4 domains:
31.96 M/s
ops over time/Incr, 8 domains:
11.77 M/s
time per op/CAS, 1 domains:
23.70 ns
time per op/CAS, 2 domains:
227.89 ns
time per op/CAS, 4 domains:
728.73 ns
time per op/CAS, 8 domains:
5140.37 ns
time per op/CAS with backoff, 1 domains:
23.57 ns
time per op/CAS with backoff, 2 domains:
47.42 ns
time per op/CAS with backoff, 4 domains:
151.58 ns
time per op/CAS with backoff, 8 domains:
543.14 ns
time per op/Incr, 1 domains:
14.72 ns
time per op/Incr, 2 domains:
57.59 ns
time per op/Incr, 4 domains:
125.17 ns
time per op/Incr, 8 domains:
679.87 ns
Bounded_q:
messages over time/1 adder, 1 taker:
3.02 M/s
messages over time/1 adder, 2 takers:
1.69 M/s
messages over time/1 adder, 4 takers:
1.86 M/s
messages over time/2 adders, 1 taker:
1.70 M/s
messages over time/2 adders, 2 takers:
1.93 M/s
messages over time/2 adders, 4 takers:
1.12 M/s
messages over time/4 adders, 1 taker:
1.98 M/s
messages over time/4 adders, 2 takers:
1.69 M/s
messages over time/4 adders, 4 takers:
0.89 M/s
messages over time/one domain:
5.30 M/s
time per message/1 adder, 1 taker:
661.83 ns
time per message/1 adder, 2 takers:
1776.83 ns
time per message/1 adder, 4 takers:
2686.12 ns
time per message/2 adders, 1 taker:
1763.13 ns
time per message/2 adders, 2 takers:
2070.15 ns
time per message/2 adders, 4 takers:
5341.12 ns
time per message/4 adders, 1 taker:
2519.23 ns
time per message/4 adders, 2 takers:
3553.31 ns
time per message/4 adders, 4 takers:
8992.95 ns
time per message/one domain:
188.61 ns
Hashtbl:
operations over time/1 worker, 10% reads:
7.60 M/s
operations over time/1 worker, 50% reads:
7.64 M/s
operations over time/1 worker, 90% reads:
8.18 M/s
operations over time/2 workers, 10% reads:
5.29 M/s
operations over time/2 workers, 50% reads:
3.84 M/s
operations over time/2 workers, 90% reads:
7.24 M/s
operations over time/4 workers, 10% reads:
2.67 M/s
operations over time/4 workers, 50% reads:
2.62 M/s
operations over time/4 workers, 90% reads:
3.52 M/s
operations over time/8 workers, 10% reads:
1.95 M/s
operations over time/8 workers, 50% reads:
3.01 M/s
operations over time/8 workers, 90% reads:
2.83 M/s
operations over time/one domain, 10% reads:
12.65 M/s
operations over time/one domain, 50% reads:
13.09 M/s
operations over time/one domain, 90% reads:
15.56 M/s
time per operation/1 worker, 10% reads:
131.65 ns
time per operation/1 worker, 50% reads:
130.94 ns
time per operation/1 worker, 90% reads:
122.31 ns
time per operation/2 workers, 10% reads:
378.24 ns
time per operation/2 workers, 50% reads:
520.82 ns
time per operation/2 workers, 90% reads:
276.25 ns
time per operation/4 workers, 10% reads:
1500.21 ns
time per operation/4 workers, 50% reads:
1525.76 ns
time per operation/4 workers, 90% reads:
1137.29 ns
time per operation/8 workers, 10% reads:
4110.51 ns
time per operation/8 workers, 50% reads:
2657.56 ns
time per operation/8 workers, 90% reads:
2830.02 ns
time per operation/one domain, 10% reads:
79.08 ns
time per operation/one domain, 50% reads:
76.42 ns
time per operation/one domain, 90% reads:
64.27 ns
Queue:
messages over time/one domain:
18.19 M/s
time per message/one domain:
54.97 ns
Ref with Mutex:
ops over time/cas int:
12.97 M/s
ops over time/get:
14.35 M/s
ops over time/incr:
14.28 M/s
ops over time/push & pop:
11.59 M/s
ops over time/swap:
12.24 M/s
ops over time/xchg int:
13.32 M/s
time per op/cas int:
77.09 ns
time per op/get:
69.69 ns
time per op/incr:
70.01 ns
time per op/push & pop:
86.26 ns
time per op/swap:
81.73 ns
time per op/xchg int:
75.09 ns
Ref with [@poll error]:
ops over time/cas int:
91.80 M/s
ops over time/get:
343.68 M/s
ops over time/incr:
293.95 M/s
ops over time/push & pop:
9.06 M/s
ops over time/swap:
61.29 M/s
ops over time/xchg int:
90.87 M/s
time per op/cas int:
10.89 ns
time per op/get:
2.91 ns
time per op/incr:
3.40 ns
time per op/push & pop:
110.37 ns
time per op/swap:
16.31 ns
time per op/xchg int:
11.00 ns
Stack:
messages over time/one domain:
21.44 M/s
time per message/one domain:
46.65 ns
Unix:
blocking reads over time/1 worker:
1.11 M/s
blocking reads over time/2 workers:
2.13 M/s
blocking reads over time/4 workers:
5.19 M/s
time per blocking read/1 worker:
904.79 ns
time per blocking read/2 workers:
937.71 ns
time per blocking read/4 workers:
771.25 ns
2025-02-05 10:31.25 ---> saved as "8ce5e12e6f3063dcfecc3f534560bb7fe29dab438acb37497dd48ad27ee5d650"
Job succeeded
2025-02-05 10:43.54: Job succeeded