summaryrefslogtreecommitdiff
path: root/libraries/base/tests/perf/all.T
diff options
context:
space:
mode:
authorJosh Meredith <joshmeredith2008@gmail.com>2023-04-26 14:42:20 +0000
committerJosh Meredith <joshmeredith2008@gmail.com>2023-05-02 11:54:40 +0000
commit5b8f25c466bdc0f5345cbc020c207d94540d84f8 (patch)
tree26bc6534edeb59cefba3768fe32f0c44e629653c /libraries/base/tests/perf/all.T
parent052e2bb629abc97b394b9de2394eb36cbed9385f (diff)
downloadhaskell-wip/codebuffer-perftest.tar.gz
base/encoding: add an allocations performance test (#22946)wip/codebuffer-perftest
Diffstat (limited to 'libraries/base/tests/perf/all.T')
-rw-r--r--libraries/base/tests/perf/all.T9
1 files changed, 9 insertions, 0 deletions
diff --git a/libraries/base/tests/perf/all.T b/libraries/base/tests/perf/all.T
index 61f42f5420..9cc1d8a128 100644
--- a/libraries/base/tests/perf/all.T
+++ b/libraries/base/tests/perf/all.T
@@ -1,5 +1,14 @@
+# .stats files aren't yet supported in the JS backend
+setTestOpts(js_skip)
+
#--------------------------------------
# Check specialization of elem via rules
#--------------------------------------
test('T17752', [only_ways(['normal'])] , makefile_test, ['T17752'])
+
+#--------------------------------------
+
+# We don't expect the code in test to vary at all, but the variance is set to
+# 1% in case the constant allocations increase by other means.
+test('encodingAllocations', [only_ways(['normal']), collect_stats('bytes allocated', 1)], compile_and_run, ['-O2'])