Skip to content

Instantly share code, notes, and snippets.

View kevinawoo's full-sized avatar

Kevin Woo kevinawoo

View GitHub Profile
@Deleplace
Deleplace / insert_test.go
Created September 8, 2022 12:51
Benchmark heavy use of slices.Insert vs. heavy use of a dynamic-array-like insert func
package insert
import (
"fmt"
"testing"
"golang.org/x/exp/slices"
)
func BenchmarkGrow(b *testing.B) {