Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkManyConcurrentQueries (0.32 sec)

  1. src/database/sql/sql_test.go

    	}
    }
    
    func BenchmarkConcurrentRandom(b *testing.B) {
    	b.ReportAllocs()
    	ct := new(concurrentRandomTest)
    	for i := 0; i < b.N; i++ {
    		doConcurrentTest(b, ct)
    	}
    }
    
    func BenchmarkManyConcurrentQueries(b *testing.B) {
    	b.ReportAllocs()
    	// To see lock contention in Go 1.4, 16~ cores and 128~ goroutines are required.
    	const parallelism = 16
    
    	db := newTestDB(b, "magicquery")
    	defer closeDB(b, db)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
Back to top