Skip to content
Snippets Groups Projects
Commit fef528c1 authored by Manuel Kieweg's avatar Manuel Kieweg
Browse files

remove cpu flag

parent 120b817d
Branches
No related tags found
No related merge requests found
Pipeline #81042 passed with warnings
package store package store
import ( import (
"strconv"
"testing" "testing"
"code.fbi.h-da.de/danet/gosdn/interfaces/store" "code.fbi.h-da.de/danet/gosdn/interfaces/store"
...@@ -123,7 +122,7 @@ func BenchmarkGetParallel(b *testing.B) { ...@@ -123,7 +122,7 @@ func BenchmarkGetParallel(b *testing.B) {
}, },
} }
for _, bm := range benchmarks { for _, bm := range benchmarks {
b.Run(bm.name+strconv.Itoa(bm.iterations), func(b *testing.B) { b.Run(bm.name, func(b *testing.B) {
b.SetParallelism(bm.iterations) b.SetParallelism(bm.iterations)
b.RunParallel(func(pb *testing.PB) { b.RunParallel(func(pb *testing.PB) {
for pb.Next() { for pb.Next() {
...@@ -165,7 +164,7 @@ func BenchmarkAddParallel(b *testing.B) { ...@@ -165,7 +164,7 @@ func BenchmarkAddParallel(b *testing.B) {
}, },
} }
for _, bm := range benchmarks { for _, bm := range benchmarks {
b.Run(bm.name+strconv.Itoa(bm.iterations), func(b *testing.B) { b.Run(bm.name, func(b *testing.B) {
b.SetParallelism(bm.iterations) b.SetParallelism(bm.iterations)
b.RunParallel(func(pb *testing.PB) { b.RunParallel(func(pb *testing.PB) {
for pb.Next() { for pb.Next() {
...@@ -210,7 +209,7 @@ func BenchmarkAddGetParallel(b *testing.B) { ...@@ -210,7 +209,7 @@ func BenchmarkAddGetParallel(b *testing.B) {
}, },
} }
for _, bm := range benchmarks { for _, bm := range benchmarks {
b.Run(bm.name+strconv.Itoa(bm.iterations), func(b *testing.B) { b.Run(bm.name, func(b *testing.B) {
b.SetParallelism(bm.iterations) b.SetParallelism(bm.iterations)
b.RunParallel(func(pb *testing.PB) { b.RunParallel(func(pb *testing.PB) {
for pb.Next() { for pb.Next() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment