Source file src/simd/archsimd/_gen/specgen/load_test.go
1 // Copyright 2026 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package specgen 6 7 import "testing" 8 9 func BenchmarkLoad(b *testing.B) { 10 for b.Loop() { 11 funcs, err := Load("../../../internal/spec", &LoadOptions{}) 12 if err != nil { 13 b.Fatalf("Load failed: %s", err) 14 } 15 if len(funcs) < 100 { 16 b.Fatalf("Load only loaded %d Funcs, expect >= 100", len(funcs)) 17 } 18 } 19 } 20