Commit graph

131 commits

Author SHA1 Message Date
Simon Cruanes
d94a197381
try to fix tests 2024-02-20 18:48:10 -05:00
Simon Cruanes
b58a55536c
do not require libev 2024-02-20 18:43:53 -05:00
Simon Cruanes
fa5ae97b6d
restrict moonpool-lwt tests to 5.0 2024-02-20 18:39:27 -05:00
Simon Cruanes
f68f27a4a4
echo server tests for moonpool-lwt 2024-02-20 18:34:35 -05:00
Simon Cruanes
004f5fc82b
test: add a test for the hash server+client 2024-02-20 18:25:18 -05:00
Simon Cruanes
ed6db54b1a
update tests 2024-02-17 12:40:37 -05:00
Simon Cruanes
283a1cb118
test: add hash server/client
the protocol: send a filename per line over TCP, and the server
replies with the filename and its content's hash
2024-02-17 12:40:36 -05:00
Simon Cruanes
e789cbe4f7
fix echo_client to actually do its work 2024-02-17 12:40:36 -05:00
Simon Cruanes
bd00e0838a
test: use async spans for lwt echo server 2024-02-17 12:40:36 -05:00
Simon Cruanes
4ff45df7e7
basic echo client for moonpool-lwt 2024-02-17 12:40:35 -05:00
Simon Cruanes
38b84e0c03
test: unix libev to make sure we handle more than 1024 simultaneous
connections in echo server
2024-02-17 12:40:35 -05:00
Simon Cruanes
0e9d358cb5
basic echo server for moonpool-lwt 2024-02-17 12:40:35 -05:00
Simon Cruanes
cf8555bcec
revert: remove name on futures and tasks
async tracing will be more robust, and is enabled by
task local storage
2024-02-17 12:40:02 -05:00
Simon Cruanes
e1219ade54
details in test 2024-02-11 16:40:14 -05:00
Simon Cruanes
223f22a0d9
breaking: move fork-join into sub-library moonpool.forkjoin 2024-02-11 16:39:44 -05:00
Simon Cruanes
cc8860c6e3
split into moonpool.private and moonpool; format; remove DLA 2024-02-11 16:39:43 -05:00
Simon Cruanes
dd9206b5b8
use new tracing support in tests and benchs 2024-01-30 16:12:03 -05:00
Simon Cruanes
16663651d6
update test 2023-11-24 23:12:20 -05:00
Simon Cruanes
b58041153a
add another test 2023-11-24 22:56:33 -05:00
Simon Cruanes
989c012f77 fix warnings 2023-11-08 12:02:13 -05:00
Simon Cruanes
62e8336d84 update tests and benchs for new Fut API 2023-11-08 12:02:13 -05:00
Simon Cruanes
245bfd9b7b test: regression test for bug 2023-11-08 12:02:13 -05:00
Simon Cruanes
72f289af84 refactor: use a fixed size work-stealing deque
if it's full, tasks overflow into the main queue.
2023-11-08 11:36:10 -05:00
Simon Cruanes
928345437a fix tests to use new API 2023-11-08 09:41:57 -05:00
Simon Cruanes
359ec0352b
small change to test 2023-10-27 14:47:59 -04:00
Simon Cruanes
3e614ec992
rename Pool to Ws_pool; deprecated Moonpool.Pool 2023-10-25 23:43:18 -04:00
Simon Cruanes
30035fa67d
fix pool: suspension handler might run from a different thread!
this means we can't reuse the same worker state, it's neither thread
safe nor deadlock-safe (the worker whose state it is might be waiting on
the main queue)
2023-10-25 23:30:04 -04:00
Simon Cruanes
1ed25e5aca
test: make t_ws_deque consume less ram 2023-10-25 22:41:26 -04:00
Simon Cruanes
d9da7844e2
test: run more diverse pools in t_fib_rec 2023-10-25 22:32:57 -04:00
Simon Cruanes
6452ca89d1
rename Simple_pool into Fifo_pool, update doc 2023-10-25 21:55:29 -04:00
Simon Cruanes
e0d3a18562
improve test a bit 2023-10-25 09:57:25 -04:00
Simon Cruanes
78407c495d
more tests for WS_deque 2023-10-25 09:56:56 -04:00
Simon Cruanes
91c0c3f6c1
fix props 2023-10-25 01:01:51 -04:00
Simon Cruanes
3bfc4cdcc7
more test 2023-10-25 00:28:16 -04:00
Simon Cruanes
c03e342178
tests: run some tests on both Pool and Simple_pool 2023-10-25 00:21:07 -04:00
Simon Cruanes
ae5f3a7e97
tests for ws_deque 2023-10-25 00:09:38 -04:00
Simon Cruanes
43eca1d4e2
restore test 2023-10-24 19:56:18 -04:00
Simon Cruanes
fb7cc5d69f
add heavier test for a particular hangup in fork join 2023-10-24 16:56:52 -04:00
Simon Cruanes
9ab9df78c9
update tests a bit 2023-10-24 13:48:23 -04:00
Simon Cruanes
60255c0e95
test: add dep on trace-tef; add new test for scheduling issues
trying to expose that sometimes, some workers might be asleep while
others do several tasks, because they're sleeping on the "wrong" queue
2023-10-24 10:03:46 -04:00
Simon Cruanes
d37733b5bd add tests for Bounded_queue 2023-10-12 22:24:28 -04:00
Simon Cruanes
cfbcc72648
improve a bit the resource test 2023-08-13 22:47:54 -04:00
Simon Cruanes
6c4d2cbc79
test for proper resource handling in Pool.shutdown 2023-08-13 22:24:14 -04:00
Simon Cruanes
d18e88a772
details in test 2023-07-17 10:54:47 -04:00
Simon Cruanes
366d26527c
another test 2023-07-16 23:21:45 -04:00
Simon Cruanes
f7d9e6c0c1
add prop test for Fork_join.map_list 2023-07-16 23:17:16 -04:00
Simon Cruanes
6c0063f9ac
more tests 2023-07-13 12:23:52 -04:00
Simon Cruanes
20240a6190
fix: Fork_join.for_ 0 must not hang 2023-07-13 12:23:25 -04:00
Simon Cruanes
548212ab43
add prop test for fork_join 2023-07-10 23:20:25 -04:00
Simon Cruanes
2326ae0078
modify Fork_join.for_ to avoid the allocator.
The allocator means calling a closure at each step, which means local
a reference will have to be heap allocated (and worse, that floats will
be unboxed). Instead we give the function a pair of low,high bounds for
a local for.
2023-07-10 01:19:16 -04:00