Skip to content

Commit 1a9d2f7

Browse files
author
Piotr Stachyra
committed
Adjust log output for Non-cached first run in latency benchmarks
1 parent 87efb96 commit 1a9d2f7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/byron/bench/Latency.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ main = withUtf8Encoding $ withLatencyLogging $ \logging tvar ->
146146
fmtLn "\n"
147147
fmtLn walletName
148148

149+
fmtTitle "Non-cached run"
149150
runBareScenario logging tvar
150151

151152
fmtTitle "Latencies for 2 fixture wallets scenario"
@@ -326,7 +327,7 @@ main = withUtf8Encoding $ withLatencyLogging $ \logging tvar ->
326327
-- in runScenario
327328
t <- measureApiLogs tvar $ request @ApiNetworkInformation ctx
328329
Link.getNetworkInfo Default Empty
329-
fmtResult "getNetworkInfo without cache " t
330+
fmtResult "getNetworkInfo " t
330331
pure ()
331332

332333
meanAvg :: [NominalDiffTime] -> Double

lib/jormungandr/test/bench/Latency.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ import qualified Network.HTTP.Types.Status as HTTP
135135
main :: forall t n. (t ~ Jormungandr, n ~ 'Testnet 0) => IO ()
136136
main = withUtf8Encoding $ withLatencyLogging $ \logging tvar -> do
137137

138+
fmtLn "Non-cached run"
138139
runBareScenario logging tvar
139140

140141
fmtLn "Latencies for 2 fixture wallets scenario"
@@ -370,7 +371,7 @@ main = withUtf8Encoding $ withLatencyLogging $ \logging tvar -> do
370371
-- in runScenario
371372
t <- measureApiLogs tvar $ request @ApiNetworkInformation ctx
372373
Link.getNetworkInfo Default Empty
373-
fmtResult "getNetworkInfo without cache " t
374+
fmtResult "getNetworkInfo " t
374375
pure ()
375376

376377
meanAvg :: [NominalDiffTime] -> Double

0 commit comments

Comments
 (0)