Re: [go-nuts] More excellent work by the Go team!

2024-06-22 Thread robert engels
Thanks for point it out Brian. I must of had some background interference. I re-ran the tests, Go was the same, Java is Benchmark Mode Cnt ScoreError Units TestJavaDispatch.TestArrayDispatch avgt9 4367.196 ± 50.227 ns/op TestJavaDispatch.TestDispatch

[go-nuts] More excellent work by the Go team!

2024-06-21 Thread 'Robert Engels' via golang-nuts
I had the opportunity to revisit my interface dispatch benchmark (https://github.com/robaho/go-dispatch-test ). Previously, the dispatching using pointer receivers was nearly 3x slower (i.e. 5.5 ns to 12.6 ns): goos: darwin goarch: amd64 pkg: github.