Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkCompressedZipGarbage (0.13 sec)

  1. src/archive/zip/writer_test.go

    	}
    	err = rc.Close()
    	if err != nil {
    		t.Fatalf("closing %s: %v", f.Name, err)
    	}
    	if !bytes.Equal(b, wt.Data) {
    		t.Errorf("File contents %q, want %q", b, wt.Data)
    	}
    }
    
    func BenchmarkCompressedZipGarbage(b *testing.B) {
    	bigBuf := bytes.Repeat([]byte("a"), 1<<20)
    
    	runOnce := func(buf *bytes.Buffer) {
    		buf.Reset()
    		zw := NewWriter(buf)
    		for j := 0; j < 3; j++ {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Sep 23 14:32:33 UTC 2024
    - 14.4K bytes
    - Viewed (0)
Back to top