Skip to content
Snippets Groups Projects
Commit 7d3d9bbf authored by Serge S. Gulin's avatar Serge S. Gulin :construction_worker:
Browse files

Unicode: General Category size test (related #24789)

Added trivial size performance test which involves unicode general category usage via `read`.
The `read` itself uses general category to detect spaces.

The purpose for this test is to measure outcome of applying improvements at General Category representation in code discussed at #24789.
parent 64459a3e
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,8 @@ test('size_hello_obj', [collect_size(5, 'size_hello_obj.o')], compile, [''])
test('size_hello_artifact', [collect_size(5, 'size_hello_artifact' + exe_extension())],
compile_artifact, [''])
test('size_hello_unicode', [collect_size(5, 'size_hello_unicode' + exe_extension())], compile_artifact, [''])
size_acceptance_threshold = 100
test('array_dir' ,[collect_size_ghc_pkg(size_acceptance_threshold , 'array')] , static_stats , [] )
......
-- same as size_hello_artifact but we test the size of the resulting executable with unicode general category involved.
module Main where
-- read uses unicode general category to detect spaces
main = print (read @Int "1337")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment