Skip to content

Commit

Permalink
fix(sut): change back iterations and clients
Browse files Browse the repository at this point in the history
  • Loading branch information
symbiont-stevan-andjelkovic committed Mar 18, 2022
1 parent 57ae88c commit 633d1a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/sut/dumblog/bench/Common.hs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ rEAD_FREQUENCY :: Int
rEAD_FREQUENCY = 80

iTERATIONS :: Int
iTERATIONS = 10000
iTERATIONS = 50000

vALUE_TO_WRITE :: ByteString
vALUE_TO_WRITE = LBS.pack "Dumblog"
Expand All @@ -61,7 +61,7 @@ commonMain variant io = do
bracket (commonSetup variant io) commonTeardown (commonBenchmark clients)
where
nUM_OF_CLIENTS :: Int
nUM_OF_CLIENTS = 100
nUM_OF_CLIENTS = 1000

commonSetup :: String -> (MVar () -> IO ()) -> IO (Async (), HttpClient)
commonSetup msg io = do
Expand Down
2 changes: 1 addition & 1 deletion src/sut/dumblog/src/Dumblog/Journal/Worker.hs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ worker journal metrics (WorkerInfo blocker logger snapshotFile currentVersion ev
else do
entries <- Journal.readManyJournalSC journal Sub1
if null entries
then threadDelay 10 >> go ev s
then threadDelay 1 >> go ev s
else do
s' <- go' entries s
go (ev + length entries) s'
Expand Down

0 comments on commit 633d1a4

Please sign in to comment.