File tree Expand file tree Collapse file tree 3 files changed +11
-7
lines changed
Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 3636 (= %{system} "linux")
3737 (>= %{ocaml_version} 5.0)))
3838 (action
39- (with-stdout-to
40- %{targets}
41- (run ./run_echo.sh -n 10 --n-conn=2 -v))))
39+ (setenv
40+ CI_MODE
41+ 1
42+ (with-stdout-to
43+ %{targets}
44+ (run ./run_echo.sh -n 10 --n-conn=2 -v)))))
4245
4346(rule
4447 (alias runtest)
Original file line number Diff line number Diff line change 11module M_lwt = Moonpool_lwt
22module Trace = Trace_core
33
4+ let ci_mode = Option. is_some @@ Sys. getenv_opt " CI_MODE"
45let spf = Printf. sprintf
56let await_lwt = Moonpool_lwt. await_lwt
67let ( let @ ) = ( @@ )
@@ -68,9 +69,10 @@ let main ~port ~n ~n_conn ~verbose ~msg_per_conn () : unit =
6869
6970 Printf. printf " all done\n %!" ;
7071 let elapsed = Unix. gettimeofday () -. t0 in
71- Printf. printf " sent %d messages in %.4fs (%.2f msg/s)\n %!" ! n_msg_total
72- elapsed
73- (float ! n_msg_total /. elapsed);
72+ if not ci_mode then
73+ Printf. printf " sent %d messages in %.4fs (%.2f msg/s)\n %!" ! n_msg_total
74+ elapsed
75+ (float ! n_msg_total /. elapsed);
7476 ()
7577
7678let () =
Original file line number Diff line number Diff line change 11run echo server on port=12346
22listening on port 12346
33run echo client -p 12346 -n 10 --n-conn=2 -v
4- sent 100 messages in 0.0175s (5720.16 msg/s)
54all done
65connecting to port 12346 (10 msg per conn, 10 conns total, 2 max at a time)
76read: hello 1
You can’t perform that action at this time.
0 commit comments