Organisationsocaml-multicoremulticore-bench298c5d ()ubuntu-22.04-4.14_opam-2.2

ubuntu-22.04-4.14_opam-2.2

Link Copied
Code Copied

Logs

2024-09-11 13:30.32: New job: test ocaml-multicore/multicore-bench https://github.com/ocaml-multicore/multicore-bench.git#refs/heads/main (298c5d1e24da82a9640825ef4a68b9aef88daaca) (linux-x86_64:ubuntu-22.04-4.14_opam-2.2)
Base: ocaml/opam:ubuntu-22.04-ocaml-4.14@sha256:bfe12737bf4a542f088c549db9de8660275ea61adb31a76bbe549a3b3d3a0f3b
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 298c5d1e
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:ubuntu-22.04-ocaml-4.14@sha256:bfe12737bf4a542f088c549db9de8660275ea61adb31a76bbe549a3b3d3a0f3b
# ubuntu-22.04-4.14_opam-2.2
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
WORKDIR /src
RUN sudo ln -f /usr/bin/opam-2.2 /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 0329818dcfd3de1a722ea09eeeed94cd24caa375 || git fetch origin master) && git reset -q --hard 0329818dcfd3de1a722ea09eeeed94cd24caa375 && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 multicore-bench.opam ./
RUN opam pin add -yn multicore-bench.dev './'
ENV DEPS="astring.0.8.5 backoff.0.1.0 base-bigarray.base base-threads.base base-unix.base camlp-streams.5.0.1 cmdliner.1.3.0 cppo.1.7.0 csexp.1.5.2 domain-local-await.1.0.1 domain_shims.0.1.0 dune.3.16.0 fmt.0.9.0 host-arch-x86_64.1 host-system-other.1 logs.0.7.0 mdx.2.4.1 mtime.2.1.0 multicore-magic.2.3.0 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-config.2 ocaml-options-vanilla.1 ocaml-version.3.6.8 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.2 --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


2024-09-11 13:30.32: Using cache hint "ocaml-multicore/multicore-bench-ocaml/opam:ubuntu-22.04-ocaml-4.14@sha256:bfe12737bf4a542f088c549db9de8660275ea61adb31a76bbe549a3b3d3a0f3b-ubuntu-22.04-4.14_opam-2.2-8eb9b3889d1857e02caa258b6a665f2c"
2024-09-11 13:30.32: Using OBuilder spec:
((from ocaml/opam:ubuntu-22.04-ocaml-4.14@sha256:bfe12737bf4a542f088c549db9de8660275ea61adb31a76bbe549a3b3d3a0f3b)
 (comment ubuntu-22.04-4.14_opam-2.2)
 (user (uid 1000) (gid 1000))
 (env CLICOLOR_FORCE 1)
 (env OPAMCOLOR always)
 (workdir /src)
 (run (shell "sudo ln -f /usr/bin/opam-2.2 /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 0329818dcfd3de1a722ea09eeeed94cd24caa375 || git fetch origin master) && git reset -q --hard 0329818dcfd3de1a722ea09eeeed94cd24caa375 && 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 './'"))
 (env DEPS "astring.0.8.5 backoff.0.1.0 base-bigarray.base base-threads.base base-unix.base camlp-streams.5.0.1 cmdliner.1.3.0 cppo.1.7.0 csexp.1.5.2 domain-local-await.1.0.1 domain_shims.0.1.0 dune.3.16.0 fmt.0.9.0 host-arch-x86_64.1 host-system-other.1 logs.0.7.0 mdx.2.4.1 mtime.2.1.0 multicore-magic.2.3.0 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-config.2 ocaml-options-vanilla.1 ocaml-version.3.6.8 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.2 --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"))
)


2024-09-11 13:30.32: Waiting for resource in pool OCluster
2024-09-11 14:05.09: Waiting for worker…
2024-09-11 14:10.18: Got resource from pool OCluster
Building on x86-bm-c14.sw.ocaml.org
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 298c5d1 Add a naïve bounded queue benchmark


(from ocaml/opam:ubuntu-22.04-ocaml-4.14@sha256:bfe12737bf4a542f088c549db9de8660275ea61adb31a76bbe549a3b3d3a0f3b)
2024-09-11 14:10.19 ---> using "3b1d796d4ab03ba28850821333a779af93a54b623ca10f0f8071bbddb9a77fe2" from cache


/: (comment ubuntu-22.04-4.14_opam-2.2)


/: (user (uid 1000) (gid 1000))


/: (env CLICOLOR_FORCE 1)


/: (env OPAMCOLOR always)


/: (workdir /src)


/src: (run (shell "sudo ln -f /usr/bin/opam-2.2 /usr/bin/opam"))
2024-09-11 14:10.19 ---> using "b3f1df0841bb6bff262e9e232de63955a7e2bf42a50d4d48801c231b77dd97bb" 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
2024-09-11 14:10.19 ---> using "351ae63cbc51bb78584e5dde1500c567cac34917132fe5c2e8a67e8addb5a033" from cache


