-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added writetests #14
base: main
Are you sure you want to change the base?
added writetests #14
Conversation
for i := 0; i < (*fFileSize / *fBlockSize); i++ { | ||
b := make([]byte, *fBlockSize*OneKB) | ||
|
||
startByte := int64(i * (*fBlockSize * OneKB)) | ||
|
||
_, err = rand.Read(b) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we move the byte generation code on the top? - As generation of random bytes is a cpu intensive operation.
err = fmt.Errorf("while closing the fileHandle: %w", err) | ||
return | ||
} | ||
time.Sleep(1 * time.Minute) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional: We can remove this. I have added it to separate the metrics of two consecutive execution.
No description provided.