Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/strconv/itoa_test.go

    }
    
    func BenchmarkFormatInt(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		for _, test := range itob64tests {
    			s := FormatInt(test.in, test.base)
    			BenchSink += len(s)
    		}
    	}
    }
    
    func BenchmarkAppendInt(b *testing.B) {
    	dst := make([]byte, 0, 30)
    	for i := 0; i < b.N; i++ {
    		for _, test := range itob64tests {
    			dst = AppendInt(dst[:0], test.in, test.base)
    			BenchSink += len(dst)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 15 21:09:39 UTC 2022
    - 5.8K bytes
    - Viewed (0)
Back to top