Skip to content

Commit 2fe4d6a

Browse files
committed
Only split into fields when fields or numFields are accessed
This speeds up certain scripts (by a lot!) that only access $0 (the entire line). Benchmarks below: name old time/op new time/op delta RecursiveFunc-8 14.7µs ± 1% 15.5µs ± 1% +5.21% (p=0.008 n=5+5) FuncCall-8 2.81µs ± 1% 2.94µs ± 2% +4.43% (p=0.008 n=5+5) SetField-8 913ns ± 0% 932ns ± 0% +2.13% (p=0.008 n=5+5) ConcatLarge-8 6.53ms ± 0% 6.66ms ± 1% +1.98% (p=0.008 n=5+5) ConcatSmall-8 797ns ± 0% 802ns ± 0% +0.68% (p=0.016 n=4+5) LocalVars-8 586ns ± 1% 582ns ± 1% ~ (p=0.183 n=5+5) IncrDecr-8 678ns ± 8% 650ns ± 5% ~ (p=0.310 n=5+5) SimpleBuiltins-8 1.22µs ± 5% 1.16µs ±17% ~ (p=0.143 n=5+5) BuiltinMatch-8 3.03µs ± 3% 2.99µs ± 1% ~ (p=0.167 n=5+5) BuiltinLength-8 941ns ± 6% 907ns ±11% ~ (p=0.548 n=5+5) BuiltinIndex-8 1.57µs ± 7% 1.49µs ± 8% ~ (p=0.222 n=5+5) BuiltinSubstr-8 1.31µs ± 1% 1.39µs ±13% ~ (p=0.175 n=4+5) BuiltinSplitSpace-8 80.2µs ± 1% 79.8µs ± 2% ~ (p=0.548 n=5+5) BuiltinSub-8 13.1µs ± 1% 13.1µs ± 0% ~ (p=0.690 n=5+5) BuiltinSubAmpersand-8 13.0µs ± 1% 13.0µs ± 0% ~ (p=1.000 n=5+5) BuiltinGsub-8 15.6µs ± 1% 15.6µs ± 0% ~ (p=0.690 n=5+5) BuiltinGsubAmpersand-8 15.6µs ± 1% 15.6µs ± 1% ~ (p=0.095 n=5+5) BuiltinSprintf-8 9.61µs ± 0% 9.68µs ± 1% ~ (p=0.151 n=5+5) NativeFunc-8 8.36µs ± 1% 8.40µs ± 0% ~ (p=0.143 n=5+5) ForLoop-8 5.29µs ± 1% 5.35µs ± 3% ~ (p=0.421 n=5+5) ForInLoop-8 1.98µs ± 4% 2.04µs ± 3% ~ (p=0.151 n=5+5) IfStatement-8 263ns ± 4% 267ns ± 4% ~ (p=0.762 n=5+5) CondExpr-8 247ns ± 2% 249ns ± 2% ~ (p=0.333 n=5+5) GetField-8 455ns ± 1% 457ns ± 1% ~ (p=0.294 n=5+5) RegexMatch-8 1.40µs ± 4% 1.44µs ± 5% ~ (p=0.310 n=5+5) BinaryOperators-8 633ns ± 2% 646ns ± 4% ~ (p=0.151 n=5+5) Comparisons-8 363ns ± 5% 365ns ± 1% ~ (p=0.317 n=5+5) ArrayOperations-8 877ns ± 3% 871ns ± 1% ~ (p=0.516 n=5+5) Assign-8 517ns ± 7% 516ns ± 4% ~ (p=0.730 n=5+5) AugAssign-8 1.78µs ± 2% 1.79µs ± 1% ~ (p=0.690 n=5+5) BuiltinSplitRegex-8 126µs ± 1% 125µs ± 0% -0.75% (p=0.032 n=5+5) GlobalVars-8 630ns ± 4% 613ns ± 0% -2.60% (p=0.016 n=5+5) SimplePattern-8 168ns ± 3% 134ns ± 5% -19.81% (p=0.008 n=5+5) [Geo mean] 2.69µs 2.68µs -0.37%
1 parent acf310f commit 2fe4d6a

4 files changed

Lines changed: 181 additions & 164 deletions

