Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 11 of 11 for pb (0.02 sec)

  1. src/database/sql/sql_test.go

    	stmt, err := db.Prepare("SELECT|magicquery|op|op=?,millis=?")
    	if err != nil {
    		b.Fatal(err)
    	}
    	defer stmt.Close()
    
    	b.SetParallelism(parallelism)
    	b.RunParallel(func(pb *testing.PB) {
    		for pb.Next() {
    			rows, err := stmt.Query("sleep", 1)
    			if err != nil {
    				b.Error(err)
    				return
    			}
    			rows.Close()
    		}
    	})
    }
    
    func TestGrabConnAllocs(t *testing.T) {
    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