Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 251ab4b

Browse files
committed
Print actual time on success
1 parent 6076bcf commit 251ab4b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/image/load_test

Lines 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)