File tree

benchmarks.txt

Lines changed: 159 additions & 159 deletions
Original file line numberDiff line numberDiff line change
@@ -1,170 +1,170 @@
11
goos: darwin
22
goarch: amd64
33
pkg: github.com/benhoyt/goawk/interp
4-
BenchmarkGlobalVars-8 2000000 654 ns/op
5-
BenchmarkGlobalVars-8 2000000 630 ns/op
6-
BenchmarkGlobalVars-8 2000000 621 ns/op
7-
BenchmarkGlobalVars-8 2000000 615 ns/op
8-
BenchmarkGlobalVars-8 2000000 629 ns/op
9-
BenchmarkLocalVars-8 2000000 583 ns/op
10-
BenchmarkLocalVars-8 3000000 589 ns/op
11-
BenchmarkLocalVars-8 3000000 590 ns/op
4+
BenchmarkGlobalVars-8 2000000 612 ns/op
5+
BenchmarkGlobalVars-8 2000000 613 ns/op
6+
BenchmarkGlobalVars-8 2000000 616 ns/op
7+
BenchmarkGlobalVars-8 2000000 613 ns/op
8+
BenchmarkGlobalVars-8 2000000 613 ns/op
9+
BenchmarkLocalVars-8 2000000 585 ns/op
10+
BenchmarkLocalVars-8 3000000 583 ns/op
1211
BenchmarkLocalVars-8 3000000 585 ns/op
13-
BenchmarkLocalVars-8 3000000 584 ns/op
14-
BenchmarkIncrDecr-8 2000000 625 ns/op
15-
BenchmarkIncrDecr-8 2000000 664 ns/op
16-
BenchmarkIncrDecr-8 2000000 693 ns/op
17-
BenchmarkIncrDecr-8 2000000 726 ns/op
18-
BenchmarkIncrDecr-8 2000000 682 ns/op
19-
BenchmarkSimpleBuiltins-8 1000000 1161 ns/op
20-
BenchmarkSimpleBuiltins-8 1000000 1222 ns/op
21-
BenchmarkSimpleBuiltins-8 1000000 1218 ns/op
22-
BenchmarkSimpleBuiltins-8 1000000 1256 ns/op
23-
BenchmarkSimpleBuiltins-8 1000000 1253 ns/op
24-
BenchmarkBuiltinMatch-8 500000 3003 ns/op
25-
BenchmarkBuiltinMatch-8 500000 3021 ns/op
12+
BenchmarkLocalVars-8 3000000 578 ns/op
13+
BenchmarkLocalVars-8 3000000 580 ns/op
14+
BenchmarkIncrDecr-8 2000000 642 ns/op
15+
BenchmarkIncrDecr-8 2000000 681 ns/op
16+
BenchmarkIncrDecr-8 2000000 626 ns/op
17+
BenchmarkIncrDecr-8 2000000 632 ns/op
18+
BenchmarkIncrDecr-8 2000000 668 ns/op
19+
BenchmarkSimpleBuiltins-8 1000000 1138 ns/op
20+
BenchmarkSimpleBuiltins-8 1000000 1104 ns/op
21+
BenchmarkSimpleBuiltins-8 1000000 1106 ns/op
22+
BenchmarkSimpleBuiltins-8 1000000 1353 ns/op
23+
BenchmarkSimpleBuiltins-8 1000000 1104 ns/op
24+
BenchmarkBuiltinMatch-8 500000 2967 ns/op
25+
BenchmarkBuiltinMatch-8 500000 2988 ns/op
2626
BenchmarkBuiltinMatch-8 500000 3015 ns/op
27-
BenchmarkBuiltinMatch-8 500000 3126 ns/op
28-
BenchmarkBuiltinMatch-8 500000 2978 ns/op
29-
BenchmarkBuiltinLength-8 2000000 908 ns/op
30-
BenchmarkBuiltinLength-8 2000000 944 ns/op
31-
BenchmarkBuiltinLength-8 2000000 998 ns/op
32-
BenchmarkBuiltinLength-8 2000000 892 ns/op
33-
BenchmarkBuiltinLength-8 2000000 965 ns/op
34-
BenchmarkBuiltinIndex-8 1000000 1449 ns/op
35-
BenchmarkBuiltinIndex-8 1000000 1637 ns/op
36-
BenchmarkBuiltinIndex-8 1000000 1648 ns/op
37-
BenchmarkBuiltinIndex-8 1000000 1557 ns/op
38-
BenchmarkBuiltinIndex-8 1000000 1540 ns/op
39-
BenchmarkBuiltinSubstr-8 1000000 1613 ns/op
40-
BenchmarkBuiltinSubstr-8 1000000 1324 ns/op
41-
BenchmarkBuiltinSubstr-8 1000000 1303 ns/op
42-
BenchmarkBuiltinSubstr-8 1000000 1299 ns/op
43-
BenchmarkBuiltinSubstr-8 1000000 1303 ns/op
44-
BenchmarkBuiltinSplitSpace-8 20000 80658 ns/op
45-
BenchmarkBuiltinSplitSpace-8 20000 80010 ns/op
46-
BenchmarkBuiltinSplitSpace-8 20000 80704 ns/op
47-
BenchmarkBuiltinSplitSpace-8 20000 80253 ns/op
48-
BenchmarkBuiltinSplitSpace-8 20000 79154 ns/op
49-
BenchmarkBuiltinSplitRegex-8 10000 125176 ns/op
50-
BenchmarkBuiltinSplitRegex-8 10000 126104 ns/op
51-
BenchmarkBuiltinSplitRegex-8 10000 125717 ns/op
52-
BenchmarkBuiltinSplitRegex-8 10000 126835 ns/op
53-
BenchmarkBuiltinSplitRegex-8 10000 124991 ns/op
54-
BenchmarkBuiltinSub-8 100000 13154 ns/op
55-
BenchmarkBuiltinSub-8 100000 13126 ns/op
56-
BenchmarkBuiltinSub-8 100000 13005 ns/op
57-
BenchmarkBuiltinSub-8 100000 13018 ns/op
58-
BenchmarkBuiltinSub-8 100000 12973 ns/op
59-
BenchmarkBuiltinSubAmpersand-8 100000 13104 ns/op
60-
BenchmarkBuiltinSubAmpersand-8 100000 13000 ns/op
61-
BenchmarkBuiltinSubAmpersand-8 100000 12967 ns/op
62-
BenchmarkBuiltinSubAmpersand-8 100000 13041 ns/op
63-
BenchmarkBuiltinSubAmpersand-8 100000 13043 ns/op
64-
BenchmarkBuiltinGsub-8 100000 15621 ns/op
65-
BenchmarkBuiltinGsub-8 100000 15497 ns/op
66-
BenchmarkBuiltinGsub-8 100000 15570 ns/op
67-
BenchmarkBuiltinGsub-8 100000 15710 ns/op
68-
BenchmarkBuiltinGsub-8 100000 15678 ns/op
69-
BenchmarkBuiltinGsubAmpersand-8 100000 15542 ns/op
70-
BenchmarkBuiltinGsubAmpersand-8 100000 15555 ns/op
71-
BenchmarkBuiltinGsubAmpersand-8 100000 15567 ns/op
72-
BenchmarkBuiltinGsubAmpersand-8 100000 15713 ns/op
73-
BenchmarkBuiltinGsubAmpersand-8 100000 15449 ns/op
74-
BenchmarkBuiltinSprintf-8 200000 9625 ns/op
75-
BenchmarkBuiltinSprintf-8 200000 9606 ns/op
76-
BenchmarkBuiltinSprintf-8 200000 9615 ns/op
77-
BenchmarkBuiltinSprintf-8 200000 9609 ns/op
78-
BenchmarkBuiltinSprintf-8 200000 9574 ns/op
79-
BenchmarkRecursiveFunc-8 100000 14665 ns/op
80-
BenchmarkRecursiveFunc-8 100000 14734 ns/op
81-
BenchmarkRecursiveFunc-8 100000 14711 ns/op
82-
BenchmarkRecursiveFunc-8 100000 14713 ns/op
83-
BenchmarkRecursiveFunc-8 100000 14803 ns/op
84-
BenchmarkFuncCall-8 500000 2801 ns/op
85-
BenchmarkFuncCall-8 500000 2835 ns/op
86-
BenchmarkFuncCall-8 500000 2811 ns/op
87-
BenchmarkFuncCall-8 500000 2791 ns/op
88-
BenchmarkFuncCall-8 500000 2818 ns/op
89-
BenchmarkNativeFunc-8 200000 8441 ns/op
90-
BenchmarkNativeFunc-8 200000 8339 ns/op
91-
BenchmarkNativeFunc-8 200000 8352 ns/op
92-
BenchmarkNativeFunc-8 200000 8339 ns/op
93-
BenchmarkNativeFunc-8 200000 8347 ns/op
94-
BenchmarkForLoop-8 300000 5342 ns/op
95-
BenchmarkForLoop-8 300000 5209 ns/op
96-
BenchmarkForLoop-8 300000 5307 ns/op
97-
BenchmarkForLoop-8 300000 5308 ns/op
98-
BenchmarkForLoop-8 300000 5262 ns/op
99-
BenchmarkForInLoop-8 1000000 1942 ns/op
100-
BenchmarkForInLoop-8 1000000 2067 ns/op
101-
BenchmarkForInLoop-8 1000000 1950 ns/op
102-
BenchmarkForInLoop-8 1000000 1938 ns/op
103-
BenchmarkForInLoop-8 1000000 2020 ns/op
104-
BenchmarkIfStatement-8 5000000 264 ns/op
105-
BenchmarkIfStatement-8 5000000 261 ns/op
106-
BenchmarkIfStatement-8 5000000 274 ns/op
27+
BenchmarkBuiltinMatch-8 500000 2999 ns/op
28+
BenchmarkBuiltinMatch-8 500000 2982 ns/op
29+
BenchmarkBuiltinLength-8 1000000 1008 ns/op
30+
BenchmarkBuiltinLength-8 2000000 831 ns/op
31+
BenchmarkBuiltinLength-8 2000000 836 ns/op
32+
BenchmarkBuiltinLength-8 2000000 936 ns/op
33+
BenchmarkBuiltinLength-8 2000000 924 ns/op
34+
BenchmarkBuiltinIndex-8 1000000 1476 ns/op
35+
BenchmarkBuiltinIndex-8 1000000 1610 ns/op
36+
BenchmarkBuiltinIndex-8 1000000 1437 ns/op
37+
BenchmarkBuiltinIndex-8 1000000 1462 ns/op
38+
BenchmarkBuiltinIndex-8 1000000 1485 ns/op
39+
BenchmarkBuiltinSubstr-8 1000000 1293 ns/op
40+
BenchmarkBuiltinSubstr-8 1000000 1383 ns/op
41+
BenchmarkBuiltinSubstr-8 1000000 1569 ns/op
42+
BenchmarkBuiltinSubstr-8 1000000 1374 ns/op
43+
BenchmarkBuiltinSubstr-8 1000000 1345 ns/op
44+
BenchmarkBuiltinSplitSpace-8 20000 80132 ns/op
45+
BenchmarkBuiltinSplitSpace-8 20000 79372 ns/op
46+
BenchmarkBuiltinSplitSpace-8 20000 78949 ns/op
47+
BenchmarkBuiltinSplitSpace-8 20000 79365 ns/op
48+
BenchmarkBuiltinSplitSpace-8 20000 81312 ns/op
49+
BenchmarkBuiltinSplitRegex-8 10000 125324 ns/op
50+
BenchmarkBuiltinSplitRegex-8 10000 124607 ns/op
51+
BenchmarkBuiltinSplitRegex-8 10000 124635 ns/op
52+
BenchmarkBuiltinSplitRegex-8 10000 124851 ns/op
53+
BenchmarkBuiltinSplitRegex-8 10000 124683 ns/op
54+
BenchmarkBuiltinSub-8 100000 13047 ns/op
55+
BenchmarkBuiltinSub-8 100000 13058 ns/op
56+
BenchmarkBuiltinSub-8 100000 13089 ns/op
57+
BenchmarkBuiltinSub-8 100000 13040 ns/op
58+
BenchmarkBuiltinSub-8 100000 13105 ns/op
59+
BenchmarkBuiltinSubAmpersand-8 100000 12977 ns/op
60+
BenchmarkBuiltinSubAmpersand-8 100000 13068 ns/op
61+
BenchmarkBuiltinSubAmpersand-8 100000 13028 ns/op
62+
BenchmarkBuiltinSubAmpersand-8 100000 13021 ns/op
63+
BenchmarkBuiltinSubAmpersand-8 100000 13097 ns/op
64+
BenchmarkBuiltinGsub-8 100000 15590 ns/op
65+
BenchmarkBuiltinGsub-8 100000 15606 ns/op
66+
BenchmarkBuiltinGsub-8 100000 15600 ns/op
67+
BenchmarkBuiltinGsub-8 100000 15574 ns/op
68+
BenchmarkBuiltinGsub-8 100000 15573 ns/op
69+
BenchmarkBuiltinGsubAmpersand-8 100000 15764 ns/op
70+
BenchmarkBuiltinGsubAmpersand-8 100000 15584 ns/op
71+
BenchmarkBuiltinGsubAmpersand-8 100000 15577 ns/op
72+
BenchmarkBuiltinGsubAmpersand-8 100000 15665 ns/op
73+
BenchmarkBuiltinGsubAmpersand-8 100000 15640 ns/op
74+
BenchmarkBuiltinSprintf-8 200000 9588 ns/op
75+
BenchmarkBuiltinSprintf-8 200000 9618 ns/op
76+
BenchmarkBuiltinSprintf-8 200000 9630 ns/op
77+
BenchmarkBuiltinSprintf-8 200000 9763 ns/op
78+
BenchmarkBuiltinSprintf-8 200000 9790 ns/op
79+
BenchmarkRecursiveFunc-8 100000 15446 ns/op
80+
BenchmarkRecursiveFunc-8 100000 15575 ns/op
81+
BenchmarkRecursiveFunc-8 100000 15487 ns/op
82+
BenchmarkRecursiveFunc-8 100000 15437 ns/op
83+
BenchmarkRecursiveFunc-8 100000 15516 ns/op
84+
BenchmarkFuncCall-8 500000 3002 ns/op
85+
BenchmarkFuncCall-8 500000 2947 ns/op
86+
BenchmarkFuncCall-8 500000 2911 ns/op
87+
BenchmarkFuncCall-8 500000 2895 ns/op
88+
BenchmarkFuncCall-8 500000 2924 ns/op
89+
BenchmarkNativeFunc-8 200000 8395 ns/op
90+
BenchmarkNativeFunc-8 200000 8362 ns/op
91+
BenchmarkNativeFunc-8 200000 8433 ns/op
92+
BenchmarkNativeFunc-8 200000 8383 ns/op
93+
BenchmarkNativeFunc-8 200000 8424 ns/op
94+
BenchmarkForLoop-8 300000 5237 ns/op
95+
BenchmarkForLoop-8 300000 5410 ns/op
96+
BenchmarkForLoop-8 300000 5520 ns/op
97+
BenchmarkForLoop-8 300000 5253 ns/op
98+
BenchmarkForLoop-8 300000 5353 ns/op
99+
BenchmarkForInLoop-8 1000000 2090 ns/op
100+
BenchmarkForInLoop-8 1000000 1986 ns/op
101+
BenchmarkForInLoop-8 1000000 2029 ns/op
102+
BenchmarkForInLoop-8 1000000 2053 ns/op
103+
BenchmarkForInLoop-8 1000000 2062 ns/op
104+
BenchmarkIfStatement-8 5000000 276 ns/op
107105
BenchmarkIfStatement-8 5000000 259 ns/op
108-
BenchmarkIfStatement-8 5000000 257 ns/op
106+
BenchmarkIfStatement-8 5000000 256 ns/op
107+
BenchmarkIfStatement-8 5000000 271 ns/op
108+
BenchmarkIfStatement-8 5000000 271 ns/op
109+
BenchmarkCondExpr-8 5000000 249 ns/op
110+
BenchmarkCondExpr-8 5000000 250 ns/op
111+
BenchmarkCondExpr-8 5000000 252 ns/op
112+
BenchmarkCondExpr-8 5000000 244 ns/op
109113
BenchmarkCondExpr-8 5000000 248 ns/op
110-
BenchmarkCondExpr-8 5000000 251 ns/op
111-
BenchmarkCondExpr-8 5000000 243 ns/op
112-
BenchmarkCondExpr-8 5000000 246 ns/op
113-
BenchmarkCondExpr-8 5000000 245 ns/op
114-
BenchmarkSimplePattern-8 10000000 167 ns/op
115-
BenchmarkSimplePattern-8 10000000 167 ns/op
116-
BenchmarkSimplePattern-8 10000000 167 ns/op
117-
BenchmarkSimplePattern-8 10000000 165 ns/op
118-
BenchmarkSimplePattern-8 10000000 172 ns/op
114+
BenchmarkSimplePattern-8 10000000 133 ns/op
115+
BenchmarkSimplePattern-8 10000000 141 ns/op
116+
BenchmarkSimplePattern-8 10000000 139 ns/op
117+
BenchmarkSimplePattern-8 10000000 130 ns/op
118+
BenchmarkSimplePattern-8 10000000 129 ns/op
119+
BenchmarkGetField-8 3000000 456 ns/op
119120
BenchmarkGetField-8 3000000 459 ns/op
120-
BenchmarkGetField-8 3000000 452 ns/op
121-
BenchmarkGetField-8 3000000 453 ns/op
122-
BenchmarkGetField-8 3000000 459 ns/op
123-
BenchmarkGetField-8 3000000 451 ns/op
124-
BenchmarkSetField-8 2000000 912 ns/op
125-
BenchmarkSetField-8 2000000 913 ns/op
126-
BenchmarkSetField-8 2000000 910 ns/op
127-
BenchmarkSetField-8 2000000 915 ns/op
128-
BenchmarkSetField-8 2000000 914 ns/op
129-
BenchmarkRegexMatch-8 1000000 1356 ns/op
130-
BenchmarkRegexMatch-8 1000000 1466 ns/op
131-
BenchmarkRegexMatch-8 1000000 1445 ns/op
132-
BenchmarkRegexMatch-8 1000000 1404 ns/op
133-
BenchmarkRegexMatch-8 1000000 1353 ns/op
134-
BenchmarkBinaryOperators-8 2000000 645 ns/op
135-
BenchmarkBinaryOperators-8 2000000 622 ns/op
136-
BenchmarkBinaryOperators-8 2000000 633 ns/op
137-
BenchmarkBinaryOperators-8 2000000 625 ns/op
138-
BenchmarkBinaryOperators-8 2000000 640 ns/op
139-
BenchmarkConcatSmall-8 2000000 797 ns/op
140-
BenchmarkConcatSmall-8 2000000 798 ns/op
141-
BenchmarkConcatSmall-8 2000000 797 ns/op
142-
BenchmarkConcatSmall-8 2000000 797 ns/op
143-
BenchmarkConcatSmall-8 2000000 797 ns/op
144-
BenchmarkConcatLarge-8 200 6509648 ns/op
145-
BenchmarkConcatLarge-8 200 6546681 ns/op
146-
BenchmarkConcatLarge-8 200 6527430 ns/op
147-
BenchmarkConcatLarge-8 200 6526448 ns/op
148-
BenchmarkConcatLarge-8 200 6526761 ns/op
149-
BenchmarkComparisons-8 5000000 362 ns/op
121+
BenchmarkGetField-8 3000000 461 ns/op
122+
BenchmarkGetField-8 3000000 454 ns/op
123+
BenchmarkGetField-8 3000000 454 ns/op
124+
BenchmarkSetField-8 2000000 935 ns/op
125+
BenchmarkSetField-8 2000000 933 ns/op
126+
BenchmarkSetField-8 2000000 933 ns/op
127+
BenchmarkSetField-8 2000000 930 ns/op
128+
BenchmarkSetField-8 2000000 930 ns/op
129+
BenchmarkRegexMatch-8 1000000 1423 ns/op
130+
BenchmarkRegexMatch-8 1000000 1476 ns/op
131+
BenchmarkRegexMatch-8 1000000 1478 ns/op
132+
BenchmarkRegexMatch-8 1000000 1435 ns/op
133+
BenchmarkRegexMatch-8 1000000 1364 ns/op
134+
BenchmarkBinaryOperators-8 2000000 650 ns/op
135+
BenchmarkBinaryOperators-8 2000000 634 ns/op
136+
BenchmarkBinaryOperators-8 2000000 670 ns/op
137+
BenchmarkBinaryOperators-8 2000000 632 ns/op
138+
BenchmarkBinaryOperators-8 2000000 646 ns/op
139+
BenchmarkConcatSmall-8 2000000 803 ns/op
140+
BenchmarkConcatSmall-8 2000000 802 ns/op
141+
BenchmarkConcatSmall-8 2000000 801 ns/op
142+
BenchmarkConcatSmall-8 2000000 802 ns/op
143+
BenchmarkConcatSmall-8 2000000 804 ns/op
144+
BenchmarkConcatLarge-8 200 6642678 ns/op
145+
BenchmarkConcatLarge-8 200 6667383 ns/op
146+
BenchmarkConcatLarge-8 200 6717883 ns/op
147+
BenchmarkConcatLarge-8 200 6603856 ns/op
148+
BenchmarkConcatLarge-8 200 6652498 ns/op
149+
BenchmarkComparisons-8 5000000 364 ns/op
150+
BenchmarkComparisons-8 5000000 367 ns/op
150151
BenchmarkComparisons-8 5000000 360 ns/op
151-
BenchmarkComparisons-8 5000000 381 ns/op
152-
BenchmarkComparisons-8 3000000 361 ns/op
153-
BenchmarkComparisons-8 5000000 353 ns/op
154-
BenchmarkArrayOperations-8 2000000 884 ns/op
155-
BenchmarkArrayOperations-8 2000000 865 ns/op
156-
BenchmarkArrayOperations-8 2000000 902 ns/op
157-
BenchmarkArrayOperations-8 2000000 869 ns/op
158-
BenchmarkArrayOperations-8 2000000 865 ns/op
159-
BenchmarkAssign-8 3000000 554 ns/op
160-
BenchmarkAssign-8 3000000 501 ns/op
161-
BenchmarkAssign-8 3000000 505 ns/op
162-
BenchmarkAssign-8 3000000 511 ns/op
152+
BenchmarkComparisons-8 5000000 364 ns/op
153+
BenchmarkComparisons-8 5000000 368 ns/op
154+
BenchmarkArrayOperations-8 2000000 881 ns/op
155+
BenchmarkArrayOperations-8 2000000 864 ns/op
156+
BenchmarkArrayOperations-8 2000000 875 ns/op
157+
BenchmarkArrayOperations-8 2000000 872 ns/op
158+
BenchmarkArrayOperations-8 2000000 863 ns/op
159+
BenchmarkAssign-8 3000000 510 ns/op
160+
BenchmarkAssign-8 3000000 519 ns/op
161+
BenchmarkAssign-8 3000000 503 ns/op
163162
BenchmarkAssign-8 3000000 513 ns/op
164-
BenchmarkAugAssign-8 1000000 1760 ns/op
165-
BenchmarkAugAssign-8 1000000 1798 ns/op
166-
BenchmarkAugAssign-8 1000000 1756 ns/op
167-
BenchmarkAugAssign-8 1000000 1787 ns/op
168-
BenchmarkAugAssign-8 1000000 1813 ns/op
163+
BenchmarkAssign-8 3000000 534 ns/op
164+
BenchmarkAugAssign-8 1000000 1780 ns/op
165+
BenchmarkAugAssign-8 1000000 1797 ns/op
166+
BenchmarkAugAssign-8 1000000 1767 ns/op
167+
BenchmarkAugAssign-8 1000000 1809 ns/op
168+
BenchmarkAugAssign-8 1000000 1811 ns/op
169169
PASS
170-
ok github.com/benhoyt/goawk/interp 327.992s
170+
ok github.com/benhoyt/goawk/interp 325.067s

goawk.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ import (
4444
)
4545

4646
const (
47-
version = "v1.1.3"
47+
version = "v1.1.4"
4848
)
4949

5050
func main() {

0 commit comments

Comments
 (0)