Skip to content

Commit 207e588

Browse files
committed
change inconsistent name
1 parent 9b44e4e commit 207e588

File tree

5 files changed

+30
-30
lines changed

5 files changed

+30
-30
lines changed

bench_ghc-dps-compact-95615577d7_tweag-laptop.txt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1529,15 +1529,15 @@ All
15291529
DPS interface for compact regions
15301530
List and DList concatenation
15311531
2^10
1532-
concatRightList.force: OK
1532+
concatListRight.force: OK
15331533
5.89 μs ± 978 ns, 60 KB allocated, 182 B copied, 69 MB peak memory
15341534

15351535
All 1 tests passed (0.29s)
15361536
All
15371537
DPS interface for compact regions
15381538
List and DList concatenation
15391539
2^10
1540-
concatRightList.copyCR: OK
1540+
concatListRight.copyCR: OK
15411541
20.0 μs ± 3.4 μs, 124 KB allocated, 5 B copied, 69 MB peak memory
15421542

15431543
All 1 tests passed (0.26s)
@@ -1569,15 +1569,15 @@ All
15691569
DPS interface for compact regions
15701570
List and DList concatenation
15711571
2^13
1572-
concatRightList.force: OK
1572+
concatListRight.force: OK
15731573
48.7 μs ± 8.6 μs, 478 KB allocated, 8.6 KB copied, 69 MB peak memory
15741574

15751575
All 1 tests passed (0.25s)
15761576
All
15771577
DPS interface for compact regions
15781578
List and DList concatenation
15791579
2^13
1580-
concatRightList.copyCR: OK
1580+
concatListRight.copyCR: OK
15811581
162 μs ± 31 μs, 796 KB allocated, 36 B copied, 69 MB peak memory
15821582

15831583
All 1 tests passed (0.20s)
@@ -1609,15 +1609,15 @@ All
16091609
DPS interface for compact regions
16101610
List and DList concatenation
16111611
2^16
1612-
concatRightList.force: OK
1612+
concatListRight.force: OK
16131613
817 μs ± 99 μs, 3.7 MB allocated, 707 KB copied, 69 MB peak memory
16141614

16151615
All 1 tests passed (0.21s)
16161616
All
16171617
DPS interface for compact regions
16181618
List and DList concatenation
16191619
2^16
1620-
concatRightList.copyCR: OK
1620+
concatListRight.copyCR: OK
16211621
1.39 ms ± 219 μs, 6.2 MB allocated, 301 B copied, 69 MB peak memory
16221622

16231623
All 1 tests passed (0.18s)
@@ -1649,15 +1649,15 @@ All
16491649
DPS interface for compact regions
16501650
List and DList concatenation
16511651
2^19
1652-
concatRightList.force: OK
1652+
concatListRight.force: OK
16531653
20.5 ms ± 2.4 ms, 30 MB allocated, 24 MB copied, 142 MB peak memory
16541654

16551655
All 1 tests passed (0.41s)
16561656
All
16571657
DPS interface for compact regions
16581658
List and DList concatenation
16591659
2^19
1660-
concatRightList.copyCR: OK
1660+
concatListRight.copyCR: OK
16611661
21.6 ms ± 1.4 ms, 50 MB allocated, 17 MB copied, 169 MB peak memory
16621662

16631663
All 1 tests passed (0.80s)
@@ -1689,15 +1689,15 @@ All
16891689
DPS interface for compact regions
16901690
List and DList concatenation
16911691
2^22
1692-
concatRightList.force: OK
1692+
concatListRight.force: OK
16931693
167 ms ± 25 ms, 239 MB allocated, 189 MB copied, 843 MB peak memory
16941694

16951695
All 1 tests passed (3.08s)
16961696
All
16971697
DPS interface for compact regions
16981698
List and DList concatenation
16991699
2^22
1700-
concatRightList.copyCR: OK
1700+
concatListRight.copyCR: OK
17011701
143 ms ± 7.6 ms, 400 MB allocated, 94 MB copied, 640 MB peak memory
17021702

17031703
All 1 tests passed (1.51s)
@@ -1729,15 +1729,15 @@ All
17291729
DPS interface for compact regions
17301730
List and DList concatenation
17311731
2^25
1732-
concatRightList.force: OK
1732+
concatListRight.force: OK
17331733
1.518 s ± 165 ms, 1.9 GB allocated, 1.3 GB copied, 4.7 GB peak memory
17341734

