bugfixing, performance improvements and added casting frames formula
This commit is contained in:
20
pkg/memory/game_reader_test.go
Normal file
20
pkg/memory/game_reader_test.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package memory
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func BenchmarkDataReader(b *testing.B) {
|
||||
process, err := NewProcess()
|
||||
require.NoError(b, err)
|
||||
|
||||
gr := NewGameReader(process)
|
||||
gr.GetData()
|
||||
|
||||
b.ResetTimer()
|
||||
for n := 0; n < b.N; n++ {
|
||||
gr.GetData()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user