Re:How We Built Uber’s Highest Query per Second Service Usin...
by _ph_ on Wednesday March 02, 2016 @02:19AM
(#11208534)
Go run first compiles the code and builds an executable. You are mostly benchmarking for both systems the compilation time. Building an executable in Go takes most of a second. A significant benchmark would check the run times.
[ Parent
| on HN ]
Re:How We Built Uber’s Highest Query per Second Service Usin...
by hughw on Thursday March 03, 2016 @12:33PM
(#11218382)
No, if you examine the code, you'll see the timer times only the accumulated execution time for the loop. The code has been compiled. See below to eliminate doubt -- I used go build and got similar numbers.
Re:How We Built Uber’s Highest Query per Second Service Usin...
by artursapek on Wednesday March 02, 2016 @02:04PM
(#11212140)
Exactly. Build it and then benchmark the binary. Nobody uses `go run` in production.