Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 251ab4b

Browse filesBrowse files
committed
Print actual time on success
1 parent 6076bcf commit 251ab4b
Copy full SHA for 251ab4b

File tree

1 file changed

+5
-3
lines changed
Filter options

1 file changed

+5
-3
lines changed

‎test/image/load_test

Copy file name to clipboardExpand all lines: test/image/load_test
+5-3Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const BATCH_WAIT = 500;
1515
// Request timeout, ms:
1616
const REQ_TIMEOUT = 40000;
1717
// Print more messages if true:
18-
const VERBOSE = false;
18+
const VERBOSE = true;
1919
// Randomize test ordering (otherwise glob sorting is used):
2020
const RANDOMIZE = false;
2121

@@ -125,7 +125,8 @@ function runReq(req, completion) {
125125
successes++;
126126
}
127127
if (VERBOSE) {
128-
console.log(' Service time: ' + (Date.now() - reqStart));
128+
console.log(' Service time: ' + (Date.now() - reqStart) +
129+
', Actual time: ' + Date.now());
129130
}
130131
return completion();
131132
}
@@ -141,7 +142,8 @@ function runReq(req, completion) {
141142
successes++;
142143
}
143144
if (VERBOSE) {
144-
console.log(' Service time: ' + (Date.now() - reqStart));
145+
console.log(' Service time: ' + (Date.now() - reqStart) +
146+
', Actual time: ' + Date.now());
145147
}
146148

147149
return completion();

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.