Sobes.tech
Middle — Middle+

What performance metric of operations per second have you achieved or analyzed?

sobes.tech AI

Answer from AI

The read/write operations per second (IOPS) depend heavily on the specific application, hardware, and implementation method.

In high-performance data reading projects in Go (e.g., from databases, file systems, or networks), it is possible to reach tens or hundreds of thousands of operations per second with optimal tuning and using asynchronous or parallel approaches.

For example, reading from memory or cache with goroutines and channels can achieve very high throughput:

package main

import (
	"fmt"
	"sync"
	"time"
)

func readData(id int, wg *sync.WaitGroup) {
	defer wg.Done()
	// emulate reading
	_ = id
}

func main() {
	var wg sync.WaitGroup
	start := time.Now()
	n := 100000
	wg.Add(n)
	for i := 0; i < n; i++ {
		go readData(i, &wg)
	}
	wg.Wait()
	duration := time.Since(start)
	fmt.Printf("Completed %d read operations in %v\n", n, duration)
}

Actual performance depends on bottlenecks like disk subsystem, network, algorithms, etc.

What performance metric of operations per second have… - sobes.tech