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:fedora-40-4.14_opam-2.2)
Base: ocaml/opam:fedora-40-ocaml-4.14@sha256:7a559fbce3a98093c0094707c7eec2d9d32c1dbf3fec97d107ee0221607570f2
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:fedora-40-ocaml-4.14@sha256:7a559fbce3a98093c0094707c7eec2d9d32c1dbf3fec97d107ee0221607570f2
# fedora-40-4.14_opam-2.2
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
WORKDIR /src
RUN sudo dnf install -y findutils
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:fedora-40-ocaml-4.14@sha256:7a559fbce3a98093c0094707c7eec2d9d32c1dbf3fec97d107ee0221607570f2-fedora-40-4.14_opam-2.2-8eb9b3889d1857e02caa258b6a665f2c"
2024-09-11 13:30.32: Using OBuilder spec:
((from ocaml/opam:fedora-40-ocaml-4.14@sha256:7a559fbce3a98093c0094707c7eec2d9d32c1dbf3fec97d107ee0221607570f2)
(comment fedora-40-4.14_opam-2.2)
(user (uid 1000) (gid 1000))
(env CLICOLOR_FORCE 1)
(env OPAMCOLOR always)
(workdir /src)
(run (network host)
(shell "sudo dnf install -y findutils"))
(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.13: Waiting for worker…
2024-09-11 14:10.27: Got resource from pool OCluster
Building on x86-bm-c13.sw.ocaml.org
All commits already cached
HEAD is now at 298c5d1 Add a naïve bounded queue benchmark
(from ocaml/opam:fedora-40-ocaml-4.14@sha256:7a559fbce3a98093c0094707c7eec2d9d32c1dbf3fec97d107ee0221607570f2)
Unable to find image 'ocaml/opam:fedora-40-ocaml-4.14@sha256:7a559fbce3a98093c0094707c7eec2d9d32c1dbf3fec97d107ee0221607570f2' locally
docker.io/ocaml/opam@sha256:7a559fbce3a98093c0094707c7eec2d9d32c1dbf3fec97d107ee0221607570f2: Pulling from ocaml/opam
713ced3240da: Pulling fs layer
713ced3240da: Waiting
713ced3240da: Verifying Checksum
713ced3240da: Download complete
713ced3240da: Pull complete
Digest: sha256:7a559fbce3a98093c0094707c7eec2d9d32c1dbf3fec97d107ee0221607570f2
Status: Downloaded newer image for ocaml/opam@sha256:7a559fbce3a98093c0094707c7eec2d9d32c1dbf3fec97d107ee0221607570f2
2024-09-11 14:10.28 ---> using "d935b78b3b3d1b9175556810bedcd612a82afc930885b14f52a4ce87dfe76c2d" from cache
/: (comment fedora-40-4.14_opam-2.2)
/: (user (uid 1000) (gid 1000))
/: (env CLICOLOR_FORCE 1)
/: (env OPAMCOLOR always)
/: (workdir /src)
/src: (run (network host)
(shell "sudo dnf install -y findutils"))
Fedora 40 - x86_64 357 kB/s | 28 kB 00:00
Fedora 40 openh264 (From Cisco) - x86_64 15 kB/s | 989 B 00:00
Fedora 40 - x86_64 - Updates 171 kB/s | 12 kB 00:00
Fedora 40 - x86_64 - Updates 6.7 MB/s | 4.8 MB 00:00
Package findutils-1:4.9.0-9.fc40.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
2024-09-11 14:10.28 ---> using "b95dac668c44721e374419201a9bd94f72da55184895174c6c06fd9a8d08cc60" from cache
/src: (run (shell "sudo ln -f /usr/bin/opam-2.2 /usr/bin/opam"))
2024-09-11 14:10.28 ---> using "18d966f9d7a48212549a29d80cabca0c2ad8ff0c9cf80df3c4bc95ce0a8036a6" 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.28 ---> using "b511d78c82857fc94cf916a0e91483566fbaa3ae9d3b6eacde46cf485be8912d" 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.28 ---> using "342175cbcca3d2e7439a8e49d953a41a641fd33389ae32a64d0e026e1e56cd76" from cache
/src: (workdir /src)
/src: (run (shell "sudo chown opam /src"))
2024-09-11 14:10.28 ---> using "2c702272e1dedf073d86e5921443fe8509d1dae712d6127840e3496ff9662007" 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.28 ---> using "7f34094f1f36c47a8f670206150e19c0b09e315b13430475e8e02e97fd797948" from cache
/src: (copy (src multicore-bench.opam) (dst ./))
2024-09-11 14:10.28 ---> saved as "ae24b4c78dc42f8322266ff256f41823852c9e11dd017ae9235b1750f6603450"
/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.29 ---> saved as "98c17ee577b78e423a35a6b2a4a994e6a2744da3da045f1923becefd9b5e3366"
/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 "yum" "makecache"
- Fedora 40 - x86_64 343 kB/s | 28 kB 00:00
- Fedora 40 openh264 (From Cisco) - x86_64 14 kB/s | 989 B 00:00
- Fedora 40 - x86_64 - Updates 174 kB/s | 12 kB 00:00
- Metadata cache created.
<><> 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.57 ---> saved as "2d13d3a42d9c9c4a747e73acb439721addeb5a9982ef6720e1af03927e4654df"
/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 cmdliner.1.3.0 (cached)
-> retrieved cppo.1.7.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 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.16.0
-> installed domain_shims.0.1.0
-> installed csexp.1.5.2
-> installed result.1.5
-> installed thread-table.1.0.0
-> installed camlp-streams.5.0.1
-> installed backoff.0.1.0
-> installed multicore-magic.2.3.0
-> installed ocaml-version.3.6.8
-> installed domain-local-await.1.0.1
-> installed cppo.1.7.0
-> installed re.1.12.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:12.35 ---> saved as "a39767c2e802a41a882c793ea523ae2b772709de36d186b3113c788b0c96cbcf"
/src: (copy (src .) (dst /src))
2024-09-11 14:12.36 ---> saved as "9560c2e33866231d9783a132862546210462bdc953250b8ee022d5320eaee80a"
/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.98 ns
ops over time/get:
335.48 M/s
time per op/incr:
5.45 ns
ops over time/incr:
183.47 M/s
time per op/push & pop:
29.77 ns
ops over time/push & pop:
33.59 M/s
time per op/cas int:
9.69 ns
ops over time/cas int:
103.23 M/s
time per op/xchg int:
9.43 ns
ops over time/xchg int:
106.02 M/s
time per op/swap:
18.62 ns
ops over time/swap:
53.70 M/s
Atomic incr:
time per op/CAS, 1 domains:
9.54 ns
ops over time/CAS, 1 domains:
104.86 M/s
time per op/CAS with backoff, 1 domains:
9.59 ns
ops over time/CAS with backoff, 1 domains:
104.24 M/s
time per op/Incr, 1 domains:
4.74 ns
ops over time/Incr, 1 domains:
211.16 M/s
Bounded_q:
time per message/one domain:
200.37 ns
messages over time/one domain:
4.99 M/s
Hashtbl:
time per operation/one domain, 10% reads:
94.33 ns
operations over time/one domain, 10% reads:
10.60 M/s
time per operation/one domain, 50% reads:
91.00 ns
operations over time/one domain, 50% reads:
10.99 M/s
time per operation/one domain, 90% reads:
82.31 ns
operations over time/one domain, 90% reads:
12.15 M/s
time per operation/1 worker, 10% reads:
168.31 ns
operations over time/1 worker, 10% reads:
5.94 M/s
time per operation/2 workers, 10% reads:
342.55 ns
operations over time/2 workers, 10% reads:
5.84 M/s
time per operation/4 workers, 10% reads:
699.83 ns
operations over time/4 workers, 10% reads:
5.72 M/s
time per operation/8 workers, 10% reads:
1375.42 ns
operations over time/8 workers, 10% reads:
5.82 M/s
time per operation/1 worker, 50% reads:
163.91 ns
operations over time/1 worker, 50% reads:
6.10 M/s
time per operation/2 workers, 50% reads:
342.70 ns
operations over time/2 workers, 50% reads:
5.84 M/s
time per operation/4 workers, 50% reads:
730.41 ns
operations over time/4 workers, 50% reads:
5.48 M/s
time per operation/8 workers, 50% reads:
1466.45 ns
operations over time/8 workers, 50% reads:
5.46 M/s
time per operation/1 worker, 90% reads:
162.66 ns
operations over time/1 worker, 90% reads:
6.15 M/s
time per operation/2 workers, 90% reads:
326.49 ns
operations over time/2 workers, 90% reads:
6.13 M/s
time per operation/4 workers, 90% reads:
666.68 ns
operations over time/4 workers, 90% reads:
6.00 M/s
time per operation/8 workers, 90% reads:
1369.93 ns
operations over time/8 workers, 90% reads:
5.84 M/s
Queue:
time per message/one domain:
41.21 ns
messages over time/one domain:
24.26 M/s
Ref with Mutex:
time per op/get:
74.49 ns
ops over time/get:
13.42 M/s
time per op/incr:
72.49 ns
ops over time/incr:
13.79 M/s
time per op/push & pop:
86.93 ns
ops over time/push & pop:
11.50 M/s
time per op/cas int:
81.08 ns
ops over time/cas int:
12.33 M/s
time per op/xchg int:
79.87 ns
ops over time/xchg int:
12.52 M/s
time per op/swap:
83.74 ns
ops over time/swap:
11.94 M/s
Ref with [@poll error]:
time per op/get:
2.66 ns
ops over time/get:
375.60 M/s
time per op/incr:
4.55 ns
ops over time/incr:
219.61 M/s
time per op/push & pop:
29.70 ns
ops over time/push & pop:
33.67 M/s
time per op/cas int:
9.51 ns
ops over time/cas int:
105.16 M/s
time per op/xchg int:
9.45 ns
ops over time/xchg int:
105.77 M/s
time per op/swap:
18.07 ns
ops over time/swap:
55.34 M/s
Stack:
time per message/one domain:
37.22 ns
messages over time/one domain:
26.86 M/s
Unix:
time per blocking read/1 worker:
2044.52 ns
blocking reads over time/1 worker:
0.49 M/s
2024-09-11 14:12.47 ---> saved as "338b490c0d48315d710d7027f6f6e4a546f6d253548141dc605e80ff1e768136"
Job succeeded
2024-09-11 14:12.47: Job succeeded