Organisationsocaml-multicoremulticore-bench298c5d ()alpine-3.20-4.14_opam-2.2

alpine-3.20-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:alpine-3.20-4.14_opam-2.2)
Base: ocaml/opam:alpine-3.20-ocaml-4.14@sha256:ac900c97807cd1ba5e88edabdd59d4977afb30b3a516804e6e7d7979951bfd37
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:alpine-3.20-ocaml-4.14@sha256:ac900c97807cd1ba5e88edabdd59d4977afb30b3a516804e6e7d7979951bfd37
# alpine-3.20-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:alpine-3.20-ocaml-4.14@sha256:ac900c97807cd1ba5e88edabdd59d4977afb30b3a516804e6e7d7979951bfd37-alpine-3.20-4.14_opam-2.2-8eb9b3889d1857e02caa258b6a665f2c"
2024-09-11 13:30.32: Using OBuilder spec:
((from ocaml/opam:alpine-3.20-ocaml-4.14@sha256:ac900c97807cd1ba5e88edabdd59d4977afb30b3a516804e6e7d7979951bfd37)
 (comment alpine-3.20-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.28: Waiting for worker…
2024-09-11 14:10.50: Got resource from pool OCluster
Building on doris.caelum.ci.dev
All commits already cached
HEAD is now at 298c5d1 Add a naïve bounded queue benchmark


(from ocaml/opam:alpine-3.20-ocaml-4.14@sha256:ac900c97807cd1ba5e88edabdd59d4977afb30b3a516804e6e7d7979951bfd37)
Unable to find image 'ocaml/opam:alpine-3.20-ocaml-4.14@sha256:ac900c97807cd1ba5e88edabdd59d4977afb30b3a516804e6e7d7979951bfd37' locally
docker.io/ocaml/opam@sha256:ac900c97807cd1ba5e88edabdd59d4977afb30b3a516804e6e7d7979951bfd37: Pulling from ocaml/opam
0d4a305337eb: Pulling fs layer
0d4a305337eb: Verifying Checksum
0d4a305337eb: Download complete
0d4a305337eb: Pull complete
Digest: sha256:ac900c97807cd1ba5e88edabdd59d4977afb30b3a516804e6e7d7979951bfd37
Status: Downloaded newer image for ocaml/opam@sha256:ac900c97807cd1ba5e88edabdd59d4977afb30b3a516804e6e7d7979951bfd37
2024-09-11 14:10.51 ---> using "360f26edbd0764b52725b6294936e7148bc39f2a4ff846a4d8ad86f052b4c874" from cache


/: (comment alpine-3.20-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.51 ---> using "200c86535b79daa0ed9fd4ec7265f39fc5aade141e9f2cbabb8143f6040bf1c9" 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.51 ---> using "73d522c0d095471d6dfb7023b8f19cc58a229e565a5e67fc05f4c0f5fc25ef6a" 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.51 ---> using "12d274586c7c3985bb430ba0ab811fc24f4571ff854916652190cee37a5be771" from cache


/src: (workdir /src)


/src: (run (shell "sudo chown opam /src"))
2024-09-11 14:10.51 ---> using "1be42e60ed85d47ecf19634ade86e7dfb3d5eb822ffa9f2d57b29239420a3bdb" 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.52 ---> using "b9354c46214ba0f2fdf4c75e0449c677d5074a6e6901e0bde9da47e8a6e50cd5" from cache


/src: (copy (src multicore-bench.opam) (dst ./))
2024-09-11 14:10.52 ---> saved as "431379e18a656842b182185a6237e9813207d0ff2ccd9fde545b5d58875fb61f"


/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.55 ---> saved as "5d74d55f68105eaebba09db0e5e6069cd18536dbf51cde90ed22263f1a6fc0fc"


/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 "apk" "update"
- fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/main/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/community/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
- v3.20.3-23-g96efd53cb4b [https://dl-cdn.alpinelinux.org/alpine/v3.20/main]
- v3.20.3-22-g014dd0c0269 [https://dl-cdn.alpinelinux.org/alpine/v3.20/community]
- v20240807-2136-g15c07d51e05 [https://dl-cdn.alpinelinux.org/alpine/edge/main]
- v20240807-2139-g189fa98d072 [https://dl-cdn.alpinelinux.org/alpine/edge/community]
- v20240807-2131-g17995e3891a [https://dl-cdn.alpinelinux.org/alpine/edge/testing]
- OK: 55083 distinct packages available


<><> 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:11.10 ---> saved as "0b8bb7bd87b3d7fbe329011725422c2ffd7bb90f1c9200f677a5a20fb397edd7"


/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 camlp-streams.5.0.1  (cached)
-> retrieved astring.0.8.5  (cached)
-> retrieved backoff.0.1.0  (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 mdx.2.4.1  (cached)
-> retrieved mtime.2.1.0  (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 topkg.1.0.7  (cached)
-> retrieved yojson.2.2.2  (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 camlp-streams.5.0.1
-> installed result.1.5
-> installed backoff.0.1.0
-> installed thread-table.1.0.0
-> installed ocaml-version.3.6.8
-> installed multicore-magic.2.3.0
-> 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.50 ---> saved as "62afdd22cc40803b2dd9465269077c0eaf1f90b9bfc2cb87e9cb7ed657850ba0"


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


/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:
    1.58 ns
  ops over time/get:
    631.40 M/s
  time per op/incr:
    4.06 ns
  ops over time/incr:
    246.46 M/s
  time per op/push & pop:
    10.54 ns
  ops over time/push & pop:
    94.84 M/s
  time per op/cas int:
    5.21 ns
  ops over time/cas int:
    192.01 M/s
  time per op/xchg int:
    6.15 ns
  ops over time/xchg int:
    162.48 M/s
  time per op/swap:
    7.60 ns
  ops over time/swap:
    131.53 M/s
Atomic incr:
  time per op/CAS, 1 domains:
    4.44 ns
  ops over time/CAS, 1 domains:
    225.07 M/s
  time per op/CAS with backoff, 1 domains:
    4.76 ns
  ops over time/CAS with backoff, 1 domains:
    210.12 M/s
  time per op/Incr, 1 domains:
    4.20 ns
  ops over time/Incr, 1 domains:
    237.86 M/s
Bounded_q:
  time per message/one domain:
    68.81 ns
  messages over time/one domain:
    14.53 M/s
Hashtbl:
  time per operation/one domain, 10% reads:
    44.10 ns
  operations over time/one domain, 10% reads:
    22.67 M/s
  time per operation/one domain, 50% reads:
    44.96 ns
  operations over time/one domain, 50% reads:
    22.24 M/s
  time per operation/one domain, 90% reads:
    35.23 ns
  operations over time/one domain, 90% reads:
    28.38 M/s
  time per operation/1 worker, 10% reads:
    66.96 ns
  operations over time/1 worker, 10% reads:
    14.93 M/s
  time per operation/2 workers, 10% reads:
    132.96 ns
  operations over time/2 workers, 10% reads:
    15.04 M/s
  time per operation/4 workers, 10% reads:
    268.31 ns
  operations over time/4 workers, 10% reads:
    14.91 M/s
  time per operation/8 workers, 10% reads:
    570.05 ns
  operations over time/8 workers, 10% reads:
    14.04 M/s
  time per operation/1 worker, 50% reads:
    67.37 ns
  operations over time/1 worker, 50% reads:
    14.84 M/s
  time per operation/2 workers, 50% reads:
    137.68 ns
  operations over time/2 workers, 50% reads:
    14.53 M/s
  time per operation/4 workers, 50% reads:
    274.61 ns
  operations over time/4 workers, 50% reads:
    14.57 M/s
  time per operation/8 workers, 50% reads:
    592.09 ns
  operations over time/8 workers, 50% reads:
    13.51 M/s
  time per operation/1 worker, 90% reads:
    52.99 ns
  operations over time/1 worker, 90% reads:
    18.87 M/s
  time per operation/2 workers, 90% reads:
    108.45 ns
  operations over time/2 workers, 90% reads:
    18.44 M/s
  time per operation/4 workers, 90% reads:
    217.58 ns
  operations over time/4 workers, 90% reads:
    18.38 M/s
  time per operation/8 workers, 90% reads:
    443.43 ns
  operations over time/8 workers, 90% reads:
    18.04 M/s
Queue:
  time per message/one domain:
    24.94 ns
  messages over time/one domain:
    40.10 M/s
Ref with Mutex:
  time per op/get:
    18.07 ns
  ops over time/get:
    55.33 M/s
  time per op/incr:
    20.51 ns
  ops over time/incr:
    48.75 M/s
  time per op/push & pop:
    21.41 ns
  ops over time/push & pop:
    46.70 M/s
  time per op/cas int:
    20.57 ns
  ops over time/cas int:
    48.61 M/s
  time per op/xchg int:
    22.92 ns
  ops over time/xchg int:
    43.63 M/s
  time per op/swap:
    21.70 ns
  ops over time/swap:
    46.09 M/s
Ref with [@poll error]:
  time per op/get:
    1.65 ns
  ops over time/get:
    607.71 M/s
  time per op/incr:
    3.40 ns
  ops over time/incr:
    293.80 M/s
  time per op/push & pop:
    11.20 ns
  ops over time/push & pop:
    89.25 M/s
  time per op/cas int:
    5.89 ns
  ops over time/cas int:
    169.91 M/s
  time per op/xchg int:
    5.25 ns
  ops over time/xchg int:
    190.50 M/s
  time per op/swap:
    8.04 ns
  ops over time/swap:
    124.42 M/s
Stack:
  time per message/one domain:
    22.37 ns
  messages over time/one domain:
    44.70 M/s
Unix:
  time per blocking read/1 worker:
    2142.24 ns
  blocking reads over time/1 worker:
    0.47 M/s
2024-09-11 14:11.59 ---> saved as "36df917c3b3e24a6f87576b7836160a2c676ee778dfb9c17fbfe7c14ce25c14c"
Job succeeded
2024-09-11 14:12.01: Job succeeded