On Sun, Dec 20, 2020 at 11:53 AM Arnaud Delobelle <arno...@gmail.com> wrote:

> TLDR; a simple test program appears to show that Go's (*os.File).Write is 10x 
> slower than C's fputs (on MacOS).

Apples and oranges. fputs buffers, os.File does not. Rewrite the
benchmark using bufio.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAA40n-WAHOCtOiwSJCi1wFsjKTKyGq_fxbiCRSKySff56FFnKg%40mail.gmail.com.

Reply via email to