Skip to content

Commit

Permalink
test: fix benchmark test
Browse files Browse the repository at this point in the history
  • Loading branch information
nekrassov01 committed Mar 19, 2024
1 parent ed79fed commit 00359b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

func Benchmark(b *testing.B) {
b.ResetTimer()
line := `0.0.0.0 - - [17/May/2024:10:05:03 +0000] "GET /index.html HTTP/1.1" 200 203023 "http://your-domain.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.77 Safari/537.36"`
line := `a19b12df90c456a18e96d34c56d23c56a78f0d89a45f6a78901b23c45d67ef8a awsrandombucket43 [16/Feb/2019:11:23:45 +0000] 192.0.2.132 a19b12df90c456a18e96d34c56d23c56a78f0d89a45f6a78901b23c45d67ef8a 3E57427F3EXAMPLE REST.GET.VERSIONING - "GET /awsrandombucket43?versioning HTTP/1.1" 200 - 113 - 7 - "-" "S3Console/0.4" - s9lzHYrFp76ZVxRcpX9+5cjAnEH2ROuNkd2BHfIa6UkFVdtjf5mKR3/eTPFvsiP/XV/VLi31234= SigV2 ECDHE-RSA-AES128-GCM-SHA256 AuthHeader awsrandombucket43.s3.us-west-1.amazonaws.com TLSV1.1 -`
buf := &bytes.Buffer{}
p := parser.NewS3RegexParser(context.Background(), buf, parser.Option{})
for i := 0; i < b.N; i++ {
Expand Down

0 comments on commit 00359b6

Please sign in to comment.