Organisationsocaml-multicoremulticore-benchefb15d (main)ubuntu-24.04-4.14_opam-2.3

ubuntu-24.04-4.14_opam-2.3

Logs

Show full logs
2025-06-17 18:28.27: New job: test ocaml-multicore/multicore-bench https://github.com/ocaml-multicore/multicore-bench.git#refs/heads/main (efb15d8562dbdc1ba976ffc574de028e3c11c123) (linux-x86_64:ubuntu-24.04-4.14_opam-2.3)
Base: ocaml/opam:ubuntu-24.04-ocaml-4.14@sha256:3dbac5def7b0152a5bc0ed65bbf067083686f3255a31bec492079c20a2c9b498
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:ubuntu-24.04-ocaml-4.14@sha256:3dbac5def7b0152a5bc0ed65bbf067083686f3255a31bec492079c20a2c9b498
# ubuntu-24.04-4.14_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-base-compiler.4.14.2 ocaml-config.2 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-17 18:28.27: Using cache hint "ocaml-multicore/multicore-bench-ocaml/opam:ubuntu-24.04-ocaml-4.14@sha256:3dbac5def7b0152a5bc0ed65bbf067083686f3255a31bec492079c20a2c9b498-ubuntu-24.04-4.14_opam-2.3-5e4c8ffe3a82688c609d0a76996fa04b"
2025-06-17 18:28.27: Using OBuilder spec:
((from ocaml/opam:ubuntu-24.04-ocaml-4.14@sha256:3dbac5def7b0152a5bc0ed65bbf067083686f3255a31bec492079c20a2c9b498)
 (comment ubuntu-24.04-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/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-base-compiler.4.14.2 ocaml-config.2 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-17 18:28.27: Waiting for resource in pool OCluster
2025-06-17 20:20.42: Waiting for worker…
2025-06-17 20:23.51: Got resource from pool OCluster
Building on doris.caelum.ci.dev
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint: 
hint: 	git config --global init.defaultBranch <name>
hint: 
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint: 
hint: 	git branch -m <name>
Initialized empty Git repository in /var/cache/obuilder/ocluster/git/multicore-bench.git-b64f3a44a0cd11cb5d9a386b4ded860bff164371/.git/
HEAD is now at efb15d8 Inline `Atomic` and `Ref` ops and unroll

(from ocaml/opam:ubuntu-24.04-ocaml-4.14@sha256:3dbac5def7b0152a5bc0ed65bbf067083686f3255a31bec492079c20a2c9b498)
Unable to find image 'ocaml/opam:ubuntu-24.04-ocaml-4.14@sha256:3dbac5def7b0152a5bc0ed65bbf067083686f3255a31bec492079c20a2c9b498' locally
docker.io/ocaml/opam@sha256:3dbac5def7b0152a5bc0ed65bbf067083686f3255a31bec492079c20a2c9b498: Pulling from ocaml/opam
51010dba58bd: Pulling fs layer
51010dba58bd: Verifying Checksum
51010dba58bd: Download complete
51010dba58bd: Pull complete
Digest: sha256:3dbac5def7b0152a5bc0ed65bbf067083686f3255a31bec492079c20a2c9b498
Status: Downloaded newer image for ocaml/opam@sha256:3dbac5def7b0152a5bc0ed65bbf067083686f3255a31bec492079c20a2c9b498
2025-06-17 20:23.52 ---> using "e5afc2ae3625d287ff6ad11e1ee8e8c8b323aef4830c05f394017983edb5ece1" from cache

/: (comment ubuntu-24.04-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/bin/opam-2.3 /usr/bin/opam"))
2025-06-17 20:23.52 ---> using "5378c45e1f53f35b8a2cc57978b8510a8e388e87b11ddebc0a2ef8672782fc07" 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 20:23.52 ---> using "870a79a9cdb1deb7840ad725d9ab2efecd423034bce03d66f2a18be97b573a87" from cache

/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-141-generic
The OCaml toplevel, version 4.14.2
2.3.0
2025-06-17 20:23.52 ---> using "10bc4f77583933fc22d09fff3b6119e5ecf7914e9ab7174dfb7ce9292e5cbc7a" from cache

/src: (workdir /src)

/src: (run (shell "sudo chown opam /src"))
2025-06-17 20:23.52 ---> using "929a7cbd5251e9c159ca9dac600cdedb0ee70ea98d87bda1e61823b61e3558c1" 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 20:23.52 ---> using "b40e04ac7123af4570c874af0e319ec57b89f6486e9a880675258eda564c0391" from cache

/src: (copy (src multicore-bench.opam) (dst ./))
2025-06-17 20:23.52 ---> saved as "362b75cff16f6b7c92c3fbdc08aee48acd617417bde476b6c14e5a7ac7b3be08"

/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 20:23.54 ---> saved as "37f2fb50d14ef96137a94c882e76ae6507547092e587eb07d9d359f20b6e5bf9"

/src: (run (network host)
           (shell "echo '(lang dune 3.0)' > './dune-project'"))
2025-06-17 20:23.55 ---> saved as "8074b5c23b7d44c85318fbbaace75e562858e4a8b26a8d48aec568debdd25127"

/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-base-compiler.4.14.2 ocaml-config.2 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://archive.ubuntu.com/ubuntu noble InRelease
- Get:2 http://archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
- Get:3 http://archive.ubuntu.com/ubuntu noble-backports InRelease [126 kB]
- Get:4 http://security.ubuntu.com/ubuntu noble-security InRelease [126 kB]
- Get:5 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages [1425 kB]
- Get:6 http://archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Packages [1509 kB]
- Get:7 http://security.ubuntu.com/ubuntu noble-security/universe amd64 Packages [1100 kB]
- Get:8 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages [1403 kB]
- Get:9 http://security.ubuntu.com/ubuntu noble-security/main amd64 Packages [1094 kB]
- Fetched 6909 kB in 1s (6400 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 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-06-17 20:24.07 ---> saved as "527c50a5981e78d7941e2a1d459f4d5aacb993f233bcc2f0246a2d37f545f2cb"

/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
  - 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 ocamlbuild.0.16.1
-> installed ocamlfind.1.9.8
-> 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 result.1.5
-> installed camlp-streams.5.0.1
-> installed thread-table.1.0.0
-> installed backoff.0.1.1
-> installed ocaml-version.4.0.1
-> installed multicore-magic.2.3.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-17 20:24.40 ---> saved as "d6c87553b3ec116457677bf4f9302e3d2f4a87d65978132c111144fd18286161"

/src: (copy (src .) (dst /src))
2025-06-17 20:24.40 ---> saved as "77d5345b4540a64be759e7a31139094c5e9a3dbb548d1a8f482fff5f877895e9"

/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:
    237.25 M/s
  ops over time/get:
    2882.41 M/s
  ops over time/incr:
    351.77 M/s
  ops over time/push & pop:
    106.05 M/s
  ops over time/swap:
    134.00 M/s
  ops over time/xchg int:
    200.07 M/s
  time per op/cas int:
    4.21 ns
  time per op/get:
    0.35 ns
  time per op/incr:
    2.84 ns
  time per op/push & pop:
    9.43 ns
  time per op/swap:
    7.46 ns
  time per op/xchg int:
    5.00 ns
Atomic incr:
  ops over time/CAS, 1 domains:
    205.82 M/s
  ops over time/CAS with backoff, 1 domains:
    206.16 M/s
  ops over time/Incr, 1 domains:
    352.97 M/s
  time per op/CAS, 1 domains:
    4.86 ns
  time per op/CAS with backoff, 1 domains:
    4.85 ns
  time per op/Incr, 1 domains:
    2.83 ns
Bounded_q:
  messages over time/one domain:
    16.82 M/s
  time per message/one domain:
    59.47 ns
Hashtbl:
  operations over time/1 worker, 10% reads:
    17.42 M/s
  operations over time/1 worker, 50% reads:
    16.61 M/s
  operations over time/1 worker, 90% reads:
    20.28 M/s
  operations over time/2 workers, 10% reads:
    16.68 M/s
  operations over time/2 workers, 50% reads:
    16.44 M/s
  operations over time/2 workers, 90% reads:
    15.12 M/s
  operations over time/4 workers, 10% reads:
    16.41 M/s
  operations over time/4 workers, 50% reads:
    16.03 M/s
  operations over time/4 workers, 90% reads:
    13.32 M/s
  operations over time/8 workers, 10% reads:
    14.21 M/s
  operations over time/8 workers, 50% reads:
    14.00 M/s
  operations over time/8 workers, 90% reads:
    14.96 M/s
  operations over time/one domain, 10% reads:
    24.73 M/s
  operations over time/one domain, 50% reads:
    23.55 M/s
  operations over time/one domain, 90% reads:
    30.02 M/s
  time per operation/1 worker, 10% reads:
    57.41 ns
  time per operation/1 worker, 50% reads:
    60.20 ns
  time per operation/1 worker, 90% reads:
    49.31 ns
  time per operation/2 workers, 10% reads:
    119.92 ns
  time per operation/2 workers, 50% reads:
    121.63 ns
  time per operation/2 workers, 90% reads:
    132.27 ns
  time per operation/4 workers, 10% reads:
    243.82 ns
  time per operation/4 workers, 50% reads:
    249.48 ns
  time per operation/4 workers, 90% reads:
    300.35 ns
  time per operation/8 workers, 10% reads:
    563.15 ns
  time per operation/8 workers, 50% reads:
    571.28 ns
  time per operation/8 workers, 90% reads:
    549.42 ns
  time per operation/one domain, 10% reads:
    40.44 ns
  time per operation/one domain, 50% reads:
    42.47 ns
  time per operation/one domain, 90% reads:
    33.31 ns
Queue:
  messages over time/one domain:
    42.39 M/s
  time per message/one domain:
    23.59 ns
Ref with Mutex:
  ops over time/cas int:
    52.78 M/s
  ops over time/get:
    51.15 M/s
  ops over time/incr:
    51.10 M/s
  ops over time/push & pop:
    51.41 M/s
  ops over time/swap:
    54.16 M/s
  ops over time/xchg int:
    56.02 M/s
  time per op/cas int:
    18.95 ns
  time per op/get:
    19.55 ns
  time per op/incr:
    19.57 ns
  time per op/push & pop:
    19.45 ns
  time per op/swap:
    18.47 ns
  time per op/xchg int:
    17.85 ns
Ref with [@poll error]:
  ops over time/cas int:
    221.08 M/s
  ops over time/get:
    2904.55 M/s
  ops over time/incr:
    442.12 M/s
  ops over time/push & pop:
    102.72 M/s
  ops over time/swap:
    122.95 M/s
  ops over time/xchg int:
    240.19 M/s
  time per op/cas int:
    4.52 ns
  time per op/get:
    0.34 ns
  time per op/incr:
    2.26 ns
  time per op/push & pop:
    9.73 ns
  time per op/swap:
    8.13 ns
  time per op/xchg int:
    4.16 ns
Stack:
  messages over time/one domain:
    47.14 M/s
  time per message/one domain:
    21.21 ns
Unix:
  blocking reads over time/1 worker:
    0.37 M/s
  time per blocking read/1 worker:
    2709.96 ns
2025-06-17 20:24.45 ---> saved as "e66b7b7b51f0ce6db2c42f9a41195eac6fbea76bb5f4d779550448d6c8e41a7c"
Job succeeded
2025-06-17 20:24.45: Job succeeded