Skip to content

Commit

Permalink
add sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
trym-b committed Mar 7, 2024
1 parent 60b0849 commit c5180ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions url/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
"strconv"
"strings"
"testing"
"time"
)

func TestParse(t *testing.T) {
Expand Down Expand Up @@ -179,6 +180,7 @@ func BenchmarkIssue6(b *testing.B) {
for i := 10; i <= 20; i++ {
n := 1 << i
b.Run(fmt.Sprint(n), func(b *testing.B) {
time.Sleep(30 * time.Second)
var buf strings.Builder
buf.Grow(n + 32)
buf.WriteString("data:text/javascript,")
Expand Down

0 comments on commit c5180ce

Please sign in to comment.