mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-30 04:20:53 +00:00
Update Go AWS SDK to the latest version
This commit is contained in:
committed by
Andrey Smirnov
parent
d08be990ef
commit
94a72b23ff
+33
@@ -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))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user