Skip to content
Snippets Groups Projects
Commit 960c8d47 authored by Teo Camarasu's avatar Teo Camarasu Committed by Marge Bot
Browse files

Reduce AtomicModifyIORef increment count

This test leads to a lot of contention when N>2 and becomes very slow. Let's reduce the amount of work we do to compensate. Resolves #24490
parent 3836a110
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@ import Data.IORef
main :: IO ()
main = do
let nThreads = 10
nIncrs = 10000000
nIncrs = 10000
ref <- newIORef (42 :: Int)
dones <- replicateM nThreads $ do
......
......@@ -8,4 +8,4 @@
.
.
.
100000042
100042
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment