Skip to content
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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Conversation

raj-prince
Copy link
Owner

No description provided.

for i := 0; i < (*fFileSize / *fBlockSize); i++ {
b := make([]byte, *fBlockSize*OneKB)

startByte := int64(i * (*fBlockSize * OneKB))

_, err = rand.Read(b)
Copy link
Owner Author

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)
Copy link
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants