Updated benchmarks with prev change to avoid heap allocations in callNative
Updated benchmarks with prev change to avoid heap allocations in callNative

name                    old time/op  new time/op  delta
GlobalVars-8             659ns ± 1%   660ns ± 1%     ~     (p=0.381 n=5+5)
LocalVars-8              626ns ± 2%   627ns ± 1%     ~     (p=0.683 n=5+5)
IncrDecr-8               745ns ± 1%   747ns ± 2%     ~     (p=0.579 n=5+5)
SimpleBuiltins-8        1.31µs ± 2%  1.34µs ± 5%     ~     (p=0.548 n=5+5)
BuiltinMatch-8          3.13µs ± 1%  3.11µs ± 1%     ~     (p=0.151 n=5+5)
BuiltinIndex-8          1.60µs ± 3%  1.59µs ± 2%     ~     (p=0.500 n=5+5)
BuiltinSubstr-8         1.60µs ± 3%  1.60µs ± 5%     ~     (p=0.548 n=5+5)
BuiltinSplitSpace-8     88.3µs ± 2%  87.8µs ± 1%     ~     (p=0.841 n=5+5)
BuiltinSplitRegex-8      134µs ± 2%   134µs ± 0%     ~     (p=1.000 n=5+5)
BuiltinSub-8            13.6µs ± 1%  13.6µs ± 1%     ~     (p=0.222 n=5+5)
BuiltinSubAmpersand-8   13.6µs ± 2%  13.6µs ± 0%     ~     (p=1.000 n=5+5)
BuiltinGsub-8           16.4µs ± 1%  16.1µs ± 2%     ~     (p=0.095 n=5+5)
BuiltinGsubAmpersand-8  16.0µs ± 1%  16.0µs ± 1%     ~     (p=1.000 n=5+5)
BuiltinSprintf-8        10.2µs ± 1%  10.2µs ± 1%     ~     (p=0.056 n=5+5)
RecursiveFunc-8         17.3µs ± 2%  17.3µs ± 1%     ~     (p=0.802 n=5+5)
FuncCall-8              3.17µs ± 1%  3.17µs ± 1%     ~     (p=1.000 n=5+5)
ForLoop-8               5.93µs ± 2%  5.86µs ± 1%     ~     (p=0.095 n=5+5)
ForInLoop-8             2.06µs ± 3%  2.12µs ± 3%     ~     (p=0.056 n=5+5)
IfStatement-8            279ns ± 3%   281ns ± 3%     ~     (p=0.548 n=5+5)
CondExpr-8               272ns ± 2%   272ns ± 2%     ~     (p=0.881 n=5+5)
SimplePattern-8          189ns ± 4%   188ns ± 4%     ~     (p=0.841 n=5+5)
RegexMatch-8            1.47µs ± 4%  1.45µs ± 3%     ~     (p=0.222 n=5+5)
ConcatLarge-8           6.78ms ± 2%  6.63ms ± 3%     ~     (p=0.095 n=5+5)
Assign-8                 533ns ± 2%   531ns ± 1%     ~     (p=0.968 n=5+5)
AugAssign-8             2.05µs ± 1%  2.04µs ± 2%     ~     (p=0.222 n=5+5)
ConcatSmall-8            856ns ± 1%   847ns ± 0%   -1.05%  (p=0.032 n=5+5)
GetField-8               511ns ± 1%   505ns ± 1%   -1.21%  (p=0.032 n=5+5)
ArrayOperations-8       1.05µs ± 1%  1.03µs ± 1%   -1.70%  (p=0.032 n=5+5)
BinaryOperators-8        820ns ± 2%   806ns ± 1%   -1.73%  (p=0.024 n=5+5)
Comparisons-8            416ns ± 1%   408ns ± 0%   -1.76%  (p=0.016 n=5+4)
SetField-8               993ns ± 1%   969ns ± 1%   -2.46%  (p=0.008 n=5+5)
BuiltinLength-8         1.03µs ± 5%  0.96µs ± 6%   -6.45%  (p=0.016 n=5+5)
NativeFunc-8            10.2µs ± 0%   8.8µs ± 1%  -13.88%  (p=0.008 n=5+5)
[Geo mean]              2.95µs       2.92µs        -1.08%

benhoyt/goawk,benhoyt/goawk,benhoyt/goawk