Organisationsocaml-multicoremulticore-benchefb15d (main)debian-12-4.14+flambda_opam-2.3

debian-12-4.14+flambda_opam-2.3

Logs

Show full logs
2025-06-17 18:29.43: New job: test ocaml-multicore/multicore-bench https://github.com/ocaml-multicore/multicore-bench.git#refs/heads/main (efb15d8562dbdc1ba976ffc574de028e3c11c123) (linux-x86_64:debian-12-4.14+flambda_opam-2.3)
Base: ocaml/opam:debian-12-ocaml-4.14-flambda@sha256:71a1afa039fe06fb487d20309f301b01efa00275c880351e8437783088c97ced
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 ocaml/opam:debian-12-ocaml-4.14-flambda@sha256:71a1afa039fe06fb487d20309f301b01efa00275c880351e8437783088c97ced
# debian-12-4.14+flambda_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-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.4.14.2 ocaml-config.2 ocaml-variants.4.14.2+options 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-17 18:29.43: Using cache hint "ocaml-multicore/multicore-bench-ocaml/opam:debian-12-ocaml-4.14-flambda@sha256:71a1afa039fe06fb487d20309f301b01efa00275c880351e8437783088c97ced-debian-12-4.14+flambda_opam-2.3-621f49c05326d0b215b09c7c4e297006"
2025-06-17 18:29.43: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-4.14-flambda@sha256:71a1afa039fe06fb487d20309f301b01efa00275c880351e8437783088c97ced)
 (comment debian-12-4.14+flambda_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-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.4.14.2 ocaml-config.2 ocaml-variants.4.14.2+options 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-17 18:29.43: Waiting for resource in pool OCluster
2025-06-17 21:11.33: Waiting for worker…
2025-06-17 21:14.58: Got resource from pool OCluster
Building on toxis.caelum.ci.dev
All commits already cached
HEAD is now at efb15d8 Inline `Atomic` and `Ref` ops and unroll

(from ocaml/opam:debian-12-ocaml-4.14-flambda@sha256:71a1afa039fe06fb487d20309f301b01efa00275c880351e8437783088c97ced)
2025-06-17 21:14.58 ---> using "a5c4e1af52967ce6c46f0a49a956916486bb249765ab26d2974bf2c7d955d643" from cache

/: (comment debian-12-4.14+flambda_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-17 21:14.58 ---> using "5082b78f6a9dd4aecd045e78466146be863d84725ce362fe530f59add8681f71" 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-17 21:14.58 ---> using "97a640afaa3ecec8283c0093e4cb5b7661ac8b70e0111b325df148cf4fd51792" from cache

/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-134-generic
The OCaml toplevel, version 4.14.2
2.3.0
2025-06-17 21:14.58 ---> using "e4be094968430acc0f92c165d2f448604c68942168b56ef4e3c88865d5e24368" from cache

/src: (workdir /src)

/src: (run (shell "sudo chown opam /src"))
2025-06-17 21:14.58 ---> using "78bf212dc77c0ee5c6a56facaa9d87d5532067d19985b8630fb2fa0e48378e42" 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"))
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-17 21:14.58 ---> using "47b029b60eb10506169c7a168fe40dc0a36b9816e1aea0a561d3fae5ba1b6bb1" from cache

/src: (copy (src multicore-bench.opam) (dst ./))
2025-06-17 21:14.59 ---> saved as "c327ccadc810823d4d1d177092c9737222980647650be9d4d6c312eb7a7c174a"

/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-17 21:15.02 ---> saved as "95b9374a35fa0aa8b76ed52d2b9d4b6522b8e03c8d4a2b4e21423d0d2d72284b"

/src: (run (network host)
           (shell "echo '(lang dune 3.0)' > './dune-project'"))
2025-06-17 21:15.03 ---> saved as "6c76be4a3088d3119cb836d7483ff5a20dbcae9806d65b0f5e210a09f404bd07"

/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.19.1 fmt.0.10.0 logs.0.8.0 mdx.2.5.0 mtime.2.1.0 multicore-magic.2.3.1 ocaml.4.14.2 ocaml-config.2 ocaml-variants.4.14.2+options 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 bookworm InRelease
- Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
- Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
- Get:4 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [267 kB]
- Fetched 370 kB in 1s (487 kB/s)
- Reading package lists...
- 

<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[multicore-bench.dev] synchronised (file:///src)

[NOTE] Package ocaml-variants is already installed (current version is 4.14.2+options).
[NOTE] Package ocaml-config is already installed (current version is 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-06-17 21:15.26 ---> saved as "23e9443a753336ac5fd555b8d38ae9e68d1915a3f77d27e90448c1b3853a1aee"

/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
           (network host)
           (shell "opam install $DEPS"))
[NOTE] Package ocaml-variants is already installed (current version is 4.14.2+options).
[NOTE] Package ocaml-config is already installed (current version is 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
  - 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 astring.0.8.5  (cached)
-> retrieved backoff.0.1.1  (cached)
-> retrieved camlp-streams.5.0.1  (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 result.1.5
-> installed thread-table.1.0.0
-> installed domain_shims.0.1.0
-> installed csexp.1.5.2
-> installed ocaml-version.4.0.1
-> installed backoff.0.1.1
-> installed camlp-streams.5.0.1
-> installed multicore-magic.2.3.1
-> installed domain-local-await.1.0.1
-> installed cppo.1.8.0
-> installed re.1.12.0
-> installed yojson.3.0.0
-> installed mdx.2.5.0
Done.
# To update the current shell environment, run: eval $(opam env)
2025-06-17 21:17.38 ---> saved as "34d8cc09580c1147602e72c9975971a9350123baceb6190aaa86c3f9ad33e96f"

/src: (copy (src .) (dst /src))
2025-06-17 21:17.38 ---> saved as "b14790a48133e9718f44700cb11bd00dd2dcc6f8ab2fa40e7842918915ddea1f"

/src: (run (shell "opam exec -- dune build @install @check @runtest && rm -rf _build"))
(cd _build/default && /home/opam/.opam/4.14/bin/ocamlopt.opt -w @1..3@5..28@31..39@43@46..47@49..57@61..62@67@69-40 -strict-sequence -strict-formats -short-paths -keep-locs -g -I lib/.multicore_bench.objs/byte -I lib/.multicore_bench.objs/native -I /home/opam/.opam/4.14/lib/backoff -I /home/opam/.opam/4.14/lib/domain-local-await -I /home/opam/.opam/4.14/lib/domain_shims -I /home/opam/.opam/4.14/lib/mtime -I /home/opam/.opam/4.14/lib/mtime/clock -I /home/opam/.opam/4.14/lib/multicore-magic -I /home/opam/.opam/4.14/lib/yojson -intf-suffix .ml -no-alias-deps -opaque -open Multicore_bench__ -o lib/.multicore_bench.objs/native/multicore_bench__Times.cmx -c -impl lib/times.ml)
File "_none_", line 1:
Warning 58 [no-cmx-file]: no cmx file was found in path for module Thread_table, and its interface was not compiled with -opaque
(cd _build/default/bench && ./main.exe -brief)
Atomic:
  ops over time/cas int:
    133.15 M/s
  ops over time/get:
    1416.54 M/s
  ops over time/incr:
    224.14 M/s
  ops over time/push & pop:
    39.49 M/s
  ops over time/swap:
    64.58 M/s
  ops over time/xchg int:
    143.33 M/s
  time per op/cas int:
    7.51 ns
  time per op/get:
    0.71 ns
  time per op/incr:
    4.46 ns
  time per op/push & pop:
    25.32 ns
  time per op/swap:
    15.48 ns
  time per op/xchg int:
    6.98 ns
Atomic incr:
  ops over time/CAS, 1 domains:
    104.03 M/s
  ops over time/CAS with backoff, 1 domains:
    97.79 M/s
  ops over time/Incr, 1 domains:
    192.25 M/s
  time per op/CAS, 1 domains:
    9.61 ns
  time per op/CAS with backoff, 1 domains:
    10.23 ns
  time per op/Incr, 1 domains:
    5.20 ns
Bounded_q:
  messages over time/one domain:
    4.55 M/s
  time per message/one domain:
    219.68 ns
Hashtbl:
  operations over time/1 worker, 10% reads:
    6.60 M/s
  operations over time/1 worker, 50% reads:
    6.84 M/s
  operations over time/1 worker, 90% reads:
    6.92 M/s
  operations over time/2 workers, 10% reads:
    6.55 M/s
  operations over time/2 workers, 50% reads:
    6.62 M/s
  operations over time/2 workers, 90% reads:
    7.21 M/s
  operations over time/4 workers, 10% reads:
    6.42 M/s
  operations over time/4 workers, 50% reads:
    6.56 M/s
  operations over time/4 workers, 90% reads:
    6.92 M/s
  operations over time/8 workers, 10% reads:
    6.31 M/s
  operations over time/8 workers, 50% reads:
    6.25 M/s
  operations over time/8 workers, 90% reads:
    6.81 M/s
  operations over time/one domain, 10% reads:
    13.64 M/s
  operations over time/one domain, 50% reads:
    12.86 M/s
  operations over time/one domain, 90% reads:
    15.76 M/s
  time per operation/1 worker, 10% reads:
    151.63 ns
  time per operation/1 worker, 50% reads:
    146.24 ns
  time per operation/1 worker, 90% reads:
    144.41 ns
  time per operation/2 workers, 10% reads:
    305.57 ns
  time per operation/2 workers, 50% reads:
    302.25 ns
  time per operation/2 workers, 90% reads:
    277.58 ns
  time per operation/4 workers, 10% reads:
    622.57 ns
  time per operation/4 workers, 50% reads:
    609.32 ns
  time per operation/4 workers, 90% reads:
    578.43 ns
  time per operation/8 workers, 10% reads:
    1266.91 ns
  time per operation/8 workers, 50% reads:
    1279.10 ns
  time per operation/8 workers, 90% reads:
    1175.18 ns
  time per operation/one domain, 10% reads:
    73.33 ns
  time per operation/one domain, 50% reads:
    77.77 ns
  time per operation/one domain, 90% reads:
    63.46 ns
Queue:
  messages over time/one domain:
    23.55 M/s
  time per message/one domain:
    42.47 ns
Ref with Mutex:
  ops over time/cas int:
    12.06 M/s
  ops over time/get:
    13.13 M/s
  ops over time/incr:
    12.42 M/s
  ops over time/push & pop:
    10.77 M/s
  ops over time/swap:
    11.24 M/s
  ops over time/xchg int:
    12.11 M/s
  time per op/cas int:
    82.94 ns
  time per op/get:
    76.15 ns
  time per op/incr:
    80.49 ns
  time per op/push & pop:
    92.85 ns
  time per op/swap:
    88.95 ns
  time per op/xchg int:
    82.60 ns
Ref with [@poll error]:
  ops over time/cas int:
    133.40 M/s
  ops over time/get:
    1364.19 M/s
  ops over time/incr:
    219.32 M/s
  ops over time/push & pop:
    39.68 M/s
  ops over time/swap:
    61.86 M/s
  ops over time/xchg int:
    139.38 M/s
  time per op/cas int:
    7.50 ns
  time per op/get:
    0.73 ns
  time per op/incr:
    4.56 ns
  time per op/push & pop:
    25.20 ns
  time per op/swap:
    16.17 ns
  time per op/xchg int:
    7.17 ns
Stack:
  messages over time/one domain:
    25.44 M/s
  time per message/one domain:
    39.31 ns
Unix:
  blocking reads over time/1 worker:
    0.56 M/s
  time per blocking read/1 worker:
    1792.74 ns
2025-06-17 21:17.50 ---> saved as "dc35ad24f0dd933976f991455709169219fdd2216aee1b2f07769ad9e69c7cb3"
Job succeeded
2025-06-17 21:17.50: Job succeeded