[Git][ghc/ghc][wip/t23103] Add a test checking overhead of -finfo-table-map

Finley McIlwaine (@FinleyMcIlwaine) gitlab at gitlab.haskell.org
Wed Aug 23 13:38:40 UTC 2023



Finley McIlwaine pushed to branch wip/t23103 at Glasgow Haskell Compiler / GHC


Commits:
4605b0a6 by Finley McIlwaine at 2023-08-23T07:34:25-06:00
Add a test checking overhead of -finfo-table-map

We want to make sure we don't end up with poor codegen performance resulting from
-finfo-table-map again as in #23103. This test adds a performance test tracking
total allocations while compiling ExactPrint with -finfo-table-map.

- - - - -


3 changed files:

- + testsuite/tests/profiling/perf/Makefile
- + testsuite/tests/profiling/perf/T23103/all.T
- + testsuite/tests/profiling/perf/T23103/info_table_map_perf.stderr


Changes:

=====================================
testsuite/tests/profiling/perf/Makefile
=====================================
@@ -0,0 +1,3 @@
+TOP=../../..
+include $(TOP)/mk/boilerplate.mk
+include $(TOP)/mk/test.mk
\ No newline at end of file


=====================================
testsuite/tests/profiling/perf/T23103/all.T
=====================================
@@ -0,0 +1,18 @@
+test(
+    'info_table_map_perf',
+    [
+        collect_compiler_stats('bytes allocated',10),
+        extra_files(
+            [
+                '../../../../../utils/check-exact/ExactPrint.hs',
+                '../../../../../utils/check-exact/Lookup.hs',
+                '../../../../../utils/check-exact/Orphans.hs',
+                '../../../../../utils/check-exact/Types.hs',
+                '../../../../../utils/check-exact/Utils.hs',
+            ]
+        ),
+        js_skip
+    ],
+    multimod_compile,
+    ['ExactPrint.hs', '-package ghc -finfo-table-map']
+)


=====================================
testsuite/tests/profiling/perf/T23103/info_table_map_perf.stderr
=====================================
@@ -0,0 +1,5 @@
+[1 of 5] Compiling Orphans          ( Orphans.hs, Orphans.o )
+[2 of 5] Compiling Types            ( Types.hs, Types.o )
+[3 of 5] Compiling Lookup           ( Lookup.hs, Lookup.o )
+[4 of 5] Compiling Utils            ( Utils.hs, Utils.o )
+[5 of 5] Compiling ExactPrint       ( ExactPrint.hs, ExactPrint.o )



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/4605b0a6e94f32185b2101402ccfc8bcdfd87539

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/4605b0a6e94f32185b2101402ccfc8bcdfd87539
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20230823/a0b37bb1/attachment-0001.html>


More information about the ghc-commits mailing list