2025-01-08 21:57.28: New job: test ocaml-multicore/multicore-bench https://github.com/ocaml-multicore/multicore-bench.git#refs/heads/main (01ef4eb5bba33f6093286a7c3240192d097b6999) (freebsd-x86_64:freebsd-14.1-5.2_opam-2.3)
Base: freebsd-14.1-ocaml-5.2
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 01ef4eb5
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM freebsd-14.1-ocaml-5.2
# freebsd-14.1-5.2_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 3bf64585fc5ee152bbad91f6d48717c1b37b48f8 || git fetch origin master) && git reset -q --hard 3bf64585fc5ee152bbad91f6d48717c1b37b48f8 && 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-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.1 fmt.0.9.0 host-arch-x86_64.1 host-system-other.1 logs.0.7.0 mdx.2.5.0 mtime.2.1.0 multicore-magic.2.3.0 ocaml.5.2.0 ocaml-base-compiler.5.2.0 ocaml-config.3 ocaml-options-vanilla.1 ocaml-version.3.7.3 ocamlbuild.0.15.0 ocamlfind.1.9.6 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-01-08 21:57.28: Using cache hint "ocaml-multicore/multicore-bench-freebsd-14.1-ocaml-5.2-freebsd-14.1-5.2_opam-2.3-1db7a0e883b18e78fad410a62872c866"
2025-01-08 21:57.28: Using OBuilder spec:
((from freebsd-14.1-ocaml-5.2)
(comment freebsd-14.1-5.2_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 3bf64585fc5ee152bbad91f6d48717c1b37b48f8 || git fetch origin master) && git reset -q --hard 3bf64585fc5ee152bbad91f6d48717c1b37b48f8 && 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-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.1 fmt.0.9.0 host-arch-x86_64.1 host-system-other.1 logs.0.7.0 mdx.2.5.0 mtime.2.1.0 multicore-magic.2.3.0 ocaml.5.2.0 ocaml-base-compiler.5.2.0 ocaml-config.3 ocaml-options-vanilla.1 ocaml-version.3.7.3 ocamlbuild.0.15.0 ocamlfind.1.9.6 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-01-08 21:57.28: Waiting for resource in pool OCluster
2025-01-08 21:57.29: Waiting for worker…
2025-01-08 22:23.10: Got resource from pool OCluster
Building on summer
All commits already cached
HEAD is now at 01ef4eb Upgrade to ocamlformat 0.27.0
(from freebsd-14.1-ocaml-5.2)
2025-01-08 22:11.56 ---> using "b360337939d1644dc8204948bb9f9914639142fcc456a4d40869d01f582b410d" from cache
/: (comment freebsd-14.1-5.2_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-01-08 22:11.56 ---> using "ac6a8e53c6a5d1febaa73a40a2a29987a33e29d91e524c6665af92723cb99de9" 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-01-08 22:11.57 ---> using "b87241ae74f21a568ed56e39cf4bc3a2162f2ccf12ae04beb7a59fae0c6ad0f4" from cache
/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
FreeBSD 14.1-RELEASE-p5
The OCaml toplevel, version 5.2.0
2.3.0
2025-01-08 22:11.58 ---> using "ccfe7de98cb2ca95bb2fb24fb9b452db076473e62582d2f18508a506b3873aeb" from cache
/src: (workdir /src)
/src: (run (shell "sudo chown opam /src"))
2025-01-08 22:11.58 ---> using "3aa38c608cf884b6eb35c0bfaf45886f64d08db7de724bafee2d1fcd0ed410ea" from cache
/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e 3bf64585fc5ee152bbad91f6d48717c1b37b48f8 || git fetch origin master) && git reset -q --hard 3bf64585fc5ee152bbad91f6d48717c1b37b48f8 && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
* branch master -> FETCH_HEAD
a6cd5e9297..f93eb7cb02 master -> origin/master
3bf64585fc Merge pull request #27233 from mtelvers/opam-publish-ocaml-version.3.7.3
<><> 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-01-08 22:11.59 ---> using "faaf7b4c8d5971b466b9a936bddd98d8d48c72fdcbb786f6f26ecc9a80071588" from cache
/src: (copy (src multicore-bench.opam) (dst ./))
2025-01-08 22:12.00 ---> saved as "1e638b05f2f2511a9aee7cf487c04ce47d05a4085cd496f414182c49b4736032"
/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-01-08 22:12.04 ---> saved as "95fa8321318f6253b8d408addd660e21bc361b5ad3719ffc4594501d4aff77ba"
/src: (run (network host)
(shell "echo '(lang dune 3.0)' > './dune-project'"))
2025-01-08 22:12.06 ---> saved as "1b8df5f855774081d8c214f2e1a291098d37459b93c6124682138bd04ef20a0c"
/src: (env DEPS "astring.0.8.5 backoff.0.1.1 base-bigarray.base base-domains.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.1 fmt.0.9.0 host-arch-x86_64.1 host-system-other.1 logs.0.7.0 mdx.2.5.0 mtime.2.1.0 multicore-magic.2.3.0 ocaml.5.2.0 ocaml-base-compiler.5.2.0 ocaml-config.3 ocaml-options-vanilla.1 ocaml-version.3.7.3 ocamlbuild.0.15.0 ocamlfind.1.9.6 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-base-compiler is already installed (current version is 5.2.0).
[NOTE] Package ocaml is already installed (current version is 5.2.0).
[NOTE] Package host-system-other is already installed (current version is 1).
[NOTE] Package host-arch-x86_64 is already installed (current version is 1).
[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-domains is already installed (current version is base).
[NOTE] Package base-bigarray is already installed (current version is base).
2025-01-08 22:12.42 ---> saved as "49b172319b500f0fc67120a4c3acc01a4461a6ea812186cebc9aa31451f009f4"
/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-base-compiler is already installed (current version is 5.2.0).
[NOTE] Package ocaml is already installed (current version is 5.2.0).
[NOTE] Package host-system-other is already installed (current version is 1).
[NOTE] Package host-arch-x86_64 is already installed (current version is 1).
[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-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.1
∗ fmt 0.9.0
∗ logs 0.7.0
∗ mdx 2.5.0
∗ mtime 2.1.0
∗ multicore-magic 2.3.0
∗ ocaml-version 3.7.3
∗ ocamlbuild 0.15.0
∗ ocamlfind 1.9.6
∗ 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 camlp-streams.5.0.1 (cached)
⬇ 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 domain-local-await.1.0.1 (cached)
⬇ retrieved domain_shims.0.1.0 (cached)
⬇ retrieved cppo.1.8.0 (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.0 (cached)
⬇ retrieved ocaml-version.3.7.3 (cached)
⬇ retrieved ocamlbuild.0.15.0 (cached)
⬇ retrieved ocamlfind.1.9.6 (cached)
⬇ retrieved result.1.5 (cached)
⬇ retrieved seq.base (cached)
∗ installed seq.base
⬇ retrieved thread-table.1.0.0 (cached)
⬇ retrieved topkg.1.0.7 (cached)
⬇ retrieved re.1.12.0 (cached)
⬇ retrieved yojson.2.2.2 (cached)
⬇ retrieved dune.3.17.1 (cached)
∗ installed cmdliner.1.3.0
∗ installed ocamlfind.1.9.6
∗ installed ocamlbuild.0.15.0
∗ installed topkg.1.0.7
∗ installed mtime.2.1.0
∗ installed fmt.0.9.0
∗ installed astring.0.8.5
∗ installed logs.0.7.0
∗ installed dune.3.17.1
∗ installed domain_shims.0.1.0
∗ installed backoff.0.1.1
∗ installed result.1.5
∗ installed thread-table.1.0.0
∗ installed ocaml-version.3.7.3
∗ installed csexp.1.5.2
∗ installed camlp-streams.5.0.1
∗ installed domain-local-await.1.0.1
∗ installed multicore-magic.2.3.0
∗ installed cppo.1.8.0
∗ installed yojson.2.2.2
∗ installed re.1.12.0
∗ installed mdx.2.5.0
Done.
2025-01-08 22:14.47 ---> saved as "66c982d6b1be14a947e5b9d8d8476b1f13df4d7acc6aabc0edfeb376d52a61ec"
/src: (copy (src .) (dst /src))
2025-01-08 22:14.53 ---> saved as "5004f193659ba291335b528793f79017d27cf7f079eef7df25b4093114e9e71a"
/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.68 M/s
ops over time/get:
293.24 M/s
ops over time/incr:
61.31 M/s
ops over time/push & pop:
25.74 M/s
ops over time/swap:
30.76 M/s
ops over time/xchg int:
51.14 M/s
time per op/cas int:
22.89 ns
time per op/get:
3.41 ns
time per op/incr:
16.31 ns
time per op/push & pop:
38.84 ns
time per op/swap:
32.51 ns
time per op/xchg int:
19.55 ns
Atomic incr:
ops over time/CAS, 1 domains:
38.35 M/s
ops over time/CAS, 2 domains:
10.04 M/s
ops over time/CAS, 4 domains:
5.07 M/s
ops over time/CAS, 8 domains:
4.23 M/s
ops over time/CAS with backoff, 1 domains:
40.02 M/s
ops over time/CAS with backoff, 2 domains:
37.42 M/s
ops over time/CAS with backoff, 4 domains:
32.22 M/s
ops over time/CAS with backoff, 8 domains:
16.71 M/s
ops over time/Incr, 1 domains:
61.13 M/s
ops over time/Incr, 2 domains:
23.87 M/s
ops over time/Incr, 4 domains:
28.45 M/s
ops over time/Incr, 8 domains:
27.76 M/s
time per op/CAS, 1 domains:
26.08 ns
time per op/CAS, 2 domains:
199.20 ns
time per op/CAS, 4 domains:
789.29 ns
time per op/CAS, 8 domains:
1892.81 ns
time per op/CAS with backoff, 1 domains:
24.99 ns
time per op/CAS with backoff, 2 domains:
53.45 ns
time per op/CAS with backoff, 4 domains:
124.13 ns
time per op/CAS with backoff, 8 domains:
478.68 ns
time per op/Incr, 1 domains:
16.36 ns
time per op/Incr, 2 domains:
83.80 ns
time per op/Incr, 4 domains:
140.59 ns
time per op/Incr, 8 domains:
288.17 ns
Bounded_q:
messages over time/1 adder, 1 taker:
1.91 M/s
messages over time/1 adder, 2 takers:
1.73 M/s
messages over time/1 adder, 4 takers:
1.67 M/s
messages over time/2 adders, 1 taker:
3.09 M/s
messages over time/2 adders, 2 takers:
1.60 M/s
messages over time/2 adders, 4 takers:
1.82 M/s
messages over time/4 adders, 1 taker:
2.27 M/s
messages over time/4 adders, 2 takers:
1.33 M/s
messages over time/4 adders, 4 takers:
0.92 M/s
messages over time/one domain:
4.20 M/s
time per message/1 adder, 1 taker:
1045.96 ns
time per message/1 adder, 2 takers:
1738.85 ns
time per message/1 adder, 4 takers:
2997.05 ns
time per message/2 adders, 1 taker:
971.17 ns
time per message/2 adders, 2 takers:
2500.82 ns
time per message/2 adders, 4 takers:
3298.34 ns
time per message/4 adders, 1 taker:
2204.00 ns
time per message/4 adders, 2 takers:
4527.04 ns
time per message/4 adders, 4 takers:
8662.14 ns
time per message/one domain:
238.19 ns
Hashtbl:
operations over time/1 worker, 10% reads:
4.80 M/s
operations over time/1 worker, 50% reads:
4.27 M/s
operations over time/1 worker, 90% reads:
5.11 M/s
operations over time/2 workers, 10% reads:
3.87 M/s
operations over time/2 workers, 50% reads:
3.80 M/s
operations over time/2 workers, 90% reads:
3.22 M/s
operations over time/4 workers, 10% reads:
3.34 M/s
operations over time/4 workers, 50% reads:
3.18 M/s
operations over time/4 workers, 90% reads:
2.59 M/s
operations over time/8 workers, 10% reads:
2.33 M/s
operations over time/8 workers, 50% reads:
1.94 M/s
operations over time/8 workers, 90% reads:
2.24 M/s
operations over time/one domain, 10% reads:
10.80 M/s
operations over time/one domain, 50% reads:
10.83 M/s
operations over time/one domain, 90% reads:
12.34 M/s
time per operation/1 worker, 10% reads:
208.13 ns
time per operation/1 worker, 50% reads:
234.37 ns
time per operation/1 worker, 90% reads:
195.63 ns
time per operation/2 workers, 10% reads:
516.20 ns
time per operation/2 workers, 50% reads:
526.94 ns
time per operation/2 workers, 90% reads:
621.22 ns
time per operation/4 workers, 10% reads:
1195.83 ns
time per operation/4 workers, 50% reads:
1258.42 ns
time per operation/4 workers, 90% reads:
1545.01 ns
time per operation/8 workers, 10% reads:
3430.71 ns
time per operation/8 workers, 50% reads:
4114.66 ns
time per operation/8 workers, 90% reads:
3571.18 ns
time per operation/one domain, 10% reads:
92.58 ns
time per operation/one domain, 50% reads:
92.31 ns
time per operation/one domain, 90% reads:
81.03 ns
Queue:
messages over time/one domain:
17.08 M/s
time per message/one domain:
58.54 ns
Ref with Mutex:
ops over time/cas int:
10.27 M/s
ops over time/get:
10.04 M/s
ops over time/incr:
12.46 M/s
ops over time/push & pop:
9.07 M/s
ops over time/swap:
10.39 M/s
ops over time/xchg int:
9.08 M/s
time per op/cas int:
97.39 ns
time per op/get:
99.57 ns
time per op/incr:
80.27 ns
time per op/push & pop:
110.31 ns
time per op/swap:
96.21 ns
time per op/xchg int:
110.13 ns
Ref with [@poll error]:
ops over time/cas int:
68.14 M/s
ops over time/get:
277.59 M/s
ops over time/incr:
266.93 M/s
ops over time/push & pop:
33.78 M/s
ops over time/swap:
45.78 M/s
ops over time/xchg int:
67.30 M/s
time per op/cas int:
14.68 ns
time per op/get:
3.60 ns
time per op/incr:
3.75 ns
time per op/push & pop:
29.60 ns
time per op/swap:
21.84 ns
time per op/xchg int:
14.86 ns
Stack:
messages over time/one domain:
18.14 M/s
time per message/one domain:
55.11 ns
Unix:
blocking reads over time/1 worker:
0.44 M/s
blocking reads over time/2 workers:
2.32 M/s
blocking reads over time/4 workers:
4.35 M/s
time per blocking read/1 worker:
2247.92 ns
time per blocking read/2 workers:
863.83 ns
time per blocking read/4 workers:
918.61 ns
2025-01-08 22:15.40 ---> saved as "4693fa1ab39193f22ecd09c25c1198e491795aa4b0a50e2ef6261c76f8b86d22"
Job succeeded
2025-01-08 22:26.57: Job succeeded