@@ -54,7 +54,6 @@ main = do
5454
5555 "client" : host : service : sourceAddrFilePath : sizeStr : args' -> do
5656 let size = read sizeStr
57− let bs = BS.replicate size 0
5857
5958 -- establish transport
6059 transport <- mkTransport $ TCPConfig defaultHints host service
@@ -67,7 +66,8 @@ main = do
6766 (sourceAddrPong, targetEndPong) <- newConnection transport
6867 send sourceEndPing [serialize sourceAddrPong]
6968
70− -- benchmark the pings
69+ -- benchmark the data
70+ let bs = BS.replicate size 0
7171 withArgs args' $ defaultMain [ benchSend sourceEndPing targetEndPong bs ]
7272
7373-- | The effect of `ping sourceEndPing targetEndPong bs` is to send the
@@ -91,6 +91,6 @@ pong targetEndPing sourceEndPong = do
9191-- `bs` pings down `sourceEndPing` using the `ping` function. The time
9292-- taken is benchmarked.
9393benchSend :: SourceEnd -> TargetEnd -> ByteString -> Benchmark
94−benchSend sourceEndPing targetEndPong bs = bench "Transport Ping" $
94+benchSend sourceEndPing targetEndPong bs = bench "SendTransport" $
9595 nfIO (ping sourceEndPing targetEndPong bs)
9696