Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/continuous-benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Run Golang benchmarks
shell: bash
run: |
COUNT=$([[ "${{ github.event_name }}" == "pull_request" ]] && echo 1 || echo 5)
COUNT=$([[ "${{ github.event_name }}" == "pull_request" ]] && echo 5 || echo 5)
LOG_LEVEL=FATAL GOMAXPROCS=4 go test -run='$^' -count=$COUNT -bench=. -benchmem ./... | tee ${{ runner.temp }}/gotool.txt

# Add GitHub job summary for pull requests.
Expand Down
2 changes: 2 additions & 0 deletions cache/cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ func TestStress(t *testing.T) {
}

func BenchmarkBucketClean(b *testing.B) {
b.SkipNow()

b.StopTimer()

cleaner := NewCleaner(0, nil)
Expand Down
4 changes: 4 additions & 0 deletions frac/active_ids_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ func TestSeqListAppend(t *testing.T) {
}

func BenchmarkMutexListAppend(b *testing.B) {
b.SkipNow()

gr := 2
mu := sync.Mutex{}
b.SetBytes(int64(gr * 8000000))
Expand All @@ -57,6 +59,8 @@ func BenchmarkMutexListAppend(b *testing.B) {
}

func BenchmarkSeqListAppend(b *testing.B) {
b.SkipNow()

gr := 2
b.SetBytes(int64(gr * 8000000))
for n := 0; n < b.N; n++ {
Expand Down
4 changes: 4 additions & 0 deletions node/bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ func Generate(n int) ([]uint32, uint32) {
// bench for base point
// you can't go faster
func BenchmarkCopy(b *testing.B) {
b.SkipNow()

res := make([]uint32, b.N)
n := newNodeStaticSize(b.N)
b.ResetTimer()
Expand All @@ -33,6 +35,8 @@ func BenchmarkCopy(b *testing.B) {

// base point
func BenchmarkIterate(b *testing.B) {
b.SkipNow()

res := make([]uint32, b.N)
n := newNodeStaticSize(b.N)
b.ResetTimer()
Expand Down
4 changes: 4 additions & 0 deletions pattern/pattern_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,8 @@ func TestFindSequence(t *testing.T) {
}

func BenchmarkFindSequence_Deterministic(b *testing.B) {
b.SkipNow()

type testCase struct {
haystack []byte
needles [][]byte
Expand Down Expand Up @@ -556,6 +558,8 @@ func BenchmarkFindSequence_Deterministic(b *testing.B) {
}

func BenchmarkFindSequence_Random(b *testing.B) {
b.SkipNow()

sizes := []struct {
name string
haystackSize int
Expand Down
10 changes: 10 additions & 0 deletions tests/setup/doc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ func RunParallel(n int, f func()) {
}

func BenchmarkRandomJSON(b *testing.B) {
b.SkipNow()

RunParallel(4, func() {
sum := 0
for i := 0; i < b.N; i++ {
Expand All @@ -67,6 +69,8 @@ func BenchmarkRandomJSON(b *testing.B) {
}

func BenchmarkRandomDoc(b *testing.B) {
b.SkipNow()

RunParallel(4, func() {
sum := 0
for i := 0; i < b.N; i++ {
Expand All @@ -79,18 +83,24 @@ func BenchmarkRandomDoc(b *testing.B) {
}

func BenchmarkGenerateDocs(b *testing.B) {
b.SkipNow()

res := GenerateDocs(b.N, func(_ int, doc *ExampleDoc) {
*doc = *RandomDoc(1)
})
_ = res
}

func BenchmarkGenerateDocsJSON(b *testing.B) {
b.SkipNow()

res := GenerateDocsJSON(b.N, false)
_ = res
}

func BenchmarkGenerateDocsJSONFields(b *testing.B) {
b.SkipNow()

res := GenerateDocsJSON(b.N, true)
_ = res
}
Loading