1
0
mirror of https://github.com/golang/go synced 2024-10-03 12:31:21 -06:00
go/src/pkg/utf8
Rob Pike b5358e0630 a few utf8 benchmarks. on my mac:
utf8_test.BenchmarkRuneCountTenASCIIChars	20000000	       108 ns/op
utf8_test.BenchmarkRuneCountTenJapaneseChars	10000000	       199 ns/op
utf8_test.BenchmarkEncodeASCIIRune	500000000	         6 ns/op
utf8_test.BenchmarkEncodeJapaneseRune	100000000	        10 ns/op
utf8_test.BenchmarkDecodeASCIIRune	100000000	        13 ns/op
utf8_test.BenchmarkDecodeJapaneseRune	100000000	        21 ns/op

R=gri
CC=golang-dev
https://golang.org/cl/161049
2009-11-25 13:30:30 -08:00
..
Makefile go: makes it build for the case $GOROOT has whitespaces 2009-11-23 17:32:51 -08:00
utf8_test.go a few utf8 benchmarks. on my mac: 2009-11-25 13:30:30 -08:00
utf8.go rewrite RuneCountInString to use range. 2009-11-25 11:39:34 -08:00