minio / simdjson-go

Golang port of simdjson: parsing gigabytes of JSON per second
Apache License 2.0
1.8k stars 85 forks source link

Impact of GOAMD64 on simdjson-go #69

Closed rabbbit closed 2 years ago

rabbbit commented 2 years ago

Hi!

Go 1.18 added the GOAMD64 build environment variable (https://tip.golang.org/doc/go1.18#amd64, https://github.com/golang/go/wiki/MinimumRequirements#amd64).

On the surface, it would seem that GOAMD64=v3+ should affect performance of this package, since it's adding a bunch of SIMD instructions.

Could you please verify that assumption? Is there any relationship between the environmental variable and this project?

Thanks,

klauspost commented 2 years ago

Parsing requires v3. Features are detected runtime, so the flags doesn't do anything.

klauspost commented 2 years ago

(and it there is no real benefit from it)

rabbbit commented 2 years ago

Thanks!