#Didn't have rust sum types so I hacked this up for my bytecode VM (Anything wrong?)

2 messages · Page 1 of 1 (latest)

alpine belfry
#
goos: linux
goarch: amd64
cpu: Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz
BenchmarkValue-8                   13971             85481 ns/op              17 B/op          0 allocs/op
BenchmarkValueUnsafe-8             41577             28884 ns/op               1 B/op          0 allocs/op
PASS
#

As u can see the performance difference is massive