forked from rosa/hakurei
internal/rosa: pass stage alongside state
This cleans up many function signatures. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -78,7 +78,7 @@ func TestCureAll(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
for _, p := range rosa.Native().Collect() {
|
||||
a, _ := rosa.Native().Load(rosa.Std, p)
|
||||
a, _ := rosa.Native().Std().MustLoad(p)
|
||||
meta := rosa.Native().MustGet(p)
|
||||
t.Run(meta.Name, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
@@ -93,13 +93,13 @@ func TestCureAll(t *testing.T) {
|
||||
}
|
||||
|
||||
func BenchmarkStage3(b *testing.B) {
|
||||
s := rosa.Native().Clone()
|
||||
t := rosa.Native().Clone().Std()
|
||||
|
||||
for b.Loop() {
|
||||
s.Load(rosa.Std, rosa.LLVM)
|
||||
t.MustLoad(rosa.LLVM)
|
||||
|
||||
b.StopTimer()
|
||||
s.DropCaches("", 0)
|
||||
t.DropCaches("", 0)
|
||||
b.StartTimer()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user