-
Notifications
You must be signed in to change notification settings - Fork 17.6k
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
File IO fsync(os.File.Sync) extremely slow on macOS Big Sur #43342
Labels
Comments
ideawu
changed the title
File IO fsyn(os.File.Sync) extremely slow on macOS Big Sur
File IO fsync(os.File.Sync) extremely slow on macOS Big Sur
Dec 23, 2020
You can use
Not using bufio (Original Program):
Using bufio:
|
Well, it seems on macOS |
Ah, okay! Maybe we can close this issue, then! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of Go are you using (
go version
)?MacBook Pro (13-inch, 2020, Four Thunderbolt 3 ports)
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Write codes to test fsync() with Golang and C.
file: bench-fsync.go
file: bench-fsync.c
Run:
What did you expect to see?
Golang File IO fsync is not so slow.
What did you see instead?
Golang File IO fsync is extremely slow, compare with C.
The text was updated successfully, but these errors were encountered: