github.com/benhoyt/goawk@v1.8.1/benchmarks.txt (about)

     1  goos: linux
     2  goarch: amd64
     3  pkg: github.com/benhoyt/goawk/interp
     4  cpu: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
     5  BenchmarkGlobalVars-8             	 2520960	       464.0 ns/op
     6  BenchmarkGlobalVars-8             	 2691806	       442.2 ns/op
     7  BenchmarkGlobalVars-8             	 2679141	       449.8 ns/op
     8  BenchmarkGlobalVars-8             	 2685789	       445.6 ns/op
     9  BenchmarkGlobalVars-8             	 2641708	       448.2 ns/op
    10  BenchmarkLocalVars-8              	 2533496	       471.8 ns/op
    11  BenchmarkLocalVars-8              	 2558742	       464.4 ns/op
    12  BenchmarkLocalVars-8              	 2569708	       469.1 ns/op
    13  BenchmarkLocalVars-8              	 2557816	       465.3 ns/op
    14  BenchmarkLocalVars-8              	 2568208	       463.9 ns/op
    15  BenchmarkIncrDecr-8               	 2851717	       410.4 ns/op
    16  BenchmarkIncrDecr-8               	 2871532	       416.5 ns/op
    17  BenchmarkIncrDecr-8               	 2816379	       410.8 ns/op
    18  BenchmarkIncrDecr-8               	 2858272	       409.8 ns/op
    19  BenchmarkIncrDecr-8               	 2894419	       415.0 ns/op
    20  BenchmarkSimpleBuiltins-8         	 1244504	       948.7 ns/op
    21  BenchmarkSimpleBuiltins-8         	 1258311	       952.5 ns/op
    22  BenchmarkSimpleBuiltins-8         	 1256976	       946.3 ns/op
    23  BenchmarkSimpleBuiltins-8         	 1253154	       949.7 ns/op
    24  BenchmarkSimpleBuiltins-8         	 1244079	       944.9 ns/op
    25  BenchmarkBuiltinMatch-8           	  412626	      3006 ns/op
    26  BenchmarkBuiltinMatch-8           	  406350	      3057 ns/op
    27  BenchmarkBuiltinMatch-8           	  391270	      3012 ns/op
    28  BenchmarkBuiltinMatch-8           	  402685	      3009 ns/op
    29  BenchmarkBuiltinMatch-8           	  405133	      3068 ns/op
    30  BenchmarkBuiltinLength-8          	 1932927	       584.1 ns/op
    31  BenchmarkBuiltinLength-8          	 2078748	       567.7 ns/op
    32  BenchmarkBuiltinLength-8          	 2061951	       574.1 ns/op
    33  BenchmarkBuiltinLength-8          	 2026996	       574.2 ns/op
    34  BenchmarkBuiltinLength-8          	 2044388	       577.7 ns/op
    35  BenchmarkBuiltinIndex-8           	  915589	      1185 ns/op
    36  BenchmarkBuiltinIndex-8           	 1000000	      1178 ns/op
    37  BenchmarkBuiltinIndex-8           	  966074	      1187 ns/op
    38  BenchmarkBuiltinIndex-8           	 1000000	      1186 ns/op
    39  BenchmarkBuiltinIndex-8           	  987259	      1189 ns/op
    40  BenchmarkBuiltinSubstr-8          	 1292522	       923.5 ns/op
    41  BenchmarkBuiltinSubstr-8          	 1303774	       930.6 ns/op
    42  BenchmarkBuiltinSubstr-8          	 1281445	       928.9 ns/op
    43  BenchmarkBuiltinSubstr-8          	 1294152	       937.7 ns/op
    44  BenchmarkBuiltinSubstr-8          	 1297411	       925.1 ns/op
    45  BenchmarkBuiltinSplitSpace-8      	   17274	     70408 ns/op
    46  BenchmarkBuiltinSplitSpace-8      	   16260	     77233 ns/op
    47  BenchmarkBuiltinSplitSpace-8      	   14662	     78528 ns/op
    48  BenchmarkBuiltinSplitSpace-8      	   16342	     68375 ns/op
    49  BenchmarkBuiltinSplitSpace-8      	   17294	     75535 ns/op
    50  BenchmarkBuiltinSplitRegex-8      	    9034	    125975 ns/op
    51  BenchmarkBuiltinSplitRegex-8      	   10000	    121308 ns/op
    52  BenchmarkBuiltinSplitRegex-8      	    9400	    131350 ns/op
    53  BenchmarkBuiltinSplitRegex-8      	   10137	    117568 ns/op
    54  BenchmarkBuiltinSplitRegex-8      	   10000	    120856 ns/op
    55  BenchmarkBuiltinSub-8             	   84276	     13986 ns/op
    56  BenchmarkBuiltinSub-8             	   87807	     13843 ns/op
    57  BenchmarkBuiltinSub-8             	   88095	     13949 ns/op
    58  BenchmarkBuiltinSub-8             	   86774	     13863 ns/op
    59  BenchmarkBuiltinSub-8             	   86895	     14493 ns/op
    60  BenchmarkBuiltinSubAmpersand-8    	   87608	     13755 ns/op
    61  BenchmarkBuiltinSubAmpersand-8    	   87750	     14557 ns/op
    62  BenchmarkBuiltinSubAmpersand-8    	   86653	     13646 ns/op
    63  BenchmarkBuiltinSubAmpersand-8    	   86076	     14852 ns/op
    64  BenchmarkBuiltinSubAmpersand-8    	   84819	     13893 ns/op
    65  BenchmarkBuiltinGsub-8            	   73347	     16159 ns/op
    66  BenchmarkBuiltinGsub-8            	   74163	     16360 ns/op
    67  BenchmarkBuiltinGsub-8            	   68410	     16315 ns/op
    68  BenchmarkBuiltinGsub-8            	   72373	     16936 ns/op
    69  BenchmarkBuiltinGsub-8            	   73816	     16214 ns/op
    70  BenchmarkBuiltinGsubAmpersand-8   	   74048	     16127 ns/op
    71  BenchmarkBuiltinGsubAmpersand-8   	   69900	     16248 ns/op
    72  BenchmarkBuiltinGsubAmpersand-8   	   74144	     17647 ns/op
    73  BenchmarkBuiltinGsubAmpersand-8   	   74402	     16788 ns/op
    74  BenchmarkBuiltinGsubAmpersand-8   	   73773	     17159 ns/op
    75  BenchmarkBuiltinSprintf-8         	  121904	      9717 ns/op
    76  BenchmarkBuiltinSprintf-8         	  123760	      9591 ns/op
    77  BenchmarkBuiltinSprintf-8         	  125888	      9713 ns/op
    78  BenchmarkBuiltinSprintf-8         	  126228	      9651 ns/op
    79  BenchmarkBuiltinSprintf-8         	  123163	      9690 ns/op
    80  BenchmarkRecursiveFunc-8          	   80444	     14751 ns/op
    81  BenchmarkRecursiveFunc-8          	   80942	     14894 ns/op
    82  BenchmarkRecursiveFunc-8          	   80065	     14946 ns/op
    83  BenchmarkRecursiveFunc-8          	   82148	     14709 ns/op
    84  BenchmarkRecursiveFunc-8          	   78128	     14735 ns/op
    85  BenchmarkFuncCall-8               	  425605	      2758 ns/op
    86  BenchmarkFuncCall-8               	  417933	      2772 ns/op
    87  BenchmarkFuncCall-8               	  435993	      2746 ns/op
    88  BenchmarkFuncCall-8               	  449121	      2821 ns/op
    89  BenchmarkFuncCall-8               	  430107	      2761 ns/op
    90  BenchmarkNativeFunc-8             	  110856	     10655 ns/op
    91  BenchmarkNativeFunc-8             	  114985	     10615 ns/op
    92  BenchmarkNativeFunc-8             	  112287	     10568 ns/op
    93  BenchmarkNativeFunc-8             	  111844	     10668 ns/op
    94  BenchmarkNativeFunc-8             	  108466	     10623 ns/op
    95  BenchmarkForLoop-8                	  291768	      3948 ns/op
    96  BenchmarkForLoop-8                	  296600	      3811 ns/op
    97  BenchmarkForLoop-8                	  290839	      3818 ns/op
    98  BenchmarkForLoop-8                	  292221	      3836 ns/op
    99  BenchmarkForLoop-8                	  300837	      3789 ns/op
   100  BenchmarkForInLoop-8              	  606390	      1780 ns/op
   101  BenchmarkForInLoop-8              	  627037	      1743 ns/op
   102  BenchmarkForInLoop-8              	  627796	      1757 ns/op
   103  BenchmarkForInLoop-8              	  683083	      1798 ns/op
   104  BenchmarkForInLoop-8              	  617725	      1774 ns/op
   105  BenchmarkIfStatement-8            	 6108824	       193.2 ns/op
   106  BenchmarkIfStatement-8            	 6043644	       194.0 ns/op
   107  BenchmarkIfStatement-8            	 5969926	       192.1 ns/op
   108  BenchmarkIfStatement-8            	 6089139	       193.5 ns/op
   109  BenchmarkIfStatement-8            	 6146197	       193.3 ns/op
   110  BenchmarkCondExpr-8               	 6086875	       193.0 ns/op
   111  BenchmarkCondExpr-8               	 6132614	       191.6 ns/op
   112  BenchmarkCondExpr-8               	 6136558	       191.4 ns/op
   113  BenchmarkCondExpr-8               	 6055054	       190.7 ns/op
   114  BenchmarkCondExpr-8               	 6177740	       190.4 ns/op
   115  BenchmarkSimplePattern-8          	 9767247	       121.7 ns/op
   116  BenchmarkSimplePattern-8          	 9791150	       125.7 ns/op
   117  BenchmarkSimplePattern-8          	 9647414	       122.8 ns/op
   118  BenchmarkSimplePattern-8          	10018006	       123.3 ns/op
   119  BenchmarkSimplePattern-8          	 9734056	       125.8 ns/op
   120  BenchmarkGetField-8               	 2415793	       516.8 ns/op
   121  BenchmarkGetField-8               	 2389582	       518.6 ns/op
   122  BenchmarkGetField-8               	 2381010	       515.7 ns/op
   123  BenchmarkGetField-8               	 2385254	       515.1 ns/op
   124  BenchmarkGetField-8               	 2398282	       516.3 ns/op
   125  BenchmarkSetField-8               	 1318459	       910.5 ns/op
   126  BenchmarkSetField-8               	 1308703	       916.2 ns/op
   127  BenchmarkSetField-8               	 1308388	       917.3 ns/op
   128  BenchmarkSetField-8               	 1240232	       910.1 ns/op
   129  BenchmarkSetField-8               	 1307920	       904.8 ns/op
   130  BenchmarkRegexMatch-8             	  967142	      1189 ns/op
   131  BenchmarkRegexMatch-8             	  955766	      1152 ns/op
   132  BenchmarkRegexMatch-8             	 1000000	      1151 ns/op
   133  BenchmarkRegexMatch-8             	  973560	      1142 ns/op
   134  BenchmarkRegexMatch-8             	  927332	      1140 ns/op
   135  BenchmarkBinaryOperators-8        	 2530222	       463.6 ns/op
   136  BenchmarkBinaryOperators-8        	 2526468	       465.0 ns/op
   137  BenchmarkBinaryOperators-8        	 2509884	       463.6 ns/op
   138  BenchmarkBinaryOperators-8        	 2566275	       466.8 ns/op
   139  BenchmarkBinaryOperators-8        	 2546895	       464.1 ns/op
   140  BenchmarkConcatSmall-8            	 1593988	       747.9 ns/op
   141  BenchmarkConcatSmall-8            	 1433182	       828.9 ns/op
   142  BenchmarkConcatSmall-8            	 1520265	       752.4 ns/op
   143  BenchmarkConcatSmall-8            	 1469144	       801.9 ns/op
   144  BenchmarkConcatSmall-8            	 1606125	       763.7 ns/op
   145  BenchmarkConcatLarge-8            	     168	   6950507 ns/op
   146  BenchmarkConcatLarge-8            	     162	   7120792 ns/op
   147  BenchmarkConcatLarge-8            	     165	   7063730 ns/op
   148  BenchmarkConcatLarge-8            	     168	   7160234 ns/op
   149  BenchmarkConcatLarge-8            	     168	   7068352 ns/op
   150  BenchmarkComparisons-8            	 3532567	       339.2 ns/op
   151  BenchmarkComparisons-8            	 3633334	       317.5 ns/op
   152  BenchmarkComparisons-8            	 3664857	       317.3 ns/op
   153  BenchmarkComparisons-8            	 3686667	       316.9 ns/op
   154  BenchmarkComparisons-8            	 3676486	       317.0 ns/op
   155  BenchmarkArrayOperations-8        	 1951508	       609.8 ns/op
   156  BenchmarkArrayOperations-8        	 1953444	       602.9 ns/op
   157  BenchmarkArrayOperations-8        	 1949605	       607.3 ns/op
   158  BenchmarkArrayOperations-8        	 1959163	       611.0 ns/op
   159  BenchmarkArrayOperations-8        	 1956904	       612.3 ns/op
   160  BenchmarkAssign-8                 	 2819530	       421.8 ns/op
   161  BenchmarkAssign-8                 	 2742358	       428.3 ns/op
   162  BenchmarkAssign-8                 	 2806462	       421.3 ns/op
   163  BenchmarkAssign-8                 	 2814642	       421.4 ns/op
   164  BenchmarkAssign-8                 	 2824297	       421.9 ns/op
   165  BenchmarkAugAssign-8              	  797733	      1375 ns/op
   166  BenchmarkAugAssign-8              	  821727	      1371 ns/op
   167  BenchmarkAugAssign-8              	  836431	      1373 ns/op
   168  BenchmarkAugAssign-8              	  804206	      1366 ns/op
   169  BenchmarkAugAssign-8              	  844957	      1376 ns/op
   170  PASS
   171  ok  	github.com/benhoyt/goawk/interp	273.852s