• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Performance of Go

 
Ranch Hand
Posts: 458
Scala jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A couple of questions:
1) How does Go compare to other languages for performance?
2) Is it portable like Java (write once, run anywhere)
3) following on from 3, does it run in it's own JVM like container?
 
Ranch Hand
Posts: 529
C++ Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Go compiles to native. It's fast.
In most of the benchmarks, performance and memory usage is better than Java.
http://benchmarksgame.alioth.debian.org/u64q/go.html
It's write once, run anywhere, but not compile once, run anywhere. You still have to compile for the target platform, since the compiler generates native code.
The compiler itself is reasonably fast too. Not as good as Java, but then that's to be expected since the Java compiler generates byte codes rather than native.

 
I think she's lovely. It's this tiny ad that called her crazy:
Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Apps
https://coderanch.com/t/722574/Sauce-Labs-World-Largest-Continuous
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!