Update Go AWS SDK to the latest version

This commit is contained in:
Andrey Smirnov
2019-07-13 00:03:55 +03:00
committed by Andrey Smirnov
parent d08be990ef
commit 94a72b23ff
2183 changed files with 885887 additions and 228114 deletions
+33
View File
@@ -0,0 +1,33 @@
package ini
import (
"testing"
)
const (
section = `[default]
region = us-west-2
credential_source = Ec2InstanceMetadata
s3 =
foo=bar
bar=baz
output = json
[assumerole]
output = json
region = us-west-2
`
)
func BenchmarkINIParser(b *testing.B) {
for i := 0; i < b.N; i++ {
ParseBytes([]byte(section))
}
}
func BenchmarkTokenize(b *testing.B) {
lexer := iniLexer{}
for i := 0; i < b.N; i++ {
lexer.tokenize([]byte(section))
}
}