Sobes.tech
Junior — Middle

How long does the pause process of the entire application take during garbage collection?

sobes.tech AI

Answer from AI

In Go (Golang), garbage collection is implemented with minimal pauses for the application. Modern GC in Go is a three-phase, concurrent collector that aims to minimize stop-the-world pause times.

The typical pause time in Go GC is usually measured in microseconds or low milliseconds, often less than 1 millisecond, depending on the amount of allocated memory and load. This is achieved because most of the garbage collection work is performed in parallel with the application's execution, and pauses are only needed for short synchronization.

Therefore, the total pause time of the application during GC in Go is very short — usually from a few hundred microseconds to a few milliseconds, which is almost imperceptible to the user.

How long does the pause process of the entire… - sobes.tech