Skip to content

Commit

Permalink
Remove benchmark comparison
Browse files Browse the repository at this point in the history
Ending up with 0 dependencies in the go.mod file
  • Loading branch information
gregoryv committed Jun 8, 2024
1 parent 3fd414d commit f26028d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 13 deletions.
2 changes: 0 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
module github.com/gregoryv/semstr

go 1.22.2

require golang.org/x/mod v0.18.0
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
golang.org/x/mod v0.18.0 h1:5+9lSbEzPSdWkH32vYPBwEpX8KwDbM52Ud9xBUvNlb0=
golang.org/x/mod v0.18.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
9 changes: 0 additions & 9 deletions version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ package semstr
import (
"fmt"
"testing"

"golang.org/x/mod/semver"
)

func ExampleMustParse() {
Expand Down Expand Up @@ -110,13 +108,6 @@ func BenchmarkParse(b *testing.B) {
}
}

func Benchmark_semverIsValid(b *testing.B) {
// IsValid parses the string under the hood
for i := 0; i < b.N; i++ {
semver.IsValid("1.342.12-dev")
}
}

func BenchmarkCompare(b *testing.B) {
v := MustParse("1.342.12-dev")
o := MustParse("1.342.0")
Expand Down

0 comments on commit f26028d

Please sign in to comment.