17351735
All 1 tests passed (13.89s)
17361736
All
17371737
DPS interface for compact regions
17381738
List and DList concatenation
17391739
2^25
1740-
concatRightList.copyCR: OK
1740+
concatListRight.copyCR: OK
17411741
1.699 s ± 321 ms, 3.1 GB allocated, 963 MB copied, 4.6 GB peak memory
17421742

17431743
All 1 tests passed (17.27s)

bench_tweag-laptop.csv

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -151,33 +151,33 @@ DPS interface for compact regions/map on List,2^25,mapDpsFoldL,6780,6250,6550,92
151151
DPS interface for compact regions/map on List,2^25,mapDpsFoldLS,6830,5220,6550,9220
152152
DPS interface for compact regions/map on List,2^25,mapDpsFoldSL,1490,3380,974,5630
153153
DPS interface for compact regions/map on List,2^25,mapDpsFoldS,1240,2360,974,5020
154-
DPS interface for compact regions/List and DList concatenation,2^10,concatRightList.force,0.00589,0.0586,0.000174,69
155-
DPS interface for compact regions/List and DList concatenation,2^10,concatRightList.copyCR,0.02,0.121,0.00000477,69
154+
DPS interface for compact regions/List and DList concatenation,2^10,concatListRight.force,0.00589,0.0586,0.000174,69
155+
DPS interface for compact regions/List and DList concatenation,2^10,concatListRight.copyCR,0.02,0.121,0.00000477,69
156156
DPS interface for compact regions/List and DList concatenation,2^10,concatDListFunLeft.force,0.00674,0.0615,0.000184,69
157157
DPS interface for compact regions/List and DList concatenation,2^10,concatDListFunLeft.copyCR,0.0203,0.124,0.00000858,69
158158
DPS interface for compact regions/List and DList concatenation,2^10,concatDListDpsLeft,0.0207,0.0693,0.00000477,69
159-
DPS interface for compact regions/List and DList concatenation,2^13,concatRightList.force,0.0487,0.467,0.0084,69
160-
DPS interface for compact regions/List and DList concatenation,2^13,concatRightList.copyCR,0.162,0.777,0.0000343,69
159+
DPS interface for compact regions/List and DList concatenation,2^13,concatListRight.force,0.0487,0.467,0.0084,69
160+
DPS interface for compact regions/List and DList concatenation,2^13,concatListRight.copyCR,0.162,0.777,0.0000343,69
161161
DPS interface for compact regions/List and DList concatenation,2^13,concatDListFunLeft.force,0.0575,0.489,0.0107,69
162162
DPS interface for compact regions/List and DList concatenation,2^13,concatDListFunLeft.copyCR,0.17,0.783,0.00186,69
163163
DPS interface for compact regions/List and DList concatenation,2^13,concatDListDpsLeft,0.17,0.394,0.0000296,69
164-
DPS interface for compact regions/List and DList concatenation,2^16,concatRightList.force,0.817,3.7,0.69,69
165-
DPS interface for compact regions/List and DList concatenation,2^16,concatRightList.copyCR,1.39,6.2,0.000287,69
164+
DPS interface for compact regions/List and DList concatenation,2^16,concatListRight.force,0.817,3.7,0.69,69
165+
DPS interface for compact regions/List and DList concatenation,2^16,concatListRight.copyCR,1.39,6.2,0.000287,69
166166
DPS interface for compact regions/List and DList concatenation,2^16,concatDListFunLeft.force,0.816,3.9,0.621,69
167167
DPS interface for compact regions/List and DList concatenation,2^16,concatDListFunLeft.copyCR,1.55,6.3,0.17,69
168168
DPS interface for compact regions/List and DList concatenation,2^16,concatDListDpsLeft,1.4,3,0.000259,69
169-
DPS interface for compact regions/List and DList concatenation,2^19,concatRightList.force,20.5,30,24,142
170-
DPS interface for compact regions/List and DList concatenation,2^19,concatRightList.copyCR,21.6,50,17,169
169+
DPS interface for compact regions/List and DList concatenation,2^19,concatListRight.force,20.5,30,24,142
170+
DPS interface for compact regions/List and DList concatenation,2^19,concatListRight.copyCR,21.6,50,17,169
171171
DPS interface for compact regions/List and DList concatenation,2^19,concatDListFunLeft.force,22.7,31,26,131
172172
DPS interface for compact regions/List and DList concatenation,2^19,concatDListFunLeft.copyCR,33.6,50,32,145
173173
DPS interface for compact regions/List and DList concatenation,2^19,concatDListDpsLeft,23,23,17,133
174-
DPS interface for compact regions/List and DList concatenation,2^22,concatRightList.force,167,239,189,843
175-
DPS interface for compact regions/List and DList concatenation,2^22,concatRightList.copyCR,143,400,94,640
174+
DPS interface for compact regions/List and DList concatenation,2^22,concatListRight.force,167,239,189,843
175+
DPS interface for compact regions/List and DList concatenation,2^22,concatListRight.copyCR,143,400,94,640
176176
DPS interface for compact regions/List and DList concatenation,2^22,concatDListFunLeft.force,241,252,262,702
177177
DPS interface for compact regions/List and DList concatenation,2^22,concatDListFunLeft.copyCR,308,410,339,805
178178
DPS interface for compact regions/List and DList concatenation,2^22,concatDListDpsLeft,161,191,94,673
179-
DPS interface for compact regions/List and DList concatenation,2^25,concatRightList.force,1520,1950,1330,4810
180-
DPS interface for compact regions/List and DList concatenation,2^25,concatRightList.copyCR,1700,3170,963,4710
179+
DPS interface for compact regions/List and DList concatenation,2^25,concatListRight.force,1520,1950,1330,4810
180+
DPS interface for compact regions/List and DList concatenation,2^25,concatListRight.copyCR,1700,3170,963,4710
181181
DPS interface for compact regions/List and DList concatenation,2^25,concatDListFunLeft.force,1580,2050,1840,4400
182182
DPS interface for compact regions/List and DList concatenation,2^25,concatDListFunLeft.copyCR,2320,3280,2660,5730
183183
DPS interface for compact regions/List and DList concatenation,2^25,concatDListDpsLeft,1370,1540,1020,5840

