On 7/18/2013 8:51 PM, mattn wrote:
> Hi all.
>
> I found interesting benchmark result (sorry its written in japanese)
>
>
http://ryochack.hatenablog.com/entry/2013/07/18/201736
>
> This benchmark is doing:
>
> * open large file using mmap in C, and syscall.Mmap in go
> * counting 0x00
> * close
Here's a more realistic, and classic, benchmark.
http://www.fourmilab.ch/fbench/fbench.html
"Fbench" is a computation used in lens design, heavy
on floating point and trig functions. It's a reasonable
indication on how fast number-crunching code will run.
The correct answers are checked, and Go gets the right ones.
This benchmark has been written in over 15 languages.
For language comparisons, C is assigned a value of 1.
I ported Fbench to Go and submitted the port for testing.
The Go compiler comes in at 1.481, which is not bad.
The versions for all languages are available from that
link if you want to re-run any of the tests.
John Nagle