3 ms·
> What evidence is there, if any, that Go is significantly more performant than Python? You do realize that Go compiles to machine code and Python is a dynamic
by jbarham 14y ago
> What evidence is there, if any, that Go is significantly more performant than Python?
You do realize that Go compiles to machine code and Python is a dynamically interpreted language?
The obvious answer is that the Go standard library packages (http://golang.org/pkg/ http://golang.org/pkg/) are written in Go, including crypto code (e.g., http://golang.org/src/pkg/crypto/sha1/sha1block.go http://golang.org/src/pkg/crypto/sha1/sha1block.go), but many of the Python standard libraries are written in C for performance reasons.
For file I/O and network bound applications (e.g., Django) Python is a great choice, but if your app involves any serious computation Go is much, much faster than Python (or Ruby, Perl, PHP etc.).
Python does have excellent 3rd libraries for computation like Numpy but the actual number crunching code is written in C or Fortran.
- batista 14y ago>You do realize that Go compiles to machine code and Python is a dynamically interpreted language? Which doesn't matter much if Go's machine code/runtime is inefficient or if Python libs are written in C in the first place whereas Go's are written in Go.
- igouy 14y agoFor example, Python using the GMP library -- http://shootout.alioth.debian.org/u64/program.php?test=pidigits&lang=python3&id=2 http://shootout.alioth.debian.org/u64/program.php?test=pidig... http://shootout.alioth.debian.org/u64/program.php?test=pidigits&lang=go&id=4 http://shootout.alioth.debian.org/u64/program.php?test=pidig...