bugfixing, performance improvements and added casting frames formula

This commit is contained in:
Héctor Giménez
2024-05-09 20:27:31 +09:00
parent 0c6a2c17ab
commit c398062b57
14 changed files with 293 additions and 216 deletions

View 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()
}
}