diff --git a/collects/tests/racket/benchmarks/places/place-channel.rktl b/collects/tests/racket/benchmarks/places/place-channel.rktl index 55586fc1e6..eb0f9c6895 100644 --- a/collects/tests/racket/benchmarks/places/place-channel.rktl +++ b/collects/tests/racket/benchmarks/places/place-channel.rktl @@ -1,45 +1,75 @@ #lang racket ;; stress tests for place-channels - (define (splat txt fn) (call-with-output-file fn #:exists 'replace (lambda (out) (fprintf out "~a" txt)))) -(splat -#<inexact B/sE)) - (printf "MB/s ~a~n" (exact->inexact (/ B/sE (* 1024 1024)))) - (place-wait pl) -) + (define B/sE (/ (* 2 count message-size) (/ t2 1000))) + (printf "~a ~a ~a ~a~n" r t1 t2 t3) + (printf "B/s ~a~n" (exact->inexact B/sE)) + (printf "MB/s ~a~n" (exact->inexact (/ B/sE (* 1024 1024)))) + (place-wait pl))) + +(define (cons-tree-test) + (splat + #<