2024-08-12 08:35.00: New job: test ocaml-multicore/saturn https://github.com/ocaml-multicore/saturn.git#refs/heads/mpmc-two-stack-queue (35fe5bcaece3ceb57105e83c651f6d2f6546b71e) (macos-x86_64:macos-homebrew-5.2_opam-2.2)
Base: macos-homebrew-ocaml-5.2
Opam project build
To reproduce locally:
git clone --recursive "https://github.com/ocaml-multicore/saturn.git" -b "mpmc-two-stack-queue" && cd "saturn" && git reset --hard 35fe5bca
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM macos-homebrew-ocaml-5.2
# macos-homebrew-5.2_opam-2.2
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
RUN ln -f ~/local/bin/opam-2.2 ~/local/bin/opam
RUN opam init --reinit -ni
RUN uname -rs && opam exec -- ocaml -version && opam --version
RUN cd ~/opam-repository && (git cat-file -e 4e32cbc4e890d5fdd0b9afa7d4901c897fbd50e6 || git fetch origin master) && git reset -q --hard 4e32cbc4e890d5fdd0b9afa7d4901c897fbd50e6 && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 saturn_lockfree.opam saturn.opam ./src/./
RUN opam pin add -yn saturn_lockfree.dev './src/./' && \
opam pin add -yn saturn.dev './src/./'
ENV DEPS="alcotest.1.8.0 astring.0.8.5 backoff.0.1.0 base-bigarray.base base-domains.base base-nnp.base base-threads.base base-unix.base cmdliner.1.3.0 containers.3.13.1 csexp.1.5.2 domain-local-await.1.0.1 domain_shims.0.1.0 dscheck.0.5.0 dune.3.16.0 dune-configurator.3.16.0 either.1.0.0 fmt.0.9.0 host-arch-x86_64.1 host-system-other.1 mtime.2.0.0 multicore-bench.0.1.4 multicore-magic.2.3.0 multicore-magic-dscheck.2.3.0 ocaml.5.2.0 ocaml-base-compiler.5.2.0 ocaml-config.3 ocaml-options-vanilla.1 ocaml-syntax-shims.1.0.0 ocamlbuild.0.15.0 ocamlfind.1.9.6 oseq.0.5.1 ounit2.2.2.7 qcheck.0.22 qcheck-alcotest.0.22 qcheck-core.0.22 qcheck-multicoretests-util.0.3 qcheck-ounit.0.22 qcheck-stm.0.3 re.1.11.0 seq.base stdlib-shims.0.3.0 thread-table.1.0.0 topkg.1.0.7 tsort.2.1.0 uutf.1.0.3 yojson.2.2.2"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.2 --depext-only -y saturn_lockfree.dev saturn.dev $DEPS
RUN opam install $DEPS
COPY --chown=1000:1000 . ./src
RUN cd ./src && opam exec -- dune build @install @check @runtest && rm -rf _build
END-OF-DOCKERFILE
docker build .
END-REPRO-BLOCK
2024-08-12 08:35.00: Using cache hint "ocaml-multicore/saturn-macos-homebrew-ocaml-5.2-macos-homebrew-5.2_opam-2.2-c638f5120a0416a46a0207eb6d890569"
2024-08-12 08:35.00: Using OBuilder spec:
((from macos-homebrew-ocaml-5.2)
(comment macos-homebrew-5.2_opam-2.2)
(user (uid 1000) (gid 1000))
(env CLICOLOR_FORCE 1)
(env OPAMCOLOR always)
(run (shell "ln -f ~/local/bin/opam-2.2 ~/local/bin/opam"))
(run (shell "opam init --reinit -ni"))
(run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
(run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e 4e32cbc4e890d5fdd0b9afa7d4901c897fbd50e6 || git fetch origin master) && git reset -q --hard 4e32cbc4e890d5fdd0b9afa7d4901c897fbd50e6 && git log --no-decorate -n1 --oneline && opam update -u"))
(copy (src saturn_lockfree.opam saturn.opam) (dst ./src/./))
(run (network host)
(shell "opam pin add -yn saturn_lockfree.dev './src/./' && \
\nopam pin add -yn saturn.dev './src/./'"))
(env DEPS "alcotest.1.8.0 astring.0.8.5 backoff.0.1.0 base-bigarray.base base-domains.base base-nnp.base base-threads.base base-unix.base cmdliner.1.3.0 containers.3.13.1 csexp.1.5.2 domain-local-await.1.0.1 domain_shims.0.1.0 dscheck.0.5.0 dune.3.16.0 dune-configurator.3.16.0 either.1.0.0 fmt.0.9.0 host-arch-x86_64.1 host-system-other.1 mtime.2.0.0 multicore-bench.0.1.4 multicore-magic.2.3.0 multicore-magic-dscheck.2.3.0 ocaml.5.2.0 ocaml-base-compiler.5.2.0 ocaml-config.3 ocaml-options-vanilla.1 ocaml-syntax-shims.1.0.0 ocamlbuild.0.15.0 ocamlfind.1.9.6 oseq.0.5.1 ounit2.2.2.7 qcheck.0.22 qcheck-alcotest.0.22 qcheck-core.0.22 qcheck-multicoretests-util.0.3 qcheck-ounit.0.22 qcheck-stm.0.3 re.1.11.0 seq.base stdlib-shims.0.3.0 thread-table.1.0.0 topkg.1.0.7 tsort.2.1.0 uutf.1.0.3 yojson.2.2.2")
(env CI true)
(env OCAMLCI true)
(run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
(network host)
(shell "opam update --depexts && opam install --cli=2.2 --depext-only -y saturn_lockfree.dev saturn.dev $DEPS"))
(run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
(network host)
(shell "opam install $DEPS"))
(copy (src .) (dst ./src))
(run (shell "cd ./src && opam exec -- dune build @install @check @runtest && rm -rf _build"))
)
2024-08-12 08:35.00: Waiting for resource in pool OCluster
2024-08-12 08:35.00: Waiting for worker…
2024-08-12 08:35.00: Got resource from pool OCluster
Building on i7-worker-02
HEAD is now at 6ad2c8d MPMC 2-stack queue
HEAD is now at 35fe5bc Add `push_head`
(from macos-homebrew-ocaml-5.2)
2024-08-12 08:35.02 ---> using "9b46fe3d2429f2b9195a02468cb57ac45cfa11fb4a87cb32b5e5375232223327" from cache
/: (comment macos-homebrew-5.2_opam-2.2)
/: (user (uid 1000) (gid 1000))
/: (env CLICOLOR_FORCE 1)
/: (env OPAMCOLOR always)
/: (run (shell "ln -f ~/local/bin/opam-2.2 ~/local/bin/opam"))
2024-08-12 08:35.03 ---> using "b003627c18f5d873361872ecfa38a9a8b5c86cc26245bef1d152887064c98071" from cache
/: (run (shell "opam init --reinit -ni"))
No configuration file found, using 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 version of opam requires an update to the layout of /Users/mac1000/.opam from version 2.1 to version 2.2, which can't be reverted.
You may want to back it up before going further.
Continue? [y/n] y
[NOTE] The 'jobs' option was reset, its value was 1 and its new value will vary according to the current number of cores on your machine. You can restore the fixed value using:
opam option jobs=1 --global
Format upgrade done.
<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] no changes from git+file:///Users/mac1000/opam-repository
2024-08-12 08:35.04 ---> using "408d2cc158c17e89759cf51b146539f00642e287086d5c54f85c33dae9e6a1f9" from cache
/: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Darwin 23.4.0
The OCaml toplevel, version 5.2.0
2.2.0
2024-08-12 08:35.04 ---> using "80c5626e56c363c9237b2d67b74b9ac64751c52cd041543c0fda73b45b911c9a" from cache
/: (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e 4e32cbc4e890d5fdd0b9afa7d4901c897fbd50e6 || git fetch origin master) && git reset -q --hard 4e32cbc4e890d5fdd0b9afa7d4901c897fbd50e6 && git log --no-decorate -n1 --oneline && opam update -u"))
4e32cbc4e8 Add ocaml as a dependency of either
<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from git+file:///Users/mac1000/opam-repository
Everything as up-to-date as possible (run with --verbose to show unavailable upgrades).
The following packages are not being upgraded because the new versions conflict with other installed packages:
- ocaml.5.3.0
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-08-12 08:35.05 ---> using "a549cfb93294c5805a046932ddd3989828be4645c63a108a66481920e692e3bb" from cache
/: (copy (src saturn_lockfree.opam saturn.opam) (dst ./src/./))
2024-08-12 08:35.05 ---> using "6b6ba263f9176857b7ed1215c5feb9cc8bc538ee2298bc9a30d21f156cfb751b" from cache
/: (run (network host)
(shell "opam pin add -yn saturn_lockfree.dev './src/./' && \
\nopam pin add -yn saturn.dev './src/./'"))
[saturn_lockfree.dev] synchronised (file:///Users/mac1000/src)
saturn_lockfree is now pinned to file:///Users/mac1000/src (version dev)
[saturn.dev] synchronised (file:///Users/mac1000/src)
saturn is now pinned to file:///Users/mac1000/src (version dev)
2024-08-12 08:35.06 ---> using "078317ebf73ef5761b735d62ceac9e61a05d9f73017d20df90b4aeef6a67af93" from cache
/: (env DEPS "alcotest.1.8.0 astring.0.8.5 backoff.0.1.0 base-bigarray.base base-domains.base base-nnp.base base-threads.base base-unix.base cmdliner.1.3.0 containers.3.13.1 csexp.1.5.2 domain-local-await.1.0.1 domain_shims.0.1.0 dscheck.0.5.0 dune.3.16.0 dune-configurator.3.16.0 either.1.0.0 fmt.0.9.0 host-arch-x86_64.1 host-system-other.1 mtime.2.0.0 multicore-bench.0.1.4 multicore-magic.2.3.0 multicore-magic-dscheck.2.3.0 ocaml.5.2.0 ocaml-base-compiler.5.2.0 ocaml-config.3 ocaml-options-vanilla.1 ocaml-syntax-shims.1.0.0 ocamlbuild.0.15.0 ocamlfind.1.9.6 oseq.0.5.1 ounit2.2.2.7 qcheck.0.22 qcheck-alcotest.0.22 qcheck-core.0.22 qcheck-multicoretests-util.0.3 qcheck-ounit.0.22 qcheck-stm.0.3 re.1.11.0 seq.base stdlib-shims.0.3.0 thread-table.1.0.0 topkg.1.0.7 tsort.2.1.0 uutf.1.0.3 yojson.2.2.2")
/: (env CI true)
/: (env OCAMLCI true)
/: (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
(network host)
(shell "opam update --depexts && opam install --cli=2.2 --depext-only -y saturn_lockfree.dev saturn.dev $DEPS"))
+ /usr/local/bin/brew "update"
- ==> Updating Homebrew...
- ==> Downloading https://ghcr.io/v2/homebrew/portable-ruby/portable-ruby/blobs/sha256:bd12dc53d0714e477ce2ff4beaeb6ad71a9317271a63c3cd2f5d0427cf42f5c5
- Already downloaded: /Users/mac1000/Library/Caches/Homebrew/portable-ruby-3.3.4_1.el_capitan.bottle.tar.gz
- ==> Pouring portable-ruby-3.3.4_1.el_capitan.bottle.tar.gz
- ==> Homebrew collects anonymous analytics.
- Read the analytics documentation (and how to opt-out) here:
- https://docs.brew.sh/Analytics
- No analytics have been recorded yet (nor will be during this `brew` run).
-
- ==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
- https://github.com/Homebrew/brew#donations
-
- Updated 1 tap (homebrew/core).
- ==> New Formulae
- basedpyright
<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[saturn.dev] synchronised (no changes)
[saturn_lockfree.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 3).
[NOTE] Package ocaml-base-compiler is already installed (current version is 5.2.0).
[NOTE] Package ocaml is already installed (current version is 5.2.0).
[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-nnp is already installed (current version is base).
[NOTE] Package base-domains is already installed (current version is base).
[NOTE] Package base-bigarray is already installed (current version is base).
2024-08-12 08:35.06 ---> using "da214f19cd7ca94e8dc3e7c2b1f959fb0bd283b54f4f59007ebb20128930a444" from cache
/: (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
(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 3).
[NOTE] Package ocaml-base-compiler is already installed (current version is 5.2.0).
[NOTE] Package ocaml is already installed (current version is 5.2.0).
[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-nnp is already installed (current version is base).
[NOTE] Package base-domains 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 36 packages
- install alcotest 1.8.0
- install astring 0.8.5
- install backoff 0.1.0
- install cmdliner 1.3.0
- install containers 3.13.1
- install csexp 1.5.2
- install domain-local-await 1.0.1
- install domain_shims 0.1.0
- install dscheck 0.5.0
- install dune 3.16.0
- install dune-configurator 3.16.0
- install either 1.0.0
- install fmt 0.9.0
- install mtime 2.0.0
- install multicore-bench 0.1.4
- install multicore-magic 2.3.0
- install multicore-magic-dscheck 2.3.0
- install ocaml-syntax-shims 1.0.0
- install ocamlbuild 0.15.0
- install ocamlfind 1.9.6
- install oseq 0.5.1
- install ounit2 2.2.7
- install qcheck 0.22
- install qcheck-alcotest 0.22
- install qcheck-core 0.22
- install qcheck-multicoretests-util 0.3
- install qcheck-ounit 0.22
- install qcheck-stm 0.3
- install re 1.11.0
- install seq base
- install stdlib-shims 0.3.0
- install thread-table 1.0.0
- install topkg 1.0.7
- install tsort 2.1.0
- install uutf 1.0.3
- install yojson 2.2.2
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved backoff.0.1.0 (cached)
-> retrieved astring.0.8.5 (cached)
-> retrieved cmdliner.1.3.0 (cached)
-> retrieved csexp.1.5.2 (cached)
-> retrieved alcotest.1.8.0 (cached)
-> retrieved domain-local-await.1.0.1 (cached)
-> retrieved containers.3.13.1 (cached)
-> retrieved dscheck.0.5.0 (cached)
-> retrieved domain_shims.0.1.0 (cached)
-> retrieved either.1.0.0 (cached)
-> retrieved fmt.0.9.0 (cached)
-> retrieved mtime.2.0.0 (cached)
-> retrieved multicore-bench.0.1.4 (cached)
-> retrieved multicore-magic.2.3.0, multicore-magic-dscheck.2.3.0 (cached)
-> retrieved ocaml-syntax-shims.1.0.0 (cached)
-> retrieved ocamlfind.1.9.6 (cached)
-> retrieved oseq.0.5.1 (cached)
-> retrieved ocamlbuild.0.15.0 (cached)
-> retrieved qcheck.0.22, qcheck-alcotest.0.22, qcheck-core.0.22, qcheck-ounit.0.22 (cached)
-> retrieved ounit2.2.2.7 (cached)
-> retrieved qcheck-multicoretests-util.0.3, qcheck-stm.0.3 (cached)
-> retrieved seq.base (cached)
-> installed seq.base
-> retrieved stdlib-shims.0.3.0 (cached)
-> retrieved re.1.11.0 (cached)
-> retrieved thread-table.1.0.0 (cached)
-> retrieved tsort.2.1.0 (cached)
-> retrieved uutf.1.0.3 (cached)
-> retrieved topkg.1.0.7 (cached)
-> retrieved yojson.2.2.2 (cached)
-> retrieved dune.3.16.0, dune-configurator.3.16.0 (cached)
-> installed ocamlbuild.0.15.0
-> installed cmdliner.1.3.0
-> installed ocamlfind.1.9.6
-> installed topkg.1.0.7
-> installed uutf.1.0.3
-> installed mtime.2.0.0
-> installed fmt.0.9.0
-> installed astring.0.8.5
-> installed dune.3.16.0
-> installed domain_shims.0.1.0
-> installed stdlib-shims.0.3.0
-> installed backoff.0.1.0
-> installed csexp.1.5.2
-> installed tsort.2.1.0
-> installed thread-table.1.0.0
-> installed re.1.11.0
-> installed yojson.2.2.2
-> installed qcheck-core.0.22
-> installed oseq.0.5.1
-> installed ounit2.2.2.7
-> installed ocaml-syntax-shims.1.0.0
-> installed multicore-magic.2.3.0
-> installed either.1.0.0
-> installed domain-local-await.1.0.1
-> installed qcheck-multicoretests-util.0.3
-> installed qcheck-ounit.0.22
-> installed qcheck.0.22
-> installed qcheck-stm.0.3
-> installed dune-configurator.3.16.0
-> installed multicore-bench.0.1.4
-> installed alcotest.1.8.0
-> installed qcheck-alcotest.0.22
-> installed containers.3.13.1
-> installed dscheck.0.5.0
-> installed multicore-magic-dscheck.2.3.0
Done.
# Run eval $(opam env) to update the current shell environment
2024-08-12 08:35.07 ---> using "a8e1091ebb8177f63feecc2f5c4a80170c8647659cd4a442da9a2a874777ef00" from cache
/: (copy (src .) (dst ./src))
2024-08-12 08:35.09 ---> saved as "2504d037c8a62198ceeaed35b9ebac2ebb936dff5d350c90cf3085b88c7b0ebc"
/: (run (shell "cd ./src && opam exec -- dune build @install @check @runtest && rm -rf _build"))
(cd _build/default/test/ws_deque && ./test_ws_deque.exe)
test_exit: ok
test_push_and_pop: ok
test_push_and_steal: ok
test_concurrent_workload: ok (pushed = 100000, popped = 48769, stolen = 51231)
(cd _build/default/test/michael_scott_queue && ./qcheck_michael_scott_queue.exe)
qcheck random seed: 976929083
Testing `Michael_scott_queue'.
This run has ID `BYXW8HTN'.
[OK] test_sequential 0 push.
[OK] test_sequential 1 push_pop_opt_until_empty.
[OK] test_sequential 2 fifo.
[OK] test_sequential 3 fifo_peek_opt.
[OK] one_cons_one_prod 0 parallel_fifo.
[OK] one_cons_one_prod 1 parallel_peek.
[OK] two_domains 0 parallel_pop_opt_push.
[OK] two_domains 1 parallel_pop_opt_push_random.
Full test results in `~/src/_build/default/test/michael_scott_queue/_build/_tests/Michael_scott_queue'.
Test Successful in 0.162s. 8 tests run.
(cd _build/default/test/ws_deque && ./qcheck_ws_deque.exe)
qcheck random seed: 857104003
Testing `Ws_deque'.
This run has ID `4FY11TRI'.
[OK] one_producer 0 pops_are_in_order.
[OK] one_producer 1 pop_on_empty_deque_rai...
[OK] one_producer_one_stealer 0 steals_are_in_order.
[OK] one_producer_one_stealer 1 parallel_pushes_and_st...
[OK] one_producer_one_stealer 2 parallel_pops_and_steals.
[OK] one_producer_two_stealers 0 parallel_steals.
Full test results in `~/src/_build/default/test/ws_deque/_build/_tests/Ws_deque'.
Test Successful in 0.153s. 6 tests run.
(cd _build/default/test/treiber_stack && ./qcheck_treiber_stack.exe)
qcheck random seed: 123846159
Testing `Treiber_stack'.
This run has ID `K4U00RXR'.
[OK] test_sequential 0 push.
[OK] test_sequential 1 push_pop_until_empty.
[OK] test_sequential 2 lifo.
[OK] one_cons_one_prod 0 parallel.
[OK] two_domains 0 parallel_pop_push.
[OK] two_domains 1 parallel_pop_push_random.
Full test results in `~/src/_build/default/test/treiber_stack/_build/_tests/Treiber_stack'.
Test Successful in 0.115s. 6 tests run.
(cd _build/default/test/spsc_queue && ./test_spsc_queue.exe)
test_Spsc_queue_empty: ok
test_Spsc_queue_full: ok
test_Spsc_queue_parallel: ok (transferred = 100000)
test_Spsc_queue_unsafe_empty: ok
test_Spsc_queue_unsafe_full: ok
test_Spsc_queue_unsafe_parallel: ok (transferred = 100000)
(cd _build/default/test/spsc_queue && ./qcheck_spsc_queue.exe)
qcheck random seed: 735775071
Testing `Spsc_queues'.
This run has ID `DQBH874G'.
[OK] Spsc_queue 0 seq_pop_opt_push.
[OK] Spsc_queue 1 seq_pop_push.
[OK] Spsc_queue 2 seq_pop_try_push.
[OK] Spsc_queue 3 par_pop_push.
[OK] Spsc_queue 4 push_full.
[OK] Spsc_queue 5 seq_peek_opt.
[OK] Spsc_queue 6 seq_peek.
[OK] Spsc_queue 7 par_peek_opt.
[OK] Spsc_queue_unsafe 0 seq_pop_opt_push.
[OK] Spsc_queue_unsafe 1 seq_pop_push.
[OK] Spsc_queue_unsafe 2 seq_pop_try_push.
[OK] Spsc_queue_unsafe 3 par_pop_push.
[OK] Spsc_queue_unsafe 4 push_full.
[OK] Spsc_queue_unsafe 5 seq_peek_opt.
[OK] Spsc_queue_unsafe 6 seq_peek.
[OK] Spsc_queue_unsafe 7 par_peek_opt.
Full test results in `~/src/_build/default/test/spsc_queue/_build/_tests/Spsc_queues'.
Test Successful in 0.312s. 16 tests run.
(cd _build/default/test/mpsc_queue && ./qcheck_mpsc_queue.exe)
qcheck random seed: 808089366
Testing `Mpsc_queue'.
This run has ID `SOQQNGD2'.
[OK] one_consumer 0 push_head_pop_opt.
[OK] one_consumer 1 push_head_pop.
[OK] one_consumer 2 push_head_peek_opt.
[OK] one_consumer 3 push_head_peek.
[OK] one_consumer 4 pop_opt_empty.
[OK] one_consumer 5 pop_empty.
[OK] one_consumer 6 peek_opt_empty.
[OK] one_consumer 7 peek_empty.
[OK] one_consumer 8 push_head_not_empty.
[OK] one_consumer 9 close_push_head.
[OK] one_consumer 10 close_is_empty.
[OK] one_consumer 11 close_pop_opt.
[OK] one_consumer 12 pop_opt_order.
[OK] one_consumer 13 seq_push_pop_opt.
[OK] one_producer 0 push_not_empty.
[OK] one_producer 1 closing_prevents_pushing.
[OK] one_cons_one_prod 0 seq_push_pop_opt_peek_opt.
[OK] one_cons_one_prod 1 par_push_pop.
[OK] one_cons_one_prod 2 par_push_push_head.
[OK] one_cons_one_prod 3 par_pop_opt_push2.
[OK] one_cons_two_prod 0 par_push.
[OK] one_cons_two_prod 1 par_push_close_pop_opt.
Full test results in `~/src/_build/default/test/mpsc_queue/_build/_tests/Mpsc_queue'.
Test Successful in 1.933s. 22 tests run.
(cd _build/default/test/michael_scott_queue && ./michael_scott_queue_dscheck.exe)
Testing `michael_scott_queue_dscheck'.
This run has ID `NB0DZV59'.
[OK] basic 0 1-producer-1-consumer.
[OK] basic 1 1-producer-1-consumer-peek.
[OK] basic 2 2-producers.
[OK] basic 3 2-domains.
Full test results in `~/src/_build/default/test/michael_scott_queue/_build/_tests/michael_scott_queue_dscheck'.
Test Successful in 0.039s. 4 tests run.
(cd _build/default/test/skiplist && ./qcheck_skiplist.exe)
qcheck random seed: 827404123
Testing `QCheck Skiplist'.
This run has ID `B294FUJL'.
[OK] test_sequential 0 add.
[OK] test_sequential 1 add_remove.
[OK] test_sequential 2 add_find.
[OK] test_sequential 3 add_remove_find.
[OK] tests_two_domains 0 parallel_add.
[OK] tests_two_domains 1 parallel_add_remove.
[OK] tests_two_domains 2 parallel_add_remove_same_list.
Full test results in `~/src/_build/default/test/skiplist/_build/_tests/QCheck Skiplist'.
Test Successful in 3.203s. 7 tests run.
(cd _build/default/test/treiber_stack && ./treiber_stack_dscheck.exe)
Testing `treiber_stack_dscheck'.
This run has ID `PNT25GCV'.
[OK] basic 0 1-producer-1-consumer.
[OK] basic 1 2-producers.
[OK] basic 2 2-consumers.
[OK] basic 3 2-domains.
[OK] basic 4 2-domains-more-pops.
Full test results in `~/src/_build/default/test/treiber_stack/_build/_tests/treiber_stack_dscheck'.
Test Successful in 0.253s. 5 tests run.
(cd _build/default/test/mpsc_queue && ./mpsc_queue_dscheck.exe)
Testing `mpsc_queue_dscheck'.
This run has ID `QYI01R1O'.
[OK] basic 0 1-producer-1-consumer.
[OK] basic 1 1-producer-1-consumer-peek.
[OK] basic 2 2-producers.
Full test results in `~/src/_build/default/test/mpsc_queue/_build/_tests/mpsc_queue_dscheck'.
Test Successful in 0.031s. 3 tests run.
(cd _build/default/test/size && ./dscheck_size.exe)
Testing `dscheck_size'.
This run has ID `GO7N2DGU'.
[OK] basic 0 underflow and overflow.
[OK] basic 1 2-mem.
[OK] basic 2 2-add-same.
[OK] basic 3 2-add.
[OK] basic 4 2-remove-same.
[OK] basic 5 2-remove.
Full test results in `~/src/_build/default/test/size/_build/_tests/dscheck_size'.
Test Successful in 0.038s. 6 tests run.
(cd _build/default/test/ws_deque && ./ws_deque_dscheck.exe)
Testing `ws_deque_dscheck'.
This run has ID `X6NUYJGR'.
[OK] basic 0 1-owner-1-stealer.
[OK] basic 1 1-pusher-2-stealers.
Full test results in `~/src/_build/default/test/ws_deque/_build/_tests/ws_deque_dscheck'.
Test Successful in 0.005s. 2 tests run.
(cd _build/default/test/spsc_queue && ./spsc_queue_dscheck.exe)
Testing `spsc_queue_dscheck'.
This run has ID `0ISUK6FB'.
[OK] basic_safe 0 simple-test.
[OK] wrap-arounds_safe 0 shift-by-1.
[OK] wrap-arounds_safe 1 shift-by-6.
[OK] wrap-arounds_safe 2 shift-by-11.
[OK] size_safe 0 linearizes-with-1-thr.
[OK] basic_unsafe 0 simple-test.
[OK] wrap-arounds_unsafe 0 shift-by-1.
[OK] wrap-arounds_unsafe 1 shift-by-6.
[OK] wrap-arounds_unsafe 2 shift-by-11.
[OK] size_unsafe 0 linearizes-with-1-thr.
Full test results in `~/src/_build/default/test/spsc_queue/_build/_tests/spsc_queue_dscheck'.
Test Successful in 0.131s. 10 tests run.
(cd _build/default/test/skiplist && ./dscheck_skiplist.exe)
Testing `DSCheck Skiplist'.
This run has ID `JJ2F3JL7'.
[OK] basic 0 max_height_of.
[OK] basic 1 2-mem.
[OK] basic 2 2-add-same.
[OK] basic 3 2-add.
[OK] basic 4 2-remove-same.
[OK] basic 5 2-remove.
Full test results in `~/src/_build/default/test/skiplist/_build/_tests/DSCheck Skiplist'.
Test Successful in 0.056s. 6 tests run.
(cd _build/default/bench && ./main.exe -brief)
Saturn Relaxed_queue:
time per message/1 adder, 1 taker (spin):
204.89 ns
messages over time/1 adder, 1 taker (spin):
9.76 M/s
time per message/1 adder, 2 takers (spin):
585.71 ns
messages over time/1 adder, 2 takers (spin):
5.12 M/s
time per message/2 adders, 1 taker (spin):
358.92 ns
messages over time/2 adders, 1 taker (spin):
8.36 M/s
time per message/2 adders, 2 takers (spin):
355.15 ns
messages over time/2 adders, 2 takers (spin):
11.26 M/s
time per message/1 adder, 1 taker (not lf):
163.88 ns
messages over time/1 adder, 1 taker (not lf):
12.20 M/s
time per message/1 adder, 2 takers (not lf):
482.87 ns
messages over time/1 adder, 2 takers (not lf):
6.21 M/s
time per message/2 adders, 1 taker (not lf):
585.13 ns
messages over time/2 adders, 1 taker (not lf):
5.13 M/s
time per message/2 adders, 2 takers (not lf):
494.09 ns
messages over time/2 adders, 2 takers (not lf):
8.10 M/s
time per message/1 adder, 1 taker (cas):
307.62 ns
messages over time/1 adder, 1 taker (cas):
6.50 M/s
time per message/1 adder, 2 takers (cas):
372.59 ns
messages over time/1 adder, 2 takers (cas):
8.05 M/s
time per message/2 adders, 1 taker (cas):
430.86 ns
messages over time/2 adders, 1 taker (cas):
6.96 M/s
time per message/2 adders, 2 takers (cas):
708.79 ns
messages over time/2 adders, 2 takers (cas):
5.64 M/s
Saturn_lockfree Queue:
time per message/one domain:
238.71 ns
messages over time/one domain:
4.19 M/s
time per message/1 nb adder, 1 nb taker:
328.29 ns
messages over time/1 nb adder, 1 nb taker:
6.09 M/s
time per message/1 nb adder, 2 nb takers:
584.23 ns
messages over time/1 nb adder, 2 nb takers:
5.13 M/s
time per message/2 nb adders, 1 nb taker:
419.35 ns
messages over time/2 nb adders, 1 nb taker:
7.15 M/s
time per message/2 nb adders, 2 nb takers:
845.78 ns
messages over time/2 nb adders, 2 nb takers:
4.73 M/s
Saturn_lockfree Single_prod_single_cons_queue:
time per message/2 workers, capacity 1:
856.68 ns
time per message/2 workers, capacity 1 (unsafe):
733.70 ns
messages over time/2 workers, capacity 1:
2.33 M/s
messages over time/2 workers, capacity 1 (unsafe):
2.73 M/s
time per message/2 workers, capacity 8:
281.94 ns
time per message/2 workers, capacity 8 (unsafe):
360.47 ns
messages over time/2 workers, capacity 8:
7.09 M/s
messages over time/2 workers, capacity 8 (unsafe):
5.55 M/s
time per message/2 workers, capacity 64:
233.90 ns
time per message/2 workers, capacity 64 (unsafe):
302.11 ns
messages over time/2 workers, capacity 64:
8.55 M/s
messages over time/2 workers, capacity 64 (unsafe):
6.62 M/s
time per message/2 workers, capacity 512:
156.99 ns
time per message/2 workers, capacity 512 (unsafe):
144.68 ns
messages over time/2 workers, capacity 512:
12.74 M/s
messages over time/2 workers, capacity 512 (unsafe):
13.82 M/s
time per message/2 workers, capacity 4096:
174.48 ns
time per message/2 workers, capacity 4096 (unsafe):
106.50 ns
messages over time/2 workers, capacity 4096:
11.46 M/s
messages over time/2 workers, capacity 4096 (unsafe):
18.78 M/s
time per message/2 workers, capacity 32768:
101.21 ns
time per message/2 workers, capacity 32768 (unsafe):
60.75 ns
messages over time/2 workers, capacity 32768:
19.76 M/s
messages over time/2 workers, capacity 32768 (unsafe):
32.92 M/s
Saturn_lockfree Size:
time per operation/1 worker:
51.52 ns
operations over time/1 worker:
19.41 M/s
time per operation/2 workers:
51.05 ns
operations over time/2 workers:
39.17 M/s
time per operation/4 workers:
60.25 ns
operations over time/4 workers:
66.39 M/s
Saturn_lockfree Skiplist:
time per operation/1 workers, 10% mem 45% add 45% rem:
1331.88 ns
operations over time/1 workers, 10% mem 45% add 45% rem:
0.75 M/s
time per operation/2 workers, 10% mem 45% add 45% rem:
1210.37 ns
operations over time/2 workers, 10% mem 45% add 45% rem:
1.65 M/s
time per operation/4 workers, 10% mem 45% add 45% rem:
1179.08 ns
operations over time/4 workers, 10% mem 45% add 45% rem:
3.39 M/s
time per operation/1 workers, 50% mem 25% add 25% rem:
1110.09 ns
operations over time/1 workers, 50% mem 25% add 25% rem:
0.90 M/s
time per operation/2 workers, 50% mem 25% add 25% rem:
1355.92 ns
operations over time/2 workers, 50% mem 25% add 25% rem:
1.48 M/s
time per operation/4 workers, 50% mem 25% add 25% rem:
838.65 ns
operations over time/4 workers, 50% mem 25% add 25% rem:
4.77 M/s
time per operation/1 workers, 90% mem 5% add 5% rem:
1031.45 ns
operations over time/1 workers, 90% mem 5% add 5% rem:
0.97 M/s
time per operation/2 workers, 90% mem 5% add 5% rem:
842.54 ns
operations over time/2 workers, 90% mem 5% add 5% rem:
2.37 M/s
time per operation/4 workers, 90% mem 5% add 5% rem:
734.69 ns
operations over time/4 workers, 90% mem 5% add 5% rem:
5.44 M/s
Saturn_lockfree Stack:
time per message/one domain:
135.43 ns
messages over time/one domain:
7.38 M/s
time per message/1 adder, 1 taker:
111.62 ns
messages over time/1 adder, 1 taker:
17.92 M/s
time per message/1 adder, 2 takers:
156.38 ns
messages over time/1 adder, 2 takers:
19.18 M/s
time per message/2 adders, 1 taker:
149.45 ns
messages over time/2 adders, 1 taker:
20.07 M/s
time per message/2 adders, 2 takers:
199.06 ns
messages over time/2 adders, 2 takers:
20.09 M/s
Saturn_lockfree Two_stack_queue:
time per message/one domain:
69.20 ns
messages over time/one domain:
14.45 M/s
time per message/1 nb adder, 1 nb taker:
261.51 ns
messages over time/1 nb adder, 1 nb taker:
7.65 M/s
time per message/1 nb adder, 2 nb takers:
260.59 ns
messages over time/1 nb adder, 2 nb takers:
11.51 M/s
time per message/2 nb adders, 1 nb taker:
345.69 ns
messages over time/2 nb adders, 1 nb taker:
8.68 M/s
time per message/2 nb adders, 2 nb takers:
400.29 ns
messages over time/2 nb adders, 2 nb takers:
9.99 M/s
Saturn_lockfree Work_stealing_deque:
time per spawn/1 worker:
193.52 ns
spawns over time/1 worker:
5.17 M/s
time per spawn/2 workers:
210.55 ns
spawns over time/2 workers:
9.50 M/s
time per spawn/4 workers:
266.62 ns
spawns over time/4 workers:
15.00 M/s
time per spawn/8 workers:
603.03 ns
spawns over time/8 workers:
13.27 M/s
time per message/1 adder, 1 taker:
144.34 ns
messages over time/1 adder, 1 taker:
13.86 M/s
time per message/1 adder, 2 takers:
370.77 ns
messages over time/1 adder, 2 takers:
8.09 M/s
time per message/1 adder, 4 takers:
556.38 ns
messages over time/1 adder, 4 takers:
8.99 M/s
time per message/one domain (FIFO):
101.26 ns
messages over time/one domain (FIFO):
9.88 M/s
time per message/one domain (LIFO):
109.63 ns
messages over time/one domain (LIFO):
9.12 M/s
(cd _build/default/test/treiber_stack && ./stm_treiber_stack.exe)
random seed: 384086540
generated error fail pass / total time test name
[✓] 500 0 0 500 / 500 0.1s Saturn_lockfree.Treiber_stack sequential
[✓] 500 0 0 500 / 500 15.8s Saturn_lockfree.Treiber_stack parallel
================================================================================
success (ran 2 tests)
(cd _build/default/test/michael_scott_queue && ./stm_michael_scott_queue.exe)
random seed: 69522729
generated error fail pass / total time test name
[✓] 500 0 0 500 / 500 0.1s Saturn_lockfree.Michael_scott_queue sequential
[✓] 500 0 0 500 / 500 18.6s Saturn_lockfree.Michael_scott_queue parallel
================================================================================
success (ran 2 tests)
(cd _build/default/test/two_stack_queue && ./stm_two_stack_queue.exe --verbose)
random seed: 334946474
generated error fail pass / total time test name
[✓] 1000 0 0 1000 / 1000 1.0s Two_stack_queue sequential
[✓] 1000 0 0 1000 / 1000 28.3s Two_stack_queue parallel
================================================================================
success (ran 2 tests)
(cd _build/default/test/ws_deque && ./stm_ws_deque.exe)
random seed: 148502034
generated error fail pass / total time test name
[✓] 1000 0 0 1000 / 1000 0.3s Saturn_lockfree.Ws_deque sequential
[✓] 1000 0 0 1000 / 1000 27.6s Saturn_lockfree.Ws_deque parallel
[✓] 1 0 1 0 / 1000 2.4s Saturn_lockfree.Ws_deque parallel, negative
--- Info -----------------------------------------------------------------------
Negative test Saturn_lockfree.Ws_deque parallel, negative failed as expected (24 shrink steps):
|
Push 2
Push 3
|
.---------------------.
| |
Pop Pop
+++ Messages ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Messages for test Saturn_lockfree.Ws_deque parallel, negative:
Results incompatible with linearized model
|
Push 2 : ()
Push 3 : ()
|
.------------------------------------.
| |
Pop : Ok (0) Pop : Ok (3)
================================================================================
success (ran 3 tests)
(cd _build/default/test/mpsc_queue && ./stm_mpsc_queue.exe)
random seed: 535420894
generated error fail pass / total time test name
[✓] 1000 0 0 1000 / 1000 0.4s Saturn_lockfree.Mpsc_queue sequential
[✓] 1000 0 0 1000 / 1000 31.1s Saturn_lockfree.Mpsc_queue parallel
[✓] 2 0 1 1 / 1000 1.9s Saturn_lockfree.Mpsc_queue parallel, negative
--- Info -----------------------------------------------------------------------
Negative test Saturn_lockfree.Mpsc_queue parallel, negative failed as expected (28 shrink steps):
|
Push_head2
|
.---------------------.
| |
Push_head231 Push_head389
+++ Messages ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Messages for test Saturn_lockfree.Mpsc_queue parallel, negative:
Results incompatible with linearized model
|
Push_head2 : Ok (())
|
.-----------------------------------------------------------------------------------------------------.
| |
Push_head231 : Ok (()) Push_head389 : Error (File "src_lockfree/mpsc_queue.ml", line 88, characters 4-10: Assertion fail
d)
================================================================================
success (ran 3 tests)
(cd _build/default/test/mpmc_relaxed_queue && ./test_mpmc_relaxed_queue.exe)
Testing `Mpmc_queue'.
This run has ID `D70AF5HX'.
[OK] single-thread 0 is it a queue.
[OK] validate items 0 1 prod. 1 cons.
[OK] validate indices under load 0 4 prod. 4 cons.
[OK] validate indices under load 1 8 prod. 1 cons.
[OK] validate indices under load 2 1 prod. 8 cons.
[OK] single-thread-CAS-intf 0 is it a queue.
[OK] validate items-CAS-intf 0 1 prod. 1 cons.
[OK] single-thread-spinning 0 is it a queue.
[OK] validate-items-spinning 0 1 prod. 1 cons.
Full test results in `~/src/_build/default/test/mpmc_relaxed_queue/_build/_tests/Mpmc_queue'.
Test Successful in 37.027s. 9 tests run.
(cd _build/default/test/size && ./stm_size.exe)
random seed: 240377283
generated error fail pass / total time test name
[✓] 1000 0 0 1000 / 1000 1.3s Saturn_lockfree.Size sequential
[✓] 1000 0 0 1000 / 1000 38.1s Saturn_lockfree.Size parallel
================================================================================
success (ran 2 tests)
(cd _build/default/test/skiplist && ./stm_skiplist.exe)
random seed: 311432723
generated error fail pass / total time test name
[✓] 1000 0 0 1000 / 1000 0.8s Lockfree.Skiplist sequential
[✓] 1000 0 0 1000 / 1000 41.9s Lockfree.Skiplist parallel
================================================================================
success (ran 2 tests)
(cd _build/default/test/spsc_queue && ./stm_spsc_queue.exe)
random seed: 219596457
generated error fail pass / total time test name
[✓] 1000 0 0 1000 / 1000 0.3s Saturn_lockfree.Spsc_queue sequential
[✓] 1000 0 0 1000 / 1000 38.9s Saturn_lockfree.Spsc_queue parallel
[✓] 1 0 1 0 / 1000 0.5s Saturn_lockfree.Spsc_queue parallel, negative
--- Info -----------------------------------------------------------------------
Negative test Saturn_lockfree.Spsc_queue parallel, negative failed as expected (19 shrink steps):
|
|
.---------------------.
| |
Push 3 Push 2
Pop
Pop
+++ Messages ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Messages for test Saturn_lockfree.Spsc_queue parallel, negative:
Results incompatible with linearized model
|
|
.-------------------------------------------------.
| |
Push 3 : Ok (()) Push 2 : Ok (())
Pop : Ok (2)
Pop : Error (Invalid_argument("option is None"))
================================================================================
success (ran 3 tests)
generated error fail pass / total time test name
[✓] 1000 0 0 1000 / 1000 0.1s Saturn_lockfree.Spsc_queue_unsafe sequential
[✓] 1000 0 0 1000 / 1000 19.1s Saturn_lockfree.Spsc_queue_unsafe parallel
[✓] 1 0 1 0 / 1000 0.5s Saturn_lockfree.Spsc_queue_unsafe parallel, negative
--- Info -----------------------------------------------------------------------
Negative test Saturn_lockfree.Spsc_queue_unsafe parallel, negative failed as expected (19 shrink steps):
|
|
.---------------------.
| |
Push 3 Push 2
Pop
Pop
+++ Messages ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Messages for test Saturn_lockfree.Spsc_queue_unsafe parallel, negative:
Results incompatible with linearized model
|
|
.------------------------------------.
| |
Push 3 : Ok (()) Push 2 : Ok (())
Pop : Ok (3)
Pop : Ok (0)
================================================================================
success (ran 3 tests)
2024-08-12 08:36.15 ---> saved as "a4a83f6cfe4b4ab83ca34a4486ab94429d526322d17184d63bb550361236b804"
Job succeeded
2024-08-12 08:36.22: Job succeeded