If this uses os.File.Sync, it's not safe on MacOS.
Also it would benchmark artificially fast on MacOS.
https://github.com/golang/go/issues/26650
Many storage libraries are affected, including Bleve.
Also it would benchmark artificially fast on MacOS.
https://github.com/golang/go/issues/26650
Many storage libraries are affected, including Bleve.