Skip to content

Commit 61256da

Browse files
Making insertion benchmarks more strict
1 parent d09fecf commit 61256da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

benchmark/time/Main.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ traversal cat from name pre =
9797

9898

9999
fromList :: Foldable t => t (MBR, b) -> R2Tree b
100-
fromList = foldr (uncurry R.insert) R.empty
100+
fromList = foldl' (\z (a, b) -> R.insert a b z) R.empty
101101

102102
fromListGut :: Foldable t => t (MBR, b) -> R2Tree b
103-
fromListGut = foldr (uncurry R.insertGut) R.empty
103+
fromListGut = foldl' (\z (a, b) -> R.insertGut a b z) R.empty
104104

105105

106106
main :: IO ()

0 commit comments

Comments
 (0)