Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tobias Decking
GHC
Commits
ee75b9ea
Commit
ee75b9ea
authored
Oct 23, 2010
by
Ian Lynagh
Browse files
Add a performance test for #3738
parent
ede34669
Changes
4
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/perf/should_run/T3738.hs
0 → 100644
View file @
ee75b9ea
module
Main
where
import
T3738a
{-# INLINE bar #-}
bar
::
Int
->
[
Int
]
bar
x
=
map
(
+
2
)
(
foo
x
)
main
=
print
(
bar
2
!!
10000
)
testsuite/tests/ghc-regress/perf/should_run/T3738.stdout
0 → 100644
View file @
ee75b9ea
5
testsuite/tests/ghc-regress/perf/should_run/T3738a.hs
0 → 100644
View file @
ee75b9ea
module
T3738a
where
{-# INLINE foo #-}
foo
::
Num
a
=>
a
->
[
a
]
foo
x
=
map
(
+
1
)
(
repeat
x
)
testsuite/tests/ghc-regress/perf/should_run/all.T
View file @
ee75b9ea
...
...
@@ -43,4 +43,15 @@ else:
test
('
T4321
',
omit_ways
(['
ghci
']),
compile_and_run
,
['
-O
'
+
sse2_opts
])
test
('
T3736
',
normal
,
run_command
,
['
$MAKE -s --no-print-directory T3736
'])
test
('
T3738
',
[
stats_num_field
('
peak_megabytes_allocated
',
1
,
1
),
# expected value: 1 (amd64/Linux)
stats_num_field
('
bytes allocated
',
60000
,
61000
),
# expected value: 60368 (amd64/Linux)
only_ways
(['
normal
'])
],
compile_and_run
,
['
-O
'])
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment