From b86e48a567f7eba2ae99e135e330337ea3cef381 Mon Sep 17 00:00:00 2001 From: Kevin Tew Date: Wed, 18 Aug 2010 15:42:59 -0600 Subject: [PATCH] Places: benchmark tests --- .../benchmarks/places/place-channel.rktl | 92 ++++++++++++------- 1 file changed, 61 insertions(+), 31 deletions(-) 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 + #<