312d979be15630c5c44d31008f939e068a586a9f
mainly around getting the file size and data read for convenience for other tools
BeamNG SDK
Simple SDK to interact with BeamNG.drive OutGauge data.
Development
Performance
go test -bench=BenchmarkUpdate -benchmem -memprofile=mem.pprof
replace the function to be tested
Use go tool pprof to analyze the results
Results
# Previous footprint
goos: linux
goarch: amd64
pkg: github.com/ESilva15/gobngsdk
cpu: AMD Ryzen 7 5800X3D 8-Core Processor
BenchmarkReadData-16 362514 3188 ns/op 4 B/op 1 allocs/op
PASS
ok github.com/ESilva15/gobngsdk 1.194s
# New footprint
goos: linux
goarch: amd64
pkg: github.com/ESilva15/gobngsdk
cpu: AMD Ryzen 7 5800X3D 8-Core Processor
BenchmarkUpdate-16 159170 7287 ns/op 4 B/op 1 allocs/op
PASS
ok github.com/ESilva15/gobngsdk 1.241s
# Pretty good enough. I can finally go be productive instead of "procrastinating" here
Languages
Go
100%