2025-01-21 15:55.17: New job: test ocaml-multicore/multicore-bench https://github.com/ocaml-multicore/multicore-bench.git#refs/heads/ignore-results-from-ops-on-ref-bench (fcbc847459c7b0a57aed81d20eeda373202e0c2c) (freebsd-x86_64:freebsd-14.1-4.14_opam-2.3)
Base: freebsd-14.1-ocaml-4.14
Opam project build
To reproduce locally:
git clone --recursive "https://github.com/ocaml-multicore/multicore-bench.git" -b "ignore-results-from-ops-on-ref-bench" && cd "multicore-bench" && git reset --hard fcbc8474
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM freebsd-14.1-ocaml-4.14
# freebsd-14.1-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 b41fc63234d56d04112634b1ea9121f12caf9794 || git fetch origin master) && git reset -q --hard b41fc63234d56d04112634b1ea9121f12caf9794 && 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.17.1 fmt.0.9.0 logs.0.7.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.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-21 15:55.17: Using cache hint "ocaml-multicore/multicore-bench-freebsd-14.1-ocaml-4.14-freebsd-14.1-4.14_opam-2.3-a6ce96dbbb6af53835677281ad10586e"
2025-01-21 15:55.17: Using OBuilder spec:
((from freebsd-14.1-ocaml-4.14)
(comment freebsd-14.1-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 b41fc63234d56d04112634b1ea9121f12caf9794 || git fetch origin master) && git reset -q --hard b41fc63234d56d04112634b1ea9121f12caf9794 && 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.17.1 fmt.0.9.0 logs.0.7.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.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-21 15:55.17: Waiting for resource in pool OCluster
2025-01-21 15:55.17: Waiting for worker…
2025-01-21 15:55.53: Got resource from pool OCluster
Building on spring
HEAD is now at 276f98e Ignore results from ops on `ref` benchmarks
HEAD is now at fcbc847 Ignore results from ops on `ref` benchmarks
(from freebsd-14.1-ocaml-4.14)
2025-01-21 15:45.46 ---> using "ae13298952475462d6ff8423c053aa12bd6b321268da2da393f31b39d910ae06" from cache
/: (comment freebsd-14.1-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-01-21 15:45.47 ---> using "a01a14b3afaf0e96198b4995f7495eb095c8d446bea3004be25da82cfecae768" 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-21 15:45.47 ---> using "a60b36efeb57e54e6ca4e23dae975fff8d0668822376b173ed63b66aa24444bc" from cache
/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
FreeBSD 14.1-RELEASE-p5
The OCaml toplevel, version 4.14.2
2.3.0
2025-01-21 15:45.48 ---> using "188549049d3e68e7a3a1a01e1161c07610550818a3f0b75ffbaafa2a77641d27" from cache
/src: (workdir /src)
/src: (run (shell "sudo chown opam /src"))
2025-01-21 15:45.48 ---> using "39fdaef227d4780a13f56312f6b694c46af609f82c1eca907bb338ae047f238f" from cache
/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e b41fc63234d56d04112634b1ea9121f12caf9794 || git fetch origin master) && git reset -q --hard b41fc63234d56d04112634b1ea9121f12caf9794 && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
* branch master -> FETCH_HEAD
c31c18de15..b41fc63234 master -> origin/master
b41fc63234 Merge pull request #27302 from ocaml/dra27--rm-non-win32-host-pkgs
<><> 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-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-01-21 15:45.49 ---> using "473219b42c880c50a832b820b03f0fb81c9019ac7092acfd9ed5e30cd465a216" from cache
/src: (copy (src multicore-bench.opam) (dst ./))
2025-01-21 15:45.49 ---> using "181032dc6f7dde83e941486dfc2ea534da931303db41cab076ea40e945648bcf" 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-01-21 15:45.49 ---> using "b87bfaa55909b8fc72ed4137367c0e50db9eb6e39fa1e39d8257001db718de90" from cache
/src: (run (network host)
(shell "echo '(lang dune 3.0)' > './dune-project'"))
2025-01-21 15:45.49 ---> using "539ce3ee8e23e9379ad1104e5c552a6f9dd748dd30756076f994db205880c348" 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.17.1 fmt.0.9.0 logs.0.7.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.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 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-01-21 15:45.50 ---> using "637f91113e76dd8391d24365f2166032b249bbfad76ff5539d8c03143ed0317c" 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.17.1
∗ 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.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 backoff.0.1.1 (cached)
⬇ retrieved camlp-streams.5.0.1 (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 astring.0.8.5 (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 ocamlfind.1.9.6 (cached)
⬇ retrieved re.1.12.0 (cached)
⬇ retrieved seq.base (cached)
∗ installed seq.base
⬇ retrieved thread-table.1.0.0 (cached)
⬇ retrieved result.1.5 (cached)
⬇ retrieved yojson.2.2.2 (cached)
⬇ retrieved topkg.1.0.7 (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 backoff.0.1.1
∗ installed camlp-streams.5.0.1
∗ installed csexp.1.5.2
∗ installed domain_shims.0.1.0
∗ installed ocaml-version.3.7.3
∗ installed result.1.5
∗ installed multicore-magic.2.3.1
∗ installed thread-table.1.0.0
∗ installed domain-local-await.1.0.1
∗ installed cppo.1.8.0
∗ installed re.1.12.0
∗ installed yojson.2.2.2
∗ installed mdx.2.5.0
Done.
2025-01-21 15:45.50 ---> using "37957aabbf5820213d270c12d999a5ce42a26e591f3ec4e9e37732bd24d19f97" from cache
/src: (copy (src .) (dst /src))
2025-01-21 15:45.52 ---> saved as "2d76b16a7220bf4ac3be4ed021be83aa1ee2ded5c3c34c71a2e99f73147df4f3"
/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:
103.54 M/s
ops over time/get:
316.90 M/s
ops over time/incr:
180.07 M/s
ops over time/push & pop:
58.89 M/s
ops over time/swap:
67.16 M/s
ops over time/xchg int:
100.51 M/s
time per op/cas int:
9.66 ns
time per op/get:
3.16 ns
time per op/incr:
5.55 ns
time per op/push & pop:
16.98 ns
time per op/swap:
14.89 ns
time per op/xchg int:
9.95 ns
Atomic incr:
ops over time/CAS, 1 domains:
115.49 M/s
ops over time/CAS with backoff, 1 domains:
131.80 M/s
ops over time/Incr, 1 domains:
245.79 M/s
time per op/CAS, 1 domains:
8.66 ns
time per op/CAS with backoff, 1 domains:
7.59 ns
time per op/Incr, 1 domains:
4.07 ns
Bounded_q:
messages over time/one domain:
6.10 M/s
time per message/one domain:
163.81 ns
Hashtbl:
operations over time/1 worker, 10% reads:
7.40 M/s
operations over time/1 worker, 50% reads:
7.35 M/s
operations over time/1 worker, 90% reads:
7.79 M/s
operations over time/2 workers, 10% reads:
7.36 M/s
operations over time/2 workers, 50% reads:
7.34 M/s
operations over time/2 workers, 90% reads:
7.93 M/s
operations over time/4 workers, 10% reads:
7.32 M/s
operations over time/4 workers, 50% reads:
7.28 M/s
operations over time/4 workers, 90% reads:
7.88 M/s
operations over time/8 workers, 10% reads:
6.85 M/s
operations over time/8 workers, 50% reads:
6.99 M/s
operations over time/8 workers, 90% reads:
7.62 M/s
operations over time/one domain, 10% reads:
12.66 M/s
operations over time/one domain, 50% reads:
12.37 M/s
operations over time/one domain, 90% reads:
13.61 M/s
time per operation/1 worker, 10% reads:
135.15 ns
time per operation/1 worker, 50% reads:
136.03 ns
time per operation/1 worker, 90% reads:
128.34 ns
time per operation/2 workers, 10% reads:
271.59 ns
time per operation/2 workers, 50% reads:
272.45 ns
time per operation/2 workers, 90% reads:
252.21 ns
time per operation/4 workers, 10% reads:
546.29 ns
time per operation/4 workers, 50% reads:
549.64 ns
time per operation/4 workers, 90% reads:
507.32 ns
time per operation/8 workers, 10% reads:
1168.59 ns
time per operation/8 workers, 50% reads:
1144.69 ns
time per operation/8 workers, 90% reads:
1049.30 ns
time per operation/one domain, 10% reads:
79.02 ns
time per operation/one domain, 50% reads:
80.86 ns
time per operation/one domain, 90% reads:
73.47 ns
Queue:
messages over time/one domain:
23.90 M/s
time per message/one domain:
41.84 ns
Ref with Mutex:
ops over time/cas int:
14.22 M/s
ops over time/get:
15.15 M/s
ops over time/incr:
15.06 M/s
ops over time/push & pop:
13.66 M/s
ops over time/swap:
13.36 M/s
ops over time/xchg int:
14.15 M/s
time per op/cas int:
70.32 ns
time per op/get:
66.01 ns
time per op/incr:
66.39 ns
time per op/push & pop:
73.20 ns
time per op/swap:
74.85 ns
time per op/xchg int:
70.68 ns
Ref with [@poll error]:
ops over time/cas int:
112.35 M/s
ops over time/get:
358.87 M/s
ops over time/incr:
267.76 M/s
ops over time/push & pop:
63.90 M/s
ops over time/swap:
72.36 M/s
ops over time/xchg int:
122.41 M/s
time per op/cas int:
8.90 ns
time per op/get:
2.79 ns
time per op/incr:
3.73 ns
time per op/push & pop:
15.65 ns
time per op/swap:
13.82 ns
time per op/xchg int:
8.17 ns
Stack:
messages over time/one domain:
27.27 M/s
time per message/one domain:
36.67 ns
Unix:
blocking reads over time/1 worker:
0.82 M/s
time per blocking read/1 worker:
1221.59 ns
2025-01-21 15:46.01 ---> saved as "09a4c5fe8f4dd06166e9c8e44786112905ed4e06ecf55253dbf3078882f1eca2"
Job succeeded
2025-01-21 15:58.19: Job succeeded