Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestCountDecodeMallocs (0.14 sec)

  1. src/encoding/gob/timing_test.go

    		err := enc.Encode(bench)
    		if err != nil {
    			t.Fatal("encode:", err)
    		}
    	})
    	if allocs != 0 {
    		t.Fatalf("mallocs per encode of type Bench: %v; wanted 0\n", allocs)
    	}
    }
    
    func TestCountDecodeMallocs(t *testing.T) {
    	if testing.Short() {
    		t.Skip("skipping malloc count in short mode")
    	}
    	if runtime.GOMAXPROCS(0) > 1 {
    		t.Skip("skipping; GOMAXPROCS>1")
    	}
    
    	const N = 1000
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 04 07:16:59 UTC 2023
    - 6.5K bytes
    - Viewed (0)
Back to top