Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkEncoder (0.15 sec)

  1. src/compress/lzw/writer_test.go

    		want := "\x80\x81"
    		if !empty {
    			want = "\x80Hi\x81"
    		}
    
    		if got != want {
    			t.Errorf("empty=%t: got %q, want %q", empty, got, want)
    		}
    	}
    }
    
    func BenchmarkEncoder(b *testing.B) {
    	buf, err := os.ReadFile("../testdata/e.txt")
    	if err != nil {
    		b.Fatal(err)
    	}
    	if len(buf) == 0 {
    		b.Fatalf("test file has no data")
    	}
    
    	for e := 4; e <= 6; e++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 12 11:00:47 UTC 2021
    - 5.7K bytes
    - Viewed (0)
Back to top