/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-119-generic
The OCaml toplevel, version 4.14.2
2.2.1
2024-09-11 14:10.19 ---> using "4840080ecfbde58f28f29ccce44c1029f96699b5a7526e9af8732fd2129199d4" from cache


/src: (workdir /src)


/src: (run (shell "sudo chown opam /src"))
2024-09-11 14:10.19 ---> using "3ef076a16b9c4431eb7e81bf843f9267211d8d42a91a84ac9436f62d2ca5fd90" from cache


/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
           (network host)
           (shell "cd ~/opam-repository && (git cat-file -e 0329818dcfd3de1a722ea09eeeed94cd24caa375 || git fetch origin master) && git reset -q --hard 0329818dcfd3de1a722ea09eeeed94cd24caa375 && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
 * branch                  master     -> FETCH_HEAD
   e89899ac28..0329818dcf  master     -> origin/master
0329818dcf Merge pull request #26527 from dbuenzli/b0-publish-mtime.2.1.0-etc-b00ab5a8b3cb608d


<><> 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.
# Run eval $(opam env) to update the current shell environment
2024-09-11 14:10.19 ---> using "57ab7d374fa0ec7e9c07abdb17b1729bdaf7ca1e4177be0658bbc27963291043" from cache


/src: (copy (src multicore-bench.opam) (dst ./))
2024-09-11 14:10.19 ---> saved as "78f1d5bb6625b9c0e36b97010cbec4d5456c1627e05d9e749bd16667d2b040aa"


/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)
2024-09-11 14:10.22 ---> saved as "5990b2f43cf740ad15e7deb2403aec84631c39051fcc4e1f45f37e3b95253eb4"


/src: (env DEPS "astring.0.8.5 backoff.0.1.0 base-bigarray.base base-threads.base base-unix.base camlp-streams.5.0.1 cmdliner.1.3.0 cppo.1.7.0 csexp.1.5.2 domain-local-await.1.0.1 domain_shims.0.1.0 dune.3.16.0 fmt.0.9.0 host-arch-x86_64.1 host-system-other.1 logs.0.7.0 mdx.2.4.1 mtime.2.1.0 multicore-magic.2.3.0 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-config.2 ocaml-options-vanilla.1 ocaml-version.3.6.8 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.2 --depext-only -y multicore-bench.dev $DEPS"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
- Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB]
- Get:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]
- Hit:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
- Get:5 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [2224 kB]
- Get:6 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [2967 kB]
- Get:7 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1438 kB]
- Get:8 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [1149 kB]
- Get:9 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [44.7 kB]
- Get:10 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [51.8 kB]
- Get:11 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [2499 kB]
- Get:12 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [3045 kB]
- Fetched 13.7 MB in 1s (11.9 MB/s)
- Reading package lists...
- 


<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[multicore-bench.dev] synchronised (no changes)


