3 ms·
My guess is that Go, especially the database/sql package, uses too expensive synchronization. Most of the pool management code uses mutual exclusion which can
by JulienSchmidt 12y ago
My guess is that Go, especially the database/sql package, uses too expensive synchronization.
Most of the pool management code uses mutual exclusion which can get really expensive when 40 threads compete for it.