Hi Kim, check this out: https://medium.com/gopherjs/surprises-in-gopherjs-performance-4a0a49b04ecd You will find some comparison of native Go vs C vs GopherJS (and JS itself, in general), with surprisingly "fast" JS* and "slow" Go. However the reason is not that obvious...
Regards пятница, 10 августа 2018 г., 13:28:01 UTC+3 пользователь netbrain написал: > > So been playing around with go and wasm support on go version devel > +479da24aac Fri Aug 10 00:47:31 2018 +0000 linux/amd64 > > Curious on performance i tried implementing a Fibonacci algorithm function > in JS and compared it to it's equivalent in GO. Calculating fib(44) takes > 11 seconds on my machine in JS and in GO it takes 36 seconds. > > Any idea's to why I would get these results? I know wasm is very much an > experimental feature of go, however I expected at least equal to or better > performance than JS. Are there any browser optimizations which is running > in my JS code which may not be in effect in wasm? > > Test code available at > https://github.com/netbrain/kata/tree/master/go/wasm > > Cheers > Kim > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.