Skip to content

Commit

Permalink
Update benchmark result
Browse files Browse the repository at this point in the history
  • Loading branch information
timandy committed Oct 16, 2023
1 parent 9e6c9e2 commit 39bfa72
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions api_error_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ func assertGoidGopc(t *testing.T, err RuntimeError) {

//===

// BenchmarkDebugStack-4 239652 5305 ns/op 1024 B/op 1 allocs/op
// BenchmarkDebugStack-8 301474 3400 ns/op 1024 B/op 1 allocs/op
func BenchmarkDebugStack(b *testing.B) {
b.ReportAllocs()
b.ResetTimer()
Expand All @@ -519,7 +519,7 @@ func BenchmarkDebugStack(b *testing.B) {
}
}

// BenchmarkRuntimeError-4 300091 4020 ns/op 2484 B/op 15 allocs/op
// BenchmarkRuntimeError-8 342477 3344 ns/op 2840 B/op 15 allocs/op
func BenchmarkRuntimeError(b *testing.B) {
b.ReportAllocs()
b.ResetTimer()
Expand All @@ -528,7 +528,7 @@ func BenchmarkRuntimeError(b *testing.B) {
}
}

// BenchmarkRuntimeErrorWithMessage-4 302037 3820 ns/op 2476 B/op 14 allocs/op
// BenchmarkRuntimeErrorWithMessage-8 337117 3300 ns/op 2872 B/op 15 allocs/op
func BenchmarkRuntimeErrorWithMessage(b *testing.B) {
b.ReportAllocs()
b.ResetTimer()
Expand All @@ -537,7 +537,7 @@ func BenchmarkRuntimeErrorWithMessage(b *testing.B) {
}
}

// BenchmarkRuntimeErrorWithMessageCause-4 326098 3679 ns/op 2652 B/op 14 allocs/op
// BenchmarkRuntimeErrorWithMessageCause-8 350422 3362 ns/op 2872 B/op 15 allocs/op
func BenchmarkRuntimeErrorWithMessageCause(b *testing.B) {
b.ReportAllocs()
b.ResetTimer()
Expand Down
2 changes: 1 addition & 1 deletion api_goid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func TestGoid(t *testing.T) {

//===

// BenchmarkGoid-4 229975064 4.939 ns/op 0 B/op 0 allocs/op
// BenchmarkGoid-8 331324310 3.589 ns/op 0 B/op 0 allocs/op
func BenchmarkGoid(b *testing.B) {
b.ReportAllocs()
b.ResetTimer()
Expand Down
8 changes: 4 additions & 4 deletions api_thread_local_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ func TestNewInheritableThreadLocalWithInitial_Concurrency(t *testing.T) {

//===

// BenchmarkThreadLocal-4 16088140 74.48 ns/op 7 B/op 0 allocs/op
// BenchmarkThreadLocal-8 13636471 94.17 ns/op 7 B/op 0 allocs/op
func BenchmarkThreadLocal(b *testing.B) {
tlsCount := 100
tlsSlice := make([]ThreadLocal, tlsCount)
Expand All @@ -381,7 +381,7 @@ func BenchmarkThreadLocal(b *testing.B) {
}
}

// BenchmarkThreadLocalWithInitial-4 15618451 77.03 ns/op 7 B/op 0 allocs/op
// BenchmarkThreadLocalWithInitial-8 13674153 86.76 ns/op 7 B/op 0 allocs/op
func BenchmarkThreadLocalWithInitial(b *testing.B) {
tlsCount := 100
tlsSlice := make([]ThreadLocal, tlsCount)
Expand All @@ -408,7 +408,7 @@ func BenchmarkThreadLocalWithInitial(b *testing.B) {
}
}

// BenchmarkInheritableThreadLocal-4 16109587 73.17 ns/op 7 B/op 0 allocs/op
// BenchmarkInheritableThreadLocal-8 13917819 84.27 ns/op 7 B/op 0 allocs/op
func BenchmarkInheritableThreadLocal(b *testing.B) {
tlsCount := 100
tlsSlice := make([]ThreadLocal, tlsCount)
Expand All @@ -432,7 +432,7 @@ func BenchmarkInheritableThreadLocal(b *testing.B) {
}
}

// BenchmarkInheritableThreadLocalWithInitial-4 14862778 78.77 ns/op 7 B/op 0 allocs/op
// BenchmarkInheritableThreadLocalWithInitial-8 13483130 90.03 ns/op 7 B/op 0 allocs/op
func BenchmarkInheritableThreadLocalWithInitial(b *testing.B) {
tlsCount := 100
tlsSlice := make([]ThreadLocal, tlsCount)
Expand Down

0 comments on commit 39bfa72

Please sign in to comment.