Skip to content
Closed
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
35 changes: 0 additions & 35 deletions internal/filter/optimizations_benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,41 +155,6 @@ func BenchmarkFastStringBuilder(b *testing.B) {
}
}

// BenchmarkParallelProcessor benchmarks parallel processing
func BenchmarkParallelProcessor(b *testing.B) {
processor := NewParallelProcessor()

// Simple processing function
processFn := func(input string) (string, int) {
// Simple transformation: uppercase
output := fastops.FastLower(input)
return output, len(input) - len(output)
}

sizes := []int{10, 100, 1000}

for _, size := range sizes {
items := make([]string, size)
for i := range items {
items[i] = makeString(100)
}

b.Run(fmt.Sprintf("Parallel_%d_items", size), func(b *testing.B) {
for i := 0; i < b.N; i++ {
processor.ProcessItems(items, processFn)
}
})

b.Run(fmt.Sprintf("Sequential_%d_items", size), func(b *testing.B) {
for i := 0; i < b.N; i++ {
for _, item := range items {
processFn(item)
}
}
})
}
}

// BenchmarkPipeline benchmarks the full pipeline
func BenchmarkPipeline(b *testing.B) {
configs := []struct {
Expand Down
339 changes: 0 additions & 339 deletions internal/filter/parallel.go

This file was deleted.

Loading
Loading