Hiro, that was a great suggestion.
dd 1M packets of 1M bytes from /dev/zero to /dev/null
Go: 4.56u 20.14s 177.06r (6.5 GiB/s)
C: .21u 136.56s 135.62r (8.1 GiB/s)
The C's have it.
The dramatic difference in s between Go and C is confusing. But the
differences in u are pretty stunning.
The Go inner loop is this:
for inBufSize == outBufSize {
amt, err := io.CopyN(w, r, inBufSize)
...
if err == io.EOF {
return nil
}
if err != nil {
return err
}
}
That loop results in Go compiler and runtime figuring it can use a linux
optimization which got me to the 50 GiB/s. I don't have a t420 running
linux so can not compare.
ron
On Thu, Jun 26, 2025 at 6:09 AM Lucio De Re <[email protected]> wrote:
>
> On 2025/06/23 23:31, hiro wrote:
>
> 2a) against golang: since golang can only be bootstrapped with bash,
>
> That's not what I recall. And... You can bootstrap the Go toolkit using an
> alternative platform, which just adds a layer of portability even if it may
> seem like an obstacle. Curious how a "feature" can be so easily turned into
> a "bug".
>
> Lucio.
> PS: For those like Jesus' apostles who like anecdotes, I worked under a
> manager I could not convince that StarOffice (at the time) was not inferior
> to MS Office as she wanted to believe: its ability to produce documents in
> formats MS Office could not interpret while being able to interpret
> anything MS Office could produce was likewise a feature, not a bug.
> *9fans <https://9fans.topicbox.com/latest>* / 9fans / see discussions
> <https://9fans.topicbox.com/groups/9fans> + participants
> <https://9fans.topicbox.com/groups/9fans/members> + delivery options
> <https://9fans.topicbox.com/groups/9fans/subscription> Permalink
> <https://9fans.topicbox.com/groups/9fans/Tf84d656c78bbda91-M0b489ee67753dbf8731e7af3>
>
>
------------------------------------------
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/Tf84d656c78bbda91-M786950bacb99e9fd4c0f3d0c
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription