Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex D
GHC
Commits
da66a8df
Commit
da66a8df
authored
Jan 20, 2014
by
Joachim Breitner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test case for #T7619
(artificial test cases are so nice: 90.7% improvement!)
parent
0c578870
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
testsuite/tests/perf/should_run/T7619.hs
testsuite/tests/perf/should_run/T7619.hs
+12
-0
testsuite/tests/perf/should_run/all.T
testsuite/tests/perf/should_run/all.T
+8
-0
No files found.
testsuite/tests/perf/should_run/T7619.hs
0 → 100644
View file @
da66a8df
{-# LANGUAGE TypeFamilies #-}
module
Main
where
data
family
Foo
a
data
instance
Foo
Int
=
FooInt
Int
Int
foo
::
Foo
Int
->
Int
foo
(
FooInt
a
0
)
=
0
foo
(
FooInt
a
b
)
=
foo
(
FooInt
a
(
b
-
1
))
main
::
IO
()
main
=
foo
(
FooInt
0
10000
)
`
seq
`
return
()
testsuite/tests/perf/should_run/all.T
View file @
da66a8df
...
...
@@ -314,3 +314,11 @@ test('T4267',
compile_and_run
,
['
-O
'])
test
('
T7619
',
[
stats_num_field
('
bytes allocated
',
[
(
wordsize
(
64
),
40992
,
10
)]),
# previously, it was >400000 bytes
only_ways
(['
normal
'])],
compile_and_run
,
['
-O
'])
Write
Preview
Markdown
is supported
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