Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkMarshalCorpusFile (0.33 sec)

  1. src/internal/fuzz/encoding_test.go

    			}
    		})
    	}
    }
    
    // BenchmarkMarshalCorpusFile measures the time it takes to serialize byte
    // slices of various sizes to a corpus file. The slice contains a repeating
    // sequence of bytes 0-255 to mix escaped and non-escaped characters.
    func BenchmarkMarshalCorpusFile(b *testing.B) {
    	buf := make([]byte, 1024*1024)
    	for i := 0; i < len(buf); i++ {
    		buf[i] = byte(i)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 00:20:34 UTC 2024
    - 8.2K bytes
    - Viewed (0)
Back to top