# Measuring cost of spawning Goroutines

DevFeed: [Measuring cost of spawning Goroutines](<https://devfeed.tech/articles/measuring-cost-of-spawning-goroutines-39625.md>)

Original publisher: [Read original article](<https://www.gauravsarma.com/posts/2023-09-17_Measuring-cost-of-spawning-Goroutines-4b0dab6f5bf7>)

Published: 2023-09-17T00:00:00Z

Content type: article

Language: en

Sources: [Gaurav Sarma's Blog](<https://devfeed.tech/sources/gaurav-sarma-s-blog.md>)

Topics: [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [Benchmark](<https://devfeed.tech/topics/benchmark.md>), [Go Language](<https://devfeed.tech/topics/go-language.md>), [Concurrent Programming](<https://devfeed.tech/topics/concurrent-programming.md>)

Tags: [benchmark](<https://devfeed.tech/tags/benchmark.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [go](<https://devfeed.tech/tags/go.md>), [goroutines](<https://devfeed.tech/tags/goroutines.md>), [measuring](<https://devfeed.tech/tags/measuring.md>)

## AI overview

This article revisits a Go benchmark measuring goroutine-spawning patterns. The corrected experiment separates channel synchronization costs from goroutine creation and finds that the original conclusion favoring preallocated worker pools was imprecise.

## Source excerpt

> 2026 update. The original version of this post compared three concurrency shapes by timing fixed batches of 1M / 10M / 100M / 1B operations and concluded "always pre-allocate...