2025-01-18 18:26.27: New job: test ocaml-multicore/multicore-bench https://github.com/ocaml-multicore/multicore-bench.git#refs/heads/main (c4f3be59867507af48fa279a46910f291750f0fa) (linux-x86_64:debian-12-4.12_opam-2.3) Base: ocaml/opam:debian-12-ocaml-4.12@sha256:49fb8acea8e6f12a373593632df64eeef5d1843dca61e0f72a4a6670a5c6f8d4 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 c4f3be59 cat > Dockerfile <<'END-OF-DOCKERFILE' FROM ocaml/opam:debian-12-ocaml-4.12@sha256:49fb8acea8e6f12a373593632df64eeef5d1843dca61e0f72a4a6670a5c6f8d4 # debian-12-4.12_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 da383c8610c72e3b8a92e6327148910d1d81cd57 || git fetch origin master) && git reset -q --hard da383c8610c72e3b8a92e6327148910d1d81cd57 && 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.12.1 ocaml-base-compiler.4.12.1 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-18 18:26.27: Using cache hint "ocaml-multicore/multicore-bench-ocaml/opam:debian-12-ocaml-4.12@sha256:49fb8acea8e6f12a373593632df64eeef5d1843dca61e0f72a4a6670a5c6f8d4-debian-12-4.12_opam-2.3-6d6e0c99914069bb3422f923cccee540" 2025-01-18 18:26.27: Using OBuilder spec: ((from ocaml/opam:debian-12-ocaml-4.12@sha256:49fb8acea8e6f12a373593632df64eeef5d1843dca61e0f72a4a6670a5c6f8d4) (comment debian-12-4.12_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 da383c8610c72e3b8a92e6327148910d1d81cd57 || git fetch origin master) && git reset -q --hard da383c8610c72e3b8a92e6327148910d1d81cd57 && 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.12.1 ocaml-base-compiler.4.12.1 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-18 18:26.27: Waiting for resource in pool OCluster 2025-01-18 19:15.12: Waiting for worker… 2025-01-18 19:19.49: Got resource from pool OCluster Building on x86-bm-c2.sw.ocaml.org All commits already cached HEAD is now at c4f3be5 Bench and test with OCaml 5.3 and drop <5.2.1 from Windows tests (from ocaml/opam:debian-12-ocaml-4.12@sha256:49fb8acea8e6f12a373593632df64eeef5d1843dca61e0f72a4a6670a5c6f8d4) Unable to find image 'ocaml/opam:debian-12-ocaml-4.12@sha256:49fb8acea8e6f12a373593632df64eeef5d1843dca61e0f72a4a6670a5c6f8d4' locally docker.io/ocaml/opam@sha256:49fb8acea8e6f12a373593632df64eeef5d1843dca61e0f72a4a6670a5c6f8d4: Pulling from ocaml/opam 59f85f44b3cb: Pulling fs layer 59f85f44b3cb: Verifying Checksum 59f85f44b3cb: Download complete 59f85f44b3cb: Pull complete Digest: sha256:49fb8acea8e6f12a373593632df64eeef5d1843dca61e0f72a4a6670a5c6f8d4 Status: Downloaded newer image for ocaml/opam@sha256:49fb8acea8e6f12a373593632df64eeef5d1843dca61e0f72a4a6670a5c6f8d4 2025-01-18 19:19.49 ---> using "338e905ca2020cedb5b4db5680b96fac6cfa1ba8b91e8460051222ea2cb1abbd" from cache /: (comment debian-12-4.12_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-01-18 19:19.49 ---> using "932b873768fad24991d2c8a49b748121dd6db05b44978d9813e5a9dc79a036bd" 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] synchronised from file:///home/opam/opam-repository 2025-01-18 19:19.56 ---> saved as "b77544a1bccf07f6188000c980a88c4c7683e1b1a60686f7fdc57dfaf8576e7b" /src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version")) Linux 5.15.0-130-generic The OCaml toplevel, version 4.12.1 2.3.0 2025-01-18 19:19.56 ---> saved as "e17a5bb9dd5e93d0d53671af21e88e44c9f952e938a7104e6129e0cbdf527998" /src: (workdir /src) /src: (run (shell "sudo chown opam /src")) 2025-01-18 19:19.56 ---> saved as "1887ad6218fa7c15028ce84fe94005036a079129154b131c0cd8edad5b08cc6b" /src: (run (cache (opam-archives (target /home/opam/.opam/download-cache))) (network host) (shell "cd ~/opam-repository && (git cat-file -e da383c8610c72e3b8a92e6327148910d1d81cd57 || git fetch origin master) && git reset -q --hard da383c8610c72e3b8a92e6327148910d1d81cd57 && git log --no-decorate -n1 --oneline && opam update -u")) From https://github.com/ocaml/opam-repository * branch master -> FETCH_HEAD 3e681a81f6..da383c8610 master -> origin/master da383c8610 Merge pull request #27275 from xavierleroy/maintenance-intent <><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><> [default] synchronised from 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-01-18 19:21.06 ---> saved as "c835ca556e818cf90c81ce0e28e2f54ce3ed281078d7f406b12a1c67cef40ca6" /src: (copy (src multicore-bench.opam) (dst ./)) 2025-01-18 19:21.06 ---> saved as "419772759b5df1329c2e75f127e6b379119dc7efc8fdaea230e733c7b447ecc0" /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-18 19:21.08 ---> saved as "bc2774f34f222ddfb539bff960e7af7f03f85677c188a97cd77552afe6eb33f0" /src: (run (network host) (shell "echo '(lang dune 3.0)' > './dune-project'")) 2025-01-18 19:21.08 ---> saved as "d20a2c2e67f4c3b1a7e017d7a343d8c670bbaa1ad257a29458880fec8184220b" /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.12.1 ocaml-base-compiler.4.12.1 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")) + /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 [241 kB] - Fetched 344 kB in 0s (1263 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.12.1). [NOTE] Package ocaml is already installed (current version is 4.12.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-bigarray is already installed (current version is base). 2025-01-18 19:21.30 ---> saved as "71835fbdd1aacfe9ac66c39d0df98cb0d25cac429700cd2e63fe76352e3a324a" /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.12.1). [NOTE] Package ocaml is already installed (current version is 4.12.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-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.17.1 - install fmt 0.9.0 - install logs 0.7.0 - install mdx 2.5.0 - install mtime 2.1.0 - install multicore-magic 2.3.1 - install ocaml-version 3.7.3 - install ocamlbuild 0.15.0 - install ocamlfind 1.9.6 - install re 1.12.0 - install result 1.5 - install seq base - install thread-table 1.0.0 - install topkg 1.0.7 - install yojson 2.2.2 <><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><> -> retrieved backoff.0.1.1 (cached) -> retrieved camlp-streams.5.0.1 (cached) -> retrieved astring.0.8.5 (cached) -> retrieved cppo.1.8.0 (cached) -> retrieved csexp.1.5.2 (cached) -> retrieved domain-local-await.1.0.1 (cached) -> retrieved cmdliner.1.3.0 (cached) -> retrieved domain_shims.0.1.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.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 result.1.5 (cached) -> retrieved thread-table.1.0.0 (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 domain_shims.0.1.0 -> installed csexp.1.5.2 -> installed multicore-magic.2.3.1 -> installed backoff.0.1.1 -> installed camlp-streams.5.0.1 -> installed result.1.5 -> installed thread-table.1.0.0 -> installed ocaml-version.3.7.3 -> 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. # To update the current shell environment, run: eval $(opam env) 2025-01-18 19:22.35 ---> saved as "73e5981cc83284f28b37820da07fe26bb779c3c5efd9ca249c153e3505035a9a" /src: (copy (src .) (dst /src)) 2025-01-18 19:22.35 ---> saved as "827fd1c0e893423422499b02da60ce85caab2a8888fe9c393f0eb0ffc2a1f3ac" /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: 112.24 M/s ops over time/get: 525.86 M/s ops over time/incr: 243.36 M/s ops over time/push & pop: 60.92 M/s ops over time/swap: 64.17 M/s ops over time/xchg int: 114.19 M/s time per op/cas int: 8.91 ns time per op/get: 1.90 ns time per op/incr: 4.11 ns time per op/push & pop: 16.42 ns time per op/swap: 15.58 ns time per op/xchg int: 8.76 ns Atomic incr: ops over time/CAS, 1 domains: 209.04 M/s ops over time/CAS with backoff, 1 domains: 197.02 M/s ops over time/Incr, 1 domains: 226.12 M/s time per op/CAS, 1 domains: 4.78 ns time per op/CAS with backoff, 1 domains: 5.08 ns time per op/Incr, 1 domains: 4.42 ns Bounded_q: messages over time/one domain: 8.61 M/s time per message/one domain: 116.20 ns Hashtbl: operations over time/1 worker, 10% reads: 9.77 M/s operations over time/1 worker, 50% reads: 6.40 M/s operations over time/1 worker, 90% reads: 6.84 M/s operations over time/2 workers, 10% reads: 9.64 M/s operations over time/2 workers, 50% reads: 6.38 M/s operations over time/2 workers, 90% reads: 9.90 M/s operations over time/4 workers, 10% reads: 9.10 M/s operations over time/4 workers, 50% reads: 6.42 M/s operations over time/4 workers, 90% reads: 9.64 M/s operations over time/8 workers, 10% reads: 9.22 M/s operations over time/8 workers, 50% reads: 9.07 M/s operations over time/8 workers, 90% reads: 9.35 M/s operations over time/one domain, 10% reads: 16.48 M/s operations over time/one domain, 50% reads: 16.29 M/s operations over time/one domain, 90% reads: 17.47 M/s time per operation/1 worker, 10% reads: 102.38 ns time per operation/1 worker, 50% reads: 156.32 ns time per operation/1 worker, 90% reads: 146.22 ns time per operation/2 workers, 10% reads: 207.52 ns time per operation/2 workers, 50% reads: 313.42 ns time per operation/2 workers, 90% reads: 202.03 ns time per operation/4 workers, 10% reads: 439.50 ns time per operation/4 workers, 50% reads: 622.61 ns time per operation/4 workers, 90% reads: 414.78 ns time per operation/8 workers, 10% reads: 868.04 ns time per operation/8 workers, 50% reads: 881.60 ns time per operation/8 workers, 90% reads: 856.03 ns time per operation/one domain, 10% reads: 60.68 ns time per operation/one domain, 50% reads: 61.38 ns time per operation/one domain, 90% reads: 57.26 ns Queue: messages over time/one domain: 37.23 M/s time per message/one domain: 26.86 ns Ref with Mutex: ops over time/cas int: 21.64 M/s ops over time/get: 15.39 M/s ops over time/incr: 15.32 M/s ops over time/push & pop: 20.68 M/s ops over time/swap: 21.40 M/s ops over time/xchg int: 21.58 M/s time per op/cas int: 46.22 ns time per op/get: 64.99 ns time per op/incr: 65.29 ns time per op/push & pop: 48.37 ns time per op/swap: 46.73 ns time per op/xchg int: 46.34 ns Ref with [@poll error]: ops over time/cas int: 165.06 M/s ops over time/get: 471.21 M/s ops over time/incr: 235.12 M/s ops over time/push & pop: 65.19 M/s ops over time/swap: 109.07 M/s ops over time/xchg int: 174.71 M/s time per op/cas int: 6.06 ns time per op/get: 2.12 ns time per op/incr: 4.25 ns time per op/push & pop: 15.34 ns time per op/swap: 9.17 ns time per op/xchg int: 5.72 ns Stack: messages over time/one domain: 42.45 M/s time per message/one domain: 23.55 ns Unix: blocking reads over time/1 worker: 0.37 M/s time per blocking read/1 worker: 2691.05 ns 2025-01-18 19:22.44 ---> saved as "a4814cc2b87f6d56866c49330f3df6b87889bc5e1a2c64ef56dfef63486bb3ce" Job succeeded 2025-01-18 19:22.44: Job succeeded