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
4,325
Issues
4,325
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
389
Merge Requests
389
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
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
Glasgow Haskell Compiler
GHC
Commits
002b2842
Commit
002b2842
authored
Nov 15, 2019
by
Ivan Kasatenko
Committed by
Ben Gamari
Nov 17, 2019
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make test 16916 more stable across runs
parent
fa98f823
Pipeline
#12866
failed with stages
in 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
testsuite/tests/lib/base/T16916.hs
testsuite/tests/lib/base/T16916.hs
+2
-2
No files found.
testsuite/tests/lib/base/T16916.hs
View file @
002b2842
...
...
@@ -27,7 +27,7 @@ idleCpuUsage :: IO Double
idleCpuUsage
=
do
startTime
<-
getMonotonicTime
startCPUTime
<-
getCPUTime
threadDelay
1
000000
threadDelay
5
000000
endCPUTime
<-
getCPUTime
endTime
<-
getMonotonicTime
return
$
fromIntegral
(
endCPUTime
-
startCPUTime
)
/
(
endTime
-
startTime
)
...
...
@@ -46,4 +46,4 @@ main = do
-- CPU consumption should roughly be the same when just idling vs
-- when idling after the event been triggered
print
$
eventTriggeredUsage
/
noEventUsage
<
2
.0
print
$
eventTriggeredUsage
/
noEventUsage
<
10
.0
Ben Gamari
🐢
@bgamari
mentioned in merge request
!2170 (closed)
·
Nov 17, 2019
mentioned in merge request
!2170 (closed)
mentioned in merge request !2170
Toggle commit list
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