Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
jsumners-nr committed Feb 27, 2024
1 parent 2d013c6 commit 44a6187
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit/loop-metrics.tap.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ tap.test('Loop Metrics', function (t) {
const meanTime = usage.total / usage.count
if (process.arch === 'arm64') {
console.log(

Check warning on line 68 in tests/unit/loop-metrics.tap.js

View workflow job for this annotation

GitHub Actions / lint (lts/*)

Unexpected console statement

Check warning on line 68 in tests/unit/loop-metrics.tap.js

View workflow job for this annotation

GitHub Actions / lint (lts/*)

Unexpected console statement
`{ min: ${usage.min}, max: ${usage.max}, meanTime: ${meanTime}, total: ${usage.total} }`
`{ min: ${usage.min}, max: ${usage.max}, meanTime: ${meanTime}, count: ${usage.count}, total: ${usage.total} }`
)
}
t.ok(
Expand All @@ -77,8 +77,8 @@ tap.test('Loop Metrics', function (t) {
usage.total * MICRO_TO_MILLIS <= testDuration,
'should have total less than wall-clock time'
)
t.ok(usage.min < meanTime, 'should have min less than the mean usage time')
t.ok(usage.max > meanTime, 'should have max greater than the mean usage time')
t.ok(usage.min <= meanTime, 'should have min less than the mean usage time')
t.ok(usage.max >= meanTime, 'should have max greater than the mean usage time')
t.ok(usage.max * MICRO_TO_MILLIS > SPIN_TIME - CPU_EPSILON, 'should have expected max')
t.ok(
usage.sumOfSquares * MICRO_TO_MILLIS * MICRO_TO_MILLIS < durationSquare,
Expand Down

0 comments on commit 44a6187

Please sign in to comment.