Hi all, “New Virtual Machine” is on the roadmap for Q2 (April-June) 2026
It cites an ‘initial 5x speedup’. I’m interested in creating a snippet to give some indication of the current baseline.
Does anyone have ideas for this? Types of operations that are currently pain points?
You’ll see speedups with the new VM across the board. Some operations improving by more than 5x. There are multiple areas worth benchmarking, but here’s one snippet that should see a massive improvement:
TestAddToArray(Count:int):[]int =
var Nums:[]int = array{}
for (I := 0..Count):
set Nums += array{I}
Nums
Main():void =
TestAddToArray(100000)
2 Likes