[#30] report: log start and end time of load scenario #88

Merged
fyrchik merged 1 commit from aarifullin/xk6-frostfs:feature/30-improve_report into master 2023-07-26 14:55:01 +00:00
Member

Signed-off-by: Airat Arifullin a.arifullin@yadro.com

Signed-off-by: Airat Arifullin a.arifullin@yadro.com
aarifullin added 1 commit 2023-07-20 11:54:48 +00:00
Author
Member

Docs say that load begins at setup invocation and finished at teardown. So, that's why I logged timestamps there

Errors that may happen are already logged in report

[Docs](https://k6.io/docs/using-k6/test-lifecycle/#setup-and-teardown-stages) say that load begins at `setup` invocation and finished at `teardown`. So, that's why I logged timestamps there Errors that may happen are already logged in report
aarifullin requested review from storage-core-committers 2023-07-20 11:56:31 +00:00
aarifullin requested review from storage-core-developers 2023-07-20 11:56:39 +00:00
dstepanov-yadro approved these changes 2023-07-20 12:13:21 +00:00
fyrchik reviewed 2023-07-20 13:43:04 +00:00
@ -105,1 +105,4 @@
console.log(`Total VUs: ${total_vu_count}`);
const start_timestamp = Date.now()
console.log(`Load started at: ${Date(start_timestamp).toString()}`)
Owner

Why do we cast to Date() here?

Why do we cast to `Date()` here?
Author
Member

I am not good in JS but without Date I cannot invoke toString that converts timestamp to UTC format

I am not good in JS but without `Date` I cannot invoke `toString` that converts timestamp to UTC format
fyrchik approved these changes 2023-07-20 13:43:07 +00:00
fyrchik approved these changes 2023-07-26 14:54:48 +00:00
fyrchik merged commit 5b1793f248 into master 2023-07-26 14:55:01 +00:00
Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-core-developers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/xk6-frostfs#88
No description provided.