2026-09-16 21:36:33 +01:00
2026-09-16 19:09:06 +01:00
2026-09-16 15:06:27 +01:00
2026-09-16 21:36:33 +01:00
2024-11-18 17:55:31 +00:00
2026-09-16 21:36:33 +01:00
2026-09-15 17:41:11 +01:00
2026-09-16 15:06:27 +01:00
2026-09-16 15:06:27 +01:00
2026-09-15 17:41:11 +01:00

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
S
Description
Simple listener for BeamNG outgauge data
Readme
111 KiB
Languages
Go 100%