Organisationsocaml-multicoremulticore-benchd2dcd9 ()debian-11-5.3_opam-2.3

debian-11-5.3_opam-2.3

Logs

Show full logs
2025-06-12 14:21.29: New job: test ocaml-multicore/multicore-bench https://github.com/ocaml-multicore/multicore-bench.git#refs/heads/main (d2dcd9f17eb27ef2e967e6e40389827f80fd9514) (linux-x86_64:debian-11-5.3_opam-2.3)
Base: ocaml/opam:debian-11-ocaml-5.3@sha256:bb9ff64fc0a30e6efc4bba2533e68fcfe1fdcbcca0b32765c1a0a4dc2592c933
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 d2dcd9f1
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-11-ocaml-5.3@sha256:bb9ff64fc0a30e6efc4bba2533e68fcfe1fdcbcca0b32765c1a0a4dc2592c933
# debian-11-5.3_opam-2.3
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
WORKDIR /src
RUN sudo ln -f /usr/bin/opam-2.3 /usr/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-12 14:21.29: Using cache hint "ocaml-multicore/multicore-bench-ocaml/opam:debian-11-ocaml-5.3@sha256:bb9ff64fc0a30e6efc4bba2533e68fcfe1fdcbcca0b32765c1a0a4dc2592c933-debian-11-5.3_opam-2.3-10db08213cc6d5aab31cc60439730334"
2025-06-12 14:21.29: Using OBuilder spec:
((from ocaml/opam:debian-11-ocaml-5.3@sha256:bb9ff64fc0a30e6efc4bba2533e68fcfe1fdcbcca0b32765c1a0a4dc2592c933)
 (comment debian-11-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/bin/opam-2.3 /usr/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-12 14:21.29: Waiting for resource in pool OCluster
2025-06-12 19:18.49: Waiting for worker…
2025-06-12 19:21.20: Got resource from pool OCluster
Building on doris.caelum.ci.dev
All commits already cached
HEAD is now at d2dcd9f Try to avoid false sharing

(from ocaml/opam:debian-11-ocaml-5.3@sha256:bb9ff64fc0a30e6efc4bba2533e68fcfe1fdcbcca0b32765c1a0a4dc2592c933)
2025-06-12 19:21.20 ---> using "923794cf071481968755bca5f8fb939ba638f0e5adc3039ce330be9e7e13b9de" from cache

/: (comment debian-11-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/bin/opam-2.3 /usr/bin/opam"))
2025-06-12 19:21.20 ---> using "170fade88012c85b9a710b53709a9775bf94c3f978b133e60ac3ef87d3512ca8" from cache

/src: (run (shell "opam init --reinit -ni"))
Configuring from /home/opam/.opamrc and then from 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 development version of opam requires an update to the layout of /home/opam/.opam from version 2.0 to version 2.2, which can't be reverted.
You may want to back it up before going further.

Continue? [y/n] y
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2025-06-12 19:21.20 ---> using "18c497649a69a9f9036d0ea729703fbea4d442984320fcdc15815f406a603dd5" from cache

/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-134-generic
The OCaml toplevel, version 5.3.0
2.3.0
2025-06-12 19:21.20 ---> using "1c30ab73bc45f2af7cdf17a48a03ef0ab954c1c579d4ac3bfe8e374742d81c44" from cache

/src: (workdir /src)

/src: (run (shell "sudo chown opam /src"))
2025-06-12 19:21.20 ---> using "484dd34db13045b21bb2fddcf6b271db41d8120a809c65fe2843ea8e4b71d87d" 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
   bc726805e3..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).
However, you may "opam upgrade" these packages explicitly, which will ask permission to downgrade or uninstall the conflicting packages.
Nothing to do.
# To update the current shell environment, run: eval $(opam env)
2025-06-12 19:21.20 ---> using "594b787d4682bbaecd08d69e22209c21d0558842102ec62405e594f0af71857a" from cache

/src: (copy (src multicore-bench.opam) (dst ./))
2025-06-12 19:21.21 ---> saved as "6e1c340841377740fb6318520e664926dfe00a96f82abac643a519f22fb60153"

/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-12 19:21.22 ---> saved as "ad1dbed80e24f3f856dcd0e7203dac2f02bca1e7b59c0f9125d18c27271a3a6c"

/src: (run (network host)
           (shell "echo '(lang dune 3.0)' > './dune-project'"))
2025-06-12 19:21.22 ---> saved as "73fcea707c722395255edd84a3a9a079bb36fb08b1a8f1c6341140ef02535f1b"

/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"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://deb.debian.org/debian bullseye InRelease
- Get:2 http://deb.debian.org/debian-security bullseye-security InRelease [27.2 kB]
- Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
- Get:4 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages [381 kB]
- Fetched 452 kB in 0s (994 kB/s)
- Reading package lists...

<><> 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-12 19:21.34 ---> saved as "dfe28779a682a1cc2f49d7d91cf3629971557d16a540d640ae1d661fb8bda6cb"

/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
  - install astring            0.8.5
  - install backoff            0.1.1
  - install camlp-streams      5.0.1
  - install cmdliner           1.3.0
  - install cppo               1.8.0
  - install csexp              1.5.2
  - install domain-local-await 1.0.1
  - install domain_shims       0.1.0
  - install dune               3.19.1
  - install fmt                0.10.0
  - install logs               0.8.0
  - install mdx                2.5.0
  - install mtime              2.1.0
  - install multicore-magic    2.3.1
  - install ocaml-version      4.0.1
  - install ocamlbuild         0.16.1
  - install ocamlfind          1.9.8
  - install re                 1.12.0
  - install result             1.5
  - install seq                base
  - install thread-table       1.0.0
  - install topkg              1.0.8
  - install 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 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 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 mdx.2.5.0  (cached)
-> retrieved ocaml-version.4.0.1  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> retrieved ocamlbuild.0.16.1  (cached)
-> retrieved re.1.12.0  (cached)
-> retrieved seq.base  (cached)
-> installed seq.base
-> retrieved result.1.5  (cached)
-> retrieved thread-table.1.0.0  (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 domain_shims.0.1.0
-> installed csexp.1.5.2
-> installed backoff.0.1.1
-> installed result.1.5
-> installed ocaml-version.4.0.1
-> installed thread-table.1.0.0
-> installed multicore-magic.2.3.1
-> installed camlp-streams.5.0.1
-> installed domain-local-await.1.0.1
-> installed re.1.12.0
-> installed cppo.1.8.0
-> installed yojson.3.0.0
-> installed mdx.2.5.0
Done.
# To update the current shell environment, run: eval $(opam env)
2025-06-12 19:22.13 ---> saved as "5063ff0a3e59e04e4187694dc7b91bebe6a90086fed4b332d56be8168a87f8fe"

/src: (copy (src .) (dst /src))
2025-06-12 19:22.13 ---> saved as "34508cdc1d379432d061a2996299777480e679a8ebdb4189b7ec1d73681cbbfe"

/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:
    142.89 M/s
  ops over time/get:
    623.22 M/s
  ops over time/incr:
    176.64 M/s
  ops over time/push & pop:
    46.77 M/s
  ops over time/swap:
    108.91 M/s
  ops over time/xchg int:
    158.37 M/s
  time per op/cas int:
    7.00 ns
  time per op/get:
    1.60 ns
  time per op/incr:
    5.66 ns
  time per op/push & pop:
    21.38 ns
  time per op/swap:
    9.18 ns
  time per op/xchg int:
    6.31 ns
Atomic incr:
  ops over time/CAS, 1 domains:
    155.50 M/s
  ops over time/CAS, 2 domains:
    79.19 M/s
  ops over time/CAS, 4 domains:
    56.61 M/s
  ops over time/CAS, 8 domains:
    70.80 M/s
  ops over time/CAS with backoff, 1 domains:
    154.60 M/s
  ops over time/CAS with backoff, 2 domains:
    67.93 M/s
  ops over time/CAS with backoff, 4 domains:
    47.27 M/s
  ops over time/CAS with backoff, 8 domains:
    34.23 M/s
  ops over time/Incr, 1 domains:
    170.49 M/s
  ops over time/Incr, 2 domains:
    113.92 M/s
  ops over time/Incr, 4 domains:
    110.97 M/s
  ops over time/Incr, 8 domains:
    110.36 M/s
  time per op/CAS, 1 domains:
    6.43 ns
  time per op/CAS, 2 domains:
    25.26 ns
  time per op/CAS, 4 domains:
    70.66 ns
  time per op/CAS, 8 domains:
    113.00 ns
  time per op/CAS with backoff, 1 domains:
    6.47 ns
  time per op/CAS with backoff, 2 domains:
    29.44 ns
  time per op/CAS with backoff, 4 domains:
    84.61 ns
  time per op/CAS with backoff, 8 domains:
    233.70 ns
  time per op/Incr, 1 domains:
    5.87 ns
  time per op/Incr, 2 domains:
    17.56 ns
  time per op/Incr, 4 domains:
    36.05 ns
  time per op/Incr, 8 domains:
    72.49 ns
Bounded_q:
  messages over time/1 adder, 1 taker:
    1.53 M/s
  messages over time/1 adder, 2 takers:
    2.37 M/s
  messages over time/1 adder, 4 takers:
    1.70 M/s
  messages over time/2 adders, 1 taker:
    2.37 M/s
  messages over time/2 adders, 2 takers:
    1.61 M/s
  messages over time/2 adders, 4 takers:
    0.85 M/s
  messages over time/4 adders, 1 taker:
    1.79 M/s
  messages over time/4 adders, 2 takers:
    1.44 M/s
  messages over time/4 adders, 4 takers:
    1.06 M/s
  messages over time/one domain:
    11.38 M/s
  time per message/1 adder, 1 taker:
    1308.27 ns
  time per message/1 adder, 2 takers:
    1263.97 ns
  time per message/1 adder, 4 takers:
    2933.21 ns
  time per message/2 adders, 1 taker:
    1267.94 ns
  time per message/2 adders, 2 takers:
    2489.55 ns
  time per message/2 adders, 4 takers:
    7034.92 ns
  time per message/4 adders, 1 taker:
    2787.09 ns
  time per message/4 adders, 2 takers:
    4175.46 ns
  time per message/4 adders, 4 takers:
    7580.59 ns
  time per message/one domain:
    87.90 ns
Hashtbl:
  operations over time/1 worker, 10% reads:
    16.27 M/s
  operations over time/1 worker, 50% reads:
    16.41 M/s
  operations over time/1 worker, 90% reads:
    19.79 M/s
  operations over time/2 workers, 10% reads:
    6.96 M/s
  operations over time/2 workers, 50% reads:
    7.54 M/s
  operations over time/2 workers, 90% reads:
    3.57 M/s
  operations over time/4 workers, 10% reads:
    2.66 M/s
  operations over time/4 workers, 50% reads:
    1.40 M/s
  operations over time/4 workers, 90% reads:
    3.39 M/s
  operations over time/8 workers, 10% reads:
    1.22 M/s
  operations over time/8 workers, 50% reads:
    1.19 M/s
  operations over time/8 workers, 90% reads:
    2.18 M/s
  operations over time/one domain, 10% reads:
    24.38 M/s
  operations over time/one domain, 50% reads:
    24.73 M/s
  operations over time/one domain, 90% reads:
    34.80 M/s
  time per operation/1 worker, 10% reads:
    61.45 ns
  time per operation/1 worker, 50% reads:
    60.95 ns
  time per operation/1 worker, 90% reads:
    50.53 ns
  time per operation/2 workers, 10% reads:
    287.38 ns
  time per operation/2 workers, 50% reads:
    265.27 ns
  time per operation/2 workers, 90% reads:
    559.87 ns
  time per operation/4 workers, 10% reads:
    1502.37 ns
  time per operation/4 workers, 50% reads:
    2847.03 ns
  time per operation/4 workers, 90% reads:
    1180.55 ns
  time per operation/8 workers, 10% reads:
    6542.99 ns
  time per operation/8 workers, 50% reads:
    6722.99 ns
  time per operation/8 workers, 90% reads:
    3678.11 ns
  time per operation/one domain, 10% reads:
    41.02 ns
  time per operation/one domain, 50% reads:
    40.44 ns
  time per operation/one domain, 90% reads:
    28.74 ns
Queue:
  messages over time/one domain:
    32.23 M/s
  time per message/one domain:
    31.03 ns
Ref with Mutex:
  ops over time/cas int:
    31.44 M/s
  ops over time/get:
    38.87 M/s
  ops over time/incr:
    35.09 M/s
  ops over time/push & pop:
    22.63 M/s
  ops over time/swap:
    30.13 M/s
  ops over time/xchg int:
    31.30 M/s
  time per op/cas int:
    31.81 ns
  time per op/get:
    25.72 ns
  time per op/incr:
    28.50 ns
  time per op/push & pop:
    44.20 ns
  time per op/swap:
    33.19 ns
  time per op/xchg int:
    31.95 ns
Ref with [@poll error]:
  ops over time/cas int:
    164.56 M/s
  ops over time/get:
    626.36 M/s
  ops over time/incr:
    297.98 M/s
  ops over time/push & pop:
    52.40 M/s
  ops over time/swap:
    107.12 M/s
  ops over time/xchg int:
    157.96 M/s
  time per op/cas int:
    6.08 ns
  time per op/get:
    1.60 ns
  time per op/incr:
    3.36 ns
  time per op/push & pop:
    19.09 ns
  time per op/swap:
    9.34 ns
  time per op/xchg int:
    6.33 ns
Stack:
  messages over time/one domain:
    40.07 M/s
  time per message/one domain:
    24.95 ns
Unix:
  blocking reads over time/1 worker:
    1.29 M/s
  blocking reads over time/2 workers:
    2.52 M/s
  blocking reads over time/4 workers:
    5.07 M/s
  time per blocking read/1 worker:
    773.00 ns
  time per blocking read/2 workers:
    794.24 ns
  time per blocking read/4 workers:
    789.11 ns
2025-06-12 19:22.27 ---> saved as "6473e9220e1ffdd2319fdede77a7fb42573c28f54e8acc71cf04159416d68286"
Job succeeded
2025-06-12 19:22.27: Job succeeded