Skip to content

Commit 2cfbd97

Browse files
committed
Add initial benchmarks
1 parent 2201cc9 commit 2cfbd97

File tree

2 files changed

+109
-0
lines changed

2 files changed

+109
-0
lines changed
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
Thu May 11 11:55 2023 Time and Allocation Profiling Report (Final)
2+
3+
memory +RTS -p -RTS runParseUsingDest
4+
commit c86e68fca2a3f1ce4ea5aa18c31e336059d1ccbd
5+
6+
-- removed all lines with no individual contribution to alloc with
7+
-- .*?([0-9]+\.[0-9])\s+?0\.0\s+?([0-9]+\.[0-9])\s+?([0-9]+\.[0-9])\n
8+
9+
total time = 0.00 secs (2 ticks @ 1000 us, 1 processor)
10+
total alloc = 1,904,920 bytes (excludes profiling overheads)
11+
12+
COST CENTRE MODULE SRC %time %alloc
13+
14+
lseq Data.Unrestricted.Linear.Internal.Consumable src/Data/Unrestricted/Linear/Internal/Consumable.hs:56:1-32 50.0 0.1
15+
fill.\ Compact.Pure.Internal src/Compact/Pure/Internal.hs:472:26-59 50.0 0.0
16+
gFill Compact.Pure.Internal src/Compact/Pure/Internal.hs:(496,3)-(501,61) 0.0 1.2
17+
gFill Compact.Pure.Internal src/Compact/Pure/Internal.hs:(506,3)-(515,14) 0.0 3.0
18+
gFill Compact.Pure.Internal src/Compact/Pure/Internal.hs:(520,3)-(529,31) 0.0 8.1
19+
_fillLeaf Compact.Pure.Internal src/Compact/Pure/Internal.hs:(424,1)-(434,22) 0.0 4.1
20+
$w$cgFill5 Compact.Pure.Internal <no location info> 0.0 1.6
21+
parseUsingDest'.splitOnSep Bench.Compact.SExpr memory/Bench/Compact/SExpr.hs:177:7-90 0.0 8.4
22+
parseUsingDest'.\ Bench.Compact.SExpr memory/Bench/Compact/SExpr.hs:(150,21)-(165,4) 0.0 41.2
23+
loadSampleData Bench.Compact.SExpr memory/Bench/Compact/SExpr.hs:24:1-64 0.0 6.0
24+
readStringUsingDest Bench.Compact.SExpr memory/Bench/Compact/SExpr.hs:139:1-19 0.0 4.0
25+
parseUsingDest' Bench.Compact.SExpr memory/Bench/Compact/SExpr.hs:147:1-15 0.0 13.4
26+
CAF GHC.IO.Handle.FD <entire-module> 0.0 1.8
27+
28+
29+
individual inherited
30+
COST CENTRE MODULE SRC no. entries %time %alloc %time %alloc
31+
32+
main Main memory/Main.hs:(29,1)-(43,9) 9301 0 0.0 0.1 100.0 97.7
33+
parseUsingDest' Bench.Compact.SExpr memory/Bench/Compact/SExpr.hs:147:1-15 9400 750 0.0 13.4 0.0 18.5
34+
parseUsingDest' Bench.Compact.SExpr memory/Bench/Compact/SExpr.hs:(147,1)-(185,57) 9401 750 0.0 0.3 0.0 4.6
35+
readStringUsingDest Bench.Compact.SExpr memory/Bench/Compact/SExpr.hs:139:1-19 9632 428 0.0 4.0 0.0 4.3
36+
fill Compact.Pure.Internal src/Compact/Pure/Internal.hs:472:3-60 9640 416 0.0 0.3 0.0 0.3
37+
fill Compact.Pure.Internal src/Compact/Pure/Internal.hs:472:3-60 9416 605 0.0 0.5 0.0 0.5
38+
parseUsingDest'.appendOrRet Bench.Compact.SExpr memory/Bench/Compact/SExpr.hs:(179,7)-(185,57) 9406 256 0.0 0.2 0.0 0.3
39+
lseq Data.Unrestricted.Linear.Internal.Consumable src/Data/Unrestricted/Linear/Internal/Consumable.hs:56:1-32 9587 0 0.0 0.1 0.0 0.1
40+
$w$cgFill6 Compact.Pure.Internal <no location info> 9457 256 0.0 0.6 0.0 3.9
41+
gFill Compact.Pure.Internal src/Compact/Pure/Internal.hs:(506,3)-(515,14) 9458 256 0.0 3.0 0.0 3.2
42+
to Bench.Compact.SExpr memory/Bench/Compact/SExpr.hs:32:27-33 9464 256 0.0 0.2 0.0 0.2
43+
$w$cgFill5 Compact.Pure.Internal <no location info> 9421 255 0.0 0.6 0.0 4.2
44+
gFill Compact.Pure.Internal src/Compact/Pure/Internal.hs:(520,3)-(529,31) 9422 255 0.0 3.2 0.0 3.5
45+
shallowTerm Compact.Pure.Internal src/Compact/Pure/Internal.hs:331:1-55 9425 255 0.0 0.3 0.0 0.3
46+
$w$cgFill7 Compact.Pure.Internal <no location info> 9601 94 0.0 0.2 0.0 1.1
47+
gFill Compact.Pure.Internal src/Compact/Pure/Internal.hs:(496,3)-(501,61) 9602 94 0.0 0.9 0.0 0.9
48+
parseUsingDest'.\ Bench.Compact.SExpr memory/Bench/Compact/SExpr.hs:(150,21)-(165,4) 9405 750 0.0 41.1 0.0 41.2
49+
genericConsume Data.Unrestricted.Linear.Internal.Consumable src/Data/Unrestricted/Linear/Internal/Consumable.hs:211:1-32 9595 94 0.0 0.1 0.0 0.1
50+
parseUsingDest'.contClosingParen.\ Bench.Compact.SExpr memory/Bench/Compact/SExpr.hs:167:37-84 9409 94 0.0 0.6 0.0 0.6
51+
parseUsingDest'.contClosingQuote.\ Bench.Compact.SExpr memory/Bench/Compact/SExpr.hs:169:37-85 9630 31 0.0 0.1 0.0 11.4
52+
$w$cgFill5 Compact.Pure.Internal <no location info> 9645 385 0.0 1.0 0.0 6.3
53+
gFill Compact.Pure.Internal src/Compact/Pure/Internal.hs:(520,3)-(529,31) 9646 385 0.0 4.9 0.0 5.3
54+
shallowTerm Compact.Pure.Internal src/Compact/Pure/Internal.hs:331:1-55 9649 385 0.0 0.5 0.0 0.5
55+
$w$cgFill7 Compact.Pure.Internal <no location info> 9701 31 0.0 0.1 0.0 0.4
56+
gFill Compact.Pure.Internal src/Compact/Pure/Internal.hs:(496,3)-(501,61) 9702 31 0.0 0.3 0.0 0.3
57+
readStringUsingDest.\ Bench.Compact.SExpr memory/Bench/Compact/SExpr.hs:144:19-100 9638 373 0.0 0.8 0.0 4.4
58+
fillLeaf Compact.Pure.Internal src/Compact/Pure/Internal.hs:386:1-30 9729 373 0.0 0.3 0.0 3.3
59+
_fillLeaf Compact.Pure.Internal src/Compact/Pure/Internal.hs:(424,1)-(434,22) 9732 373 0.0 3.0 0.0 3.0
60+
genericConsume Data.Unrestricted.Linear.Internal.Consumable src/Data/Unrestricted/Linear/Internal/Consumable.hs:211:1-32 9722 373 0.0 0.3 0.0 0.3
61+
readStringUsingDest.\ Bench.Compact.SExpr memory/Bench/Compact/SExpr.hs:143:25-52 9689 31 0.0 0.1 0.0 0.1
62+
_fillLeaf Compact.Pure.Internal src/Compact/Pure/Internal.hs:(424,1)-(434,22) 9762 12 0.0 0.1 0.0 0.1
63+
parseUsingDest'.contSymbol.\ Bench.Compact.SExpr memory/Bench/Compact/SExpr.hs:175:35-77 9535 127 0.0 0.5 50.0 1.8
64+
fillLeaf Compact.Pure.Internal src/Compact/Pure/Internal.hs:386:1-30 9551 127 0.0 0.1 0.0 1.1
65+
_fillLeaf Compact.Pure.Internal src/Compact/Pure/Internal.hs:(424,1)-(434,22) 9554 127 0.0 1.0 0.0 1.0
66+
genericConsume Data.Unrestricted.Linear.Internal.Consumable src/Data/Unrestricted/Linear/Internal/Consumable.hs:211:1-32 9543 127 0.0 0.1 0.0 0.1
67+
parseUsingDest'.splitOnSep Bench.Compact.SExpr memory/Bench/Compact/SExpr.hs:177:7-90 9517 0 0.0 8.4 0.0 8.4
68+
loadSampleData Bench.Compact.SExpr memory/Bench/Compact/SExpr.hs:24:1-64 9305 0 0.0 6.0 0.0 6.0
69+
CAF GHC.IO.Encoding <entire-module> 9198 0 0.0 0.2 0.0 0.2
70+
CAF GHC.IO.Handle.FD <entire-module> 9187 0 0.0 1.8 0.0 1.8
71+
CAF:loadSampleData2 Bench.Compact.SExpr <no location info> 8953 0 0.0 0.1 0.0 0.1
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
Thu May 11 11:53 2023 Time and Allocation Profiling Report (Final)
2+
3+
memory +RTS -p -RTS runParseWithoutDest
4+
commit c86e68fca2a3f1ce4ea5aa18c31e336059d1ccbd
5+
6+
-- removed all lines with no individual contribution to alloc with
7+
-- .*?([0-9]+\.[0-9])\s+?0\.0\s+?([0-9]+\.[0-9])\s+?([0-9]+\.[0-9])\n
8+
9+
total time = 0.00 secs (1 ticks @ 1000 us, 1 processor)
10+
total alloc = 1,170,224 bytes (excludes profiling overheads)
11+
12+
COST CENTRE MODULE SRC %time %alloc
13+
14+
parseWithoutDest'.\ Bench.Compact.SExpr memory/Bench/Compact/SExpr.hs:(107,21)-(122,4) 100.0 68.7
15+
reverse Data.List.Linear src/Data/List/Linear.hs:143:1-7 0.0 1.3
16+
parseWithoutDest'.splitOnSep Bench.Compact.SExpr memory/Bench/Compact/SExpr.hs:123:7-90 0.0 13.7
17+
parseWithoutDest'.appendOrRet.\ Bench.Compact.SExpr memory/Bench/Compact/SExpr.hs:126:54-105 0.0 1.6
18+
loadSampleData Bench.Compact.SExpr memory/Bench/Compact/SExpr.hs:24:1-64 0.0 9.7
19+
CAF GHC.IO.Handle.FD <entire-module> 0.0 3.0
20+
21+
22+
individual inherited
23+
COST CENTRE MODULE SRC no. entries %time %alloc %time %alloc
24+
25+
main Main memory/Main.hs:(29,1)-(43,9) 9301 0 0.0 0.3 100.0 96.3
26+
parseWithoutDest'.\ Bench.Compact.SExpr memory/Bench/Compact/SExpr.hs:(107,21)-(122,4) 9314 750 100.0 68.7 100.0 71.0
27+
readStringWithoutDest.\ Bench.Compact.SExpr memory/Bench/Compact/SExpr.hs:101:21-60 9346 373 0.0 0.8 0.0 0.8
28+
readStringWithoutDest.\ Bench.Compact.SExpr memory/Bench/Compact/SExpr.hs:100:27-61 9347 31 0.0 0.3 0.0 1.1
29+
reverse Data.List.Linear src/Data/List/Linear.hs:143:1-7 9365 0 0.0 0.8 0.0 0.8
30+
reverse Data.List.Linear src/Data/List/Linear.hs:143:1-7 9361 0 0.0 0.5 0.0 0.5
31+
parseWithoutDest'.appendOrRet.\ Bench.Compact.SExpr memory/Bench/Compact/SExpr.hs:126:54-105 9340 255 0.0 1.6 0.0 1.6
32+
parseWithoutDest'.splitOnSep Bench.Compact.SExpr memory/Bench/Compact/SExpr.hs:123:7-90 9327 0 0.0 13.7 0.0 13.7
33+
loadSampleData Bench.Compact.SExpr memory/Bench/Compact/SExpr.hs:24:1-64 9305 0 0.0 9.7 0.0 9.7
34+
CAF GHC.Conc.Signal <entire-module> 9233 0 0.0 0.1 0.0 0.1
35+
CAF GHC.IO.Encoding <entire-module> 9198 0 0.0 0.3 0.0 0.3
36+
CAF GHC.IO.Handle.FD <entire-module> 9187 0 0.0 3.0 0.0 3.0
37+
CAF Text.Read.Lex <entire-module> 9140 0 0.0 0.1 0.0 0.1
38+
CAF:loadSampleData2 Bench.Compact.SExpr <no location info> 8953 0 0.0 0.2 0.0 0.2

0 commit comments

Comments
 (0)