About 42,900 results
Open links in new tab
  1. go - Speed of Golang Vs Java - Stack Overflow

    Aug 12, 2018 · I have written a program in Java and equivalent in Go. My java program is taking around 5.95 seconds to execute while Go program is taking around 41.675789791 seconds. While speed of Go is comparable to C or C++ as it is compiled like C then Why this much of performance difference exists? Programs are as follows: Go Program

  2. Why is Go so slow (compared to Java)? - Stack Overflow

    Apr 24, 2010 · Both Java and C are more explicit with their data and method (function) definitions. C is statically typed, and Java is less so with its inheritance model. This means that the way the data will be handled is pretty much defined during the compilation. Go is more implicit with its data and function definitions.

  3. go - Java and Golang http performance compare - Stack Overflow

    Oct 21, 2019 · If you are curious how to find out: 1. Try profiling and visualise the flame graph of your java and golang calls. Which component and program calls they spent most time at? Often, issuance of mem allocation syscall can impede performance. 2. Also, notice how golang http framework does optimisation to have a go-routine pool handling the connection.

  4. Simple Go vs Java performance comparison in one particular …

    Feb 4, 2021 · Both golang and java has the same runtime speed for more/less equivalent low-level task that they do. However, they underlying implementation for strings library can be different and hence lead to very huge performance difference. For example, have you give a thought on how Golang vs Java implement a map? How about string splitting.

  5. performance - Why is Erlang slower than Java on all these small …

    Dec 9, 2016 · To implement this in Java, I would have to write the single threaded code, I would have to take the performance hit of calling from Managed to Unmanaged (as we will be using the C implementation for the grunt work obviously), then rewrite to support 64 cores. Then rewrite it to support multiple CPUS. Then rewrite it again to support clustering.

  6. performance - Can Go really be that much faster than Python?

    Sep 25, 2012 · Java will fair much better in a trivial benchmark like this and will likely be fairly close to Go; the JIT and static-typing of the counter variable can ensure this (it uses a special integer add JVM instruction). Once again, Python has no such advantage.

  7. gRPC implementation performance - java v/s goLang

    Sep 16, 2019 · The multi-language performance dashboard @master shows Go and Java pretty neck-and-neck. In general Java has slightly better performance and latency, but Go does better in some cases like latency with streaming ping-pong. Since they are so similar, it is probably best to decide which language you want to use based on other factors.

  8. Do goroutines and light-weight Java threads mean we never need …

    Jan 15, 2023 · I'm trying to wrap my mind around what Goroutines (in Golang) and light-weight threads (in Java 19+) (and perhaps in other languages) mean for programming. For years, we've been trying to write this extremely unreadable, lambda-function-heavy code in a variety of languages that basically sets up a chain of callbacks, to be invoked ...

  9. Golang vs JavaScript (v8/node.js) map performance

    Apr 21, 2015 · Out of curiosity I wrote some trivial benchmarks comparing the performance of golang maps to JavaScript (v8/node.js) objects used as maps and am surprised at their relative performance. JavaScript objects appear to perform roughly twice as fast as go maps (even including some minor performance edges for go)! Here is the go implementation:

  10. performance - What is the Go language garbage collection …

    In Java, the equivalent expression would be to make Rect and Point classes, in which case the Min and Max fields in Rect would be pointers to separately allocated objects. This requires more allocated objects, taking up more memory, and giving …

Refresh