examples-version-changes/ghc-dps-compact/after/Compact/DList.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ fromListN xs = DListN $ \ys -> xs ++ ys
6767

6868
impls :: [([[Int]] -> [Int], String, Bool)]
6969
impls =
70-
[ (concatRightList, "concatRightList", True),
70+
[ (concatListRight, "concatListRight", True),
7171
(concatDListFunLeft, "concatDListFunLeft", True),
7272
(concatDListDpsLeft, "concatDListDpsLeft", False)
7373
]
@@ -83,8 +83,8 @@ foldr f s (x : xs) = x `f` foldr f s xs
8383
concatLeft :: [[a]] -> [a]
8484
concatLeft = foldl' (\xs ys -> xs ++ ys) []
8585

86-
concatRightList :: [[a]] -> [a]
87-
concatRightList = foldr (\xs ys -> xs ++ ys) []
86+
concatListRight :: [[a]] -> [a]
87+
concatListRight = foldr (\xs ys -> xs ++ ys) []
8888

8989
concatDListFunLeft :: [[a]] -> [a]
9090
concatDListFunLeft lists = toListN (foldl' (\dl ys -> let !r = dl `concatN` (fromListN ys) in r) newN lists)

plot-concat.pdf

0 Bytes
Binary file not shown.

plot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,13 +286,13 @@ def draw(df, test_description, methods, method_baseline, title, output_file=None
286286
df,
287287
"DPS interface for compact regions/List and DList concatenation",
288288
[
289-
"concatRightList.force",
290-
# "concatRightList.copyCR",
289+
"concatListRight.force",
290+
# "concatListRight.copyCR",
291291
"concatDListFunLeft.force",
292292
# "concatDListFunLeft.copyCR",
293293
("concatDListDpsLeft", 1),
294294
],
295-
"concatRightList.force",
295+
"concatListRight.force",
296296
"Benchmark of iterated concatenations on lists and difference lists",
297297
"plot-concat.pdf"
298298
)

0 commit comments

Comments
 (0)