[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 host-system-other is already installed (current version is 1).
[NOTE] Package host-arch-x86_64 is already installed (current version is 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).
2024-09-11 14:10.48 ---> saved as "42bcfb8c5e2f4dead77a1f713f1b6a15da7b1d229e98f3f5b0fbb2bdcacc0b35"


/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 host-system-other is already installed (current version is 1).
[NOTE] Package host-arch-x86_64 is already installed (current version is 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.0
  - install camlp-streams      5.0.1
  - install cmdliner           1.3.0
  - install cppo               1.7.0
  - install csexp              1.5.2
  - install domain-local-await 1.0.1
  - install domain_shims       0.1.0
  - install dune               3.16.0
  - install fmt                0.9.0
  - install logs               0.7.0
  - install mdx                2.4.1
  - install mtime              2.1.0
  - install multicore-magic    2.3.0
  - install ocaml-version      3.6.8
  - 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.0  (cached)
-> retrieved astring.0.8.5  (cached)
-> retrieved camlp-streams.5.0.1  (cached)
-> retrieved cppo.1.7.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.9.0  (cached)
-> retrieved logs.0.7.0  (cached)
-> retrieved mtime.2.1.0  (cached)
-> retrieved mdx.2.4.1  (cached)
-> retrieved multicore-magic.2.3.0  (cached)
-> retrieved ocaml-version.3.6.8  (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.16.0  (cached)
-> installed cmdliner.1.3.0
-> installed ocamlbuild.0.15.0
-> installed ocamlfind.1.9.6
-> 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.16.0
-> installed domain_shims.0.1.0
-> installed csexp.1.5.2
-> installed result.1.5
-> installed thread-table.1.0.0
-> installed multicore-magic.2.3.0
-> installed backoff.0.1.0
-> installed camlp-streams.5.0.1
-> installed ocaml-version.3.6.8
-> installed domain-local-await.1.0.1
-> installed re.1.12.0
-> installed cppo.1.7.0
-> installed yojson.2.2.2
-> installed mdx.2.4.1
Done.
# Run eval $(opam env) to update the current shell environment
2024-09-11 14:11.36 ---> saved as "c2e5aaa06c7353ed5a48252c141cedc962f4c37cfbbac302deef42cc80894045"


/src: (copy (src .) (dst /src))
2024-09-11 14:11.36 ---> saved as "e4daa64a7955f5a1920b5b1b8b0308f4904cff98fe701f5d18191dd49d9e27cf"


/src: (run (shell "opam exec -- dune build @install @check @runtest && rm -rf _build"))
(cd _build/default/bench && ./main.exe -brief)
Atomic:
  time per op/get:
    2.43 ns
  ops over time/get:
    411.25 M/s
  time per op/incr:
    4.07 ns
  ops over time/incr:
    245.56 M/s
  time per op/push & pop:
    15.51 ns
  ops over time/push & pop:
    64.48 M/s
  time per op/cas int:
    6.21 ns
  ops over time/cas int:
    160.91 M/s
  time per op/xchg int:
    6.81 ns
  ops over time/xchg int:
    146.82 M/s
  time per op/swap:
    12.98 ns
  ops over time/swap:
    77.03 M/s
Atomic incr:
  time per op/CAS, 1 domains:
    8.57 ns
  ops over time/CAS, 1 domains:
    116.72 M/s
  time per op/CAS with backoff, 1 domains:
    5.45 ns
  ops over time/CAS with backoff, 1 domains:
    183.45 M/s
  time per op/Incr, 1 domains:
    4.21 ns
  ops over time/Incr, 1 domains:
    237.50 M/s
Bounded_q:
  time per message/one domain:
    191.76 ns
  messages over time/one domain:
    5.21 M/s
Hashtbl:
  time per operation/one domain, 10% reads:
    61.21 ns
  operations over time/one domain, 10% reads:
    16.34 M/s
  time per operation/one domain, 50% reads:
    85.07 ns
  operations over time/one domain, 50% reads:
    11.75 M/s
  time per operation/one domain, 90% reads:
    67.34 ns
  operations over time/one domain, 90% reads:
    14.85 M/s
  time per operation/1 worker, 10% reads:
    108.07 ns
  operations over time/1 worker, 10% reads:
    9.25 M/s
  time per operation/2 workers, 10% reads:
    246.60 ns
  operations over time/2 workers, 10% reads:
    8.11 M/s
  time per operation/4 workers, 10% reads:
    496.58 ns
  operations over time/4 workers, 10% reads:
    8.06 M/s
  time per operation/8 workers, 10% reads:
    1403.33 ns
  operations over time/8 workers, 10% reads:
    5.70 M/s
  time per operation/1 worker, 50% reads:
    158.63 ns
  operations over time/1 worker, 50% reads:
    6.30 M/s
  time per operation/2 workers, 50% reads:
    349.76 ns
  operations over time/2 workers, 50% reads:
    5.72 M/s
  time per operation/4 workers, 50% reads:
    697.21 ns
  operations over time/4 workers, 50% reads:
    5.74 M/s
  time per operation/8 workers, 50% reads:
    1347.97 ns
  operations over time/8 workers, 50% reads:
    5.93 M/s
  time per operation/1 worker, 90% reads:
    147.95 ns
  operations over time/1 worker, 90% reads:
    6.76 M/s
  time per operation/2 workers, 90% reads:
    332.64 ns
  operations over time/2 workers, 90% reads:
    6.01 M/s
  time per operation/4 workers, 90% reads:
    630.11 ns
  operations over time/4 workers, 90% reads:
    6.35 M/s
  time per operation/8 workers, 90% reads:
    1248.17 ns
  operations over time/8 workers, 90% reads:
    6.41 M/s
Queue:
  time per message/one domain:
    27.90 ns
  messages over time/one domain:
    35.85 M/s
Ref with Mutex:
  time per op/get:
    47.14 ns
  ops over time/get:
    21.21 M/s
  time per op/incr:
    47.54 ns
  ops over time/incr:
    21.04 M/s
  time per op/push & pop:
    50.56 ns
  ops over time/push & pop:
    19.78 M/s
  time per op/cas int:
    76.07 ns
  ops over time/cas int:
    13.15 M/s
  time per op/xchg int:
    75.69 ns
  ops over time/xchg int:
    13.21 M/s
  time per op/swap:
    77.58 ns
  ops over time/swap:
    12.89 M/s
Ref with [@poll error]:
  time per op/get:
    1.90 ns
  ops over time/get:
    526.83 M/s
  time per op/incr:
    3.83 ns
  ops over time/incr:
    261.40 M/s
  time per op/push & pop:
    15.31 ns
  ops over time/push & pop:
    65.33 M/s
  time per op/cas int:
    6.72 ns
  ops over time/cas int:
    148.78 M/s
  time per op/xchg int:
    6.38 ns
  ops over time/xchg int:
    156.65 M/s
  time per op/swap:
    9.57 ns
  ops over time/swap:
    104.54 M/s
Stack:
  time per message/one domain:
    28.28 ns
  messages over time/one domain:
    35.36 M/s
Unix:
  time per blocking read/1 worker:
    2400.55 ns
  blocking reads over time/1 worker:
    0.42 M/s
2024-09-11 14:11.43 ---> saved as "ca6d74e750a6c9a90c3d7488e468b6b8eecf142b0de36f61a5216ac13c91ed0d"
Job succeeded
2024-09-11 14:11.43: Job succeeded