• 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
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

Performance of Go

 
Ranch Hand
Posts: 462
Scala jQuery Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
reply
    Bookmark Topic Watch Topic
  • New Topic