executing: ./xgraph -af fixed -lf fixed -tf fixed examples/benching.xg 2>/dev/null
xgraph: can't get legend_greek font matching legendFont (fixed)
GetFont(labelFont): finding suitable default 5000 mu high "-adobe-palatino-bold-r-normal--17-120-100-100-p-91-iso8859-1" (set -db-3 option for more details)
xgraph: can't get title_greek font matching titleFont (fixed)
xgraph: can't get axis_greek font matching axisFont (fixed)
GetFont(dialogFont): finding suitable default 4175 mu high "-b&h-lucida-medium-r-normal-sans-0-0-0-0-p-0-iso8859-1"
xgraph: can't get dialog_greek font matching dialogFont (-b&h-lucida-medium-r-normal-sans-0-0-0-0-p-0-iso8859-1)
GetFont(fbFont): finding suitable default 4000 mu high "-adobe-new century schoolbook-medium-r-normal--10-100-75-75-p-60-iso8859-1"
Current file: examples/benching.xg: Sun Jan 25 00:36:16 2004
A collection of timing benchmarks. Can take quite a while to complete, and doesn't generate
overly nice output! Performance measured in bogoflops, <err> I mean seconds :)
Current xgraph info:
 xgraph -af fixed -lf fixed -tf fixed examples/benching.xg
 XGraph build version 20040311; gcc2.95[Mar 11 2004 20:19:40,"CYGWIN_95-4.0 MIRAGE 1.3.2(0.39/3/2) i586 ; CC='gccopt -DXGRAPH ' ACC='gccopt -DXGRAPH '"]
 Executed d.d. Mon Mar 15 13:14:37 2004
 Input files: 'examples/benching.xg: Sun Jan 25 00:36:16 2004' 
 Working directory: /cygdrive/d/users/bertin/work/src/xgraph
 Last opened on display spin:0.0/-1/-1 (visual 0x38, 24 planes TrueColor) by bertin


1.00000e+06 times empty loop took 0.500000(real)/0.485000(user) sec [2.00000e+06R/2.06186e+06U]l/s seconds
1.00000e+06 times looping empty procedure took 0.990000(real)/1(user) sec [1.01010e+06R/1.00000e+06U]l/s seconds
1.00000e+06 times looping empty procedure took 0.990000(real)/0.956000(user) sec [1.01010e+06R/1.04603e+06U]l/s seconds
Calibrating adapted loop size (should be 1s)... 1.01010e+06 times looping empty procedure took 0.930000(real)/0.934000(user) sec [1.08613e+06R/1.08148e+06U]l/s seconds

timing of addition of 2 arrays, either with a for-toMAX[] loop construct (scalar addition), or
with (internal) array addition. The latter is done 10x to increase the reliability of the measured
duration. Procedures are used to ensure that the code is executed from compiled representations
(*EVAL* would not automatically compile the array-addition test procedure [test2]).
On a PIII 450Mhz (linux), test1 completes in around 5.8s, test2 almost instantly (3.94959e-04s)

Addition of 2 [1.01010e+06] arrays in a scalar-addition loop, without support for simple array arithmetic: 4.83000(real)/4.80000(user) sec [209131R/210438U]l/s
	Result z==2  0
Addition of 2 [1.01010e+06] arrays in a scalar-addition loop, with support for simple array arithmetic: 5.21000(real)/5.21000(user) sec [193877R/193877U]l/s
	Result z==2  0
Addition of 2 [1.01010e+06] arrays with scalar-addition and Apply2Array, without support for simple array arithmetic: 3.57000(real)/3.58300(user) sec [282942R/281915U]l/s
	Result z==2  0
Addition of 2 [1.01010e+06] arrays with scalar-addition and Apply2Array, with support for simple array arithmetic: 4.28000(real)/4.31000(user) sec [236005R/234362U]l/s
	Result z==2  0
Addition of a scalar to a [1.01010e+06] array with scalar-addition, without support for simple array arithmetic: 4.56000(real)/4.55900(user) sec [221513R/221562U]l/s
	Result z==505051  291591
Addition of a scalar to a [1.01010e+06] array with scalar-addition, with support for simple array arithmetic: 4.99000(real)/4.97800(user) sec [202425R/202913U]l/s
	Result z==505051  291591
Addition of a scalar to a [1.01010e+06] array with scalar-addition and Apply2Array, without support for simple array arithmetic: 0.390000(real)/0.379000(user) sec [2.59000e+06R/2.66517e+06U]l/s
	Result z==505051  291591
Addition of a scalar to a [1.01010e+06] array with scalar-addition and Apply2Array, with support for simple array arithmetic: 0.610000(real)/0.596000(user) sec [1.65590e+06R/1.69480e+06U]l/s
	Result z==505051  291591
10x array[1.01010e+06] addition without support for simple array arithmetic, array addition (add[&z,&x,&y]): 0(real)/0.00500000(user) sec [InfR/2.02020e+08U]l/s
	Result z==0  0
10x array[1.01010e+06] addition with support for simple array arithmetic, array addition (add[&z,&x,&y]): 1.37000(real)/1.40400(user) sec [737300R/719445U]l/s
	Result z==2  0
1.01010e+06x array[10] addition with support for simple array arithmetic, array addition: 4.78000(real)/4.80900(user) sec [211318R/210044U]l/s
	Result zz==5.50000  3.02765
10x array[1.01010e+06] multiplication with support for simple array arithmetic, array addition (mul[&z,&x,&y]): 1.43000(real)/1.45000(user) sec [706364R/696621U]l/s
	Result z==1  0
1.01010e+06x array[10] multiplication with support for simple array arithmetic, array addition: 4.95000(real)/4.93500(user) sec [204061R/204681U]l/s
	Result zz==4.50000  3.02765
10x array[1.01010e+06] division with support for simple array arithmetic, array addition (div[&z,&x,&y]): 1.43000(real)/1.45900(user) sec [706364R/692324U]l/s
	Result z==1  0
1.01010e+06x array[10] division with support for simple array arithmetic, array addition: 5(real)/4.99000(user) sec [202020R/202425U]l/s
	Result zz==4.50000  3.02765
procedure calling overhead compared to functions, $UseConstantsLists=1
1.01010e+06 times v1,v2: 0.770000(real)/0.755000(user) sec [1.31182e+06R/1.33788e+06U]l/s
1.01010e+06 times v1[v2],v2[v1]=120,120: 0.990000(real)/1.01400(user) sec [1.02030e+06R/996155U]l/s
1.01010e+06 times v[0],v[1]: 1.54000(real)/1.49200(user) sec [655910R/677011U]l/s
1.01010e+06 times v[0,v1],v[1,v2]=100,120: 1.86000(real)/1.88900(user) sec [543065R/534728U]l/s
1.01010e+06 times v[0,v1,v2]=100,120: 1.87000(real)/1.87500(user) sec [540161R/538721U]l/s
1.01010e+06 times empty=0: 0.990000(real)/0.993000(user) sec [1.02030e+06R/1.01722e+06U]l/s
1.01010e+06 times empty[v1,v2]=0: 1.59000(real)/1.59000(user) sec [635284R/635284U]l/s
1.01010e+06 times add[v1,v2]=220: 2.31000(real)/2.27400(user) sec [437273R/444196U]l/s
1.01010e+06 times add[v[0],v[1]]=220: 2.75000(real)/2.73400(user) sec [367310R/369459U]l/s
1.01010e+06 times call[&add,v1,v2]=220: 2.58000(real)/2.57900(user) sec [391512R/391664U]l/s
1.01010e+06 times sumvv=220: 3.84000(real)/3.84100(user) sec [263047R/262979U]l/s
1.01010e+06 times sum[v1,v2]=220: 5(real)/5.03700(user) sec [202020R/200536U]l/s
1.01010e+06 times call[&sum,v1,v2]=220: 7.86000(real)/7.82300(user) sec [128512R/129119U]l/s
1.01010e+06 times call[lambda[add[$[0],$[1]]],v1,v2]=220: 7.79000(real)/7.80400(user) sec [129666R/129434U]l/s
1.01010e+06 times sum[v1,ran]=100.867: 7.36000(real)/7.32900(user) sec [137242R/137823U]l/s
1.01010e+06 times call[&sum,v1,ran]=100.924->100.972: 10.7200(real)/10.7350(user) sec [94225.8R/94094.2U]l/s

Comparing the special 2-D indexing function 2Dindex to nDindex

1.01010e+06 times 2Dindex[1,2,3,4]: 2.75000(real)/2.75500(user) sec [367310R/366643U]l/s
1.01010e+06 times nDindex[1,2,3,4]: 2.91000(real)/2.93500(user) sec [347114R/344157U]l/s
1.01010e+06 times @[&zz,$loop]==-123.456: 2.80000(real)/2.80100(user) sec [360750R/360622U]l/s
1.01010e+06 times @[`"1234567890"]==2.12044e+10 2.64000(real)/2.62400(user) sec [382614R/384947U]l/s

Some loops to time the effect of $UseConstantsLists (and the '?' last-value operator):

1.01010e+06 times 'progn[2,add[2,kk]]' took 3.90000(real)/3.89900(user) sec [259000R/259067U]l/s seconds with $UseConstantsLists=0
1.01010e+06 times 'progn[2,?add,?ran]' took 2.42000(real)/2.43000(user) sec [417397R/415680U]l/s seconds with $UseConstantsLists=0
1.01010e+06 times 'progn[2,add[2,kk]]' took 3.79000(real)/3.78500(user) sec [266518R/266870U]l/s seconds with $UseConstantsLists=1
1.01010e+06 times 'progn[2,?add,?ran]' took 2.30000(real)/2.29500(user) sec [439174R/440131U]l/s seconds with $UseConstantsLists=1
1.01010e+06 times 'var[foo[?ran]]'=0.910586 took 3.35000(real)/3.39500(user) sec [301523R/297526U]l/s seconds with $UseConstantsLists=0
1.01010e+06 times 'var[foo[?ran]]'=0.910586 took 1.16000(real)/1.15500(user) sec [870777R/874546U]l/s seconds with $UseConstantsLists=1
1.01010e+06 times 'var'=0 took 0.820000(real)/0.855000(user) sec [1.23183e+06R/1.18140e+06U]l/s seconds with $UseConstantsLists=0
1.01010e+06 times 'var'=0 took 0.650000(real)/0.695000(user) sec [1.55400e+06R/1.45338e+06U]l/s seconds with $UseConstantsLists=1
1.01010e+06 times 'var[$loop]'=1.01010e+06 took 2.14000(real)/2.15000(user) sec [472010R/469815U]l/s seconds with $UseConstantsLists=0
1.01010e+06 times 'var[$loop]'=1.01010e+06 took 0.830000(real)/0.824000(user) sec [1.21699e+06R/1.22585e+06U]l/s seconds with $UseConstantsLists=1
1.01010e+06 times 'var[foo[$loop]]'=1.01010e+06 took 3.46000(real)/3.46400(user) sec [291937R/291600U]l/s seconds with $UseConstantsLists=0
1.01010e+06 times 'var[foo[$loop]]'=1.01010e+06 took 1.15000(real)/1.13400(user) sec [878349R/890742U]l/s seconds with $UseConstantsLists=1
1.01010e+06 times 'var[foo[bar[$loop]]]'=1.01010e+06 took 4.73000(real)/4.76000(user) sec [213552R/212206U]l/s seconds with $UseConstantsLists=0
1.01010e+06 times 'var[foo[bar[$loop]]]'=1.01010e+06 took 2.42000(real)/2.43500(user) sec [417397R/414826U]l/s seconds with $UseConstantsLists=1
336700 times stats-test1 (ss10=8.021375.77853 ; sas10=4.010035.77853): 
	took 3.79000(real)/3.80500(user) sec [266518R/265467U]l/s seconds with $UseConstantsLists=0
336700 times stats-test2 (ss11=19.956014.6960 ; sas11=9.9808414.6960): 
	took 5.44000(real)/5.39700(user) sec [185680R/187160U]l/s seconds with $UseConstantsLists=0
Ratios (should be 2.5): ss11/ss10=2.487862.54321 ; sas11/sas10=2.488972.54321
Now doing the same, using Apply2Array and array-passing:
336700 times stats-test3 (ss10=7.998635.77289 ; sas10=3.997775.77289): 
	took 2.58000(real)/2.58400(user) sec [391512R/390906U]l/s seconds with $UseConstantsLists=0
336700 times stats-test4 (ss11=19.989614.7089 ; sas11=9.9966714.7089): 
	took 3.79000(real)/3.75600(user) sec [266518R/268930U]l/s seconds with $UseConstantsLists=0
Ratios (should be 2.5): ss11/ss10=2.499122.54794 ; sas11/sas10=2.500562.54794
336700 times stats-test1 (ss10=7.997145.77145 ; sas10=3.996145.77145): 
	took 3.90000(real)/3.91100(user) sec [259000R/258272U]l/s seconds with $UseConstantsLists=1
336700 times stats-test2 (ss11=20.011114.7147 ; sas11=10.009114.7147): 
	took 5.44000(real)/5.40500(user) sec [185680R/186883U]l/s seconds with $UseConstantsLists=1
Ratios (should be 2.5): ss11/ss10=2.502282.54957 ; sas11/sas10=2.504682.54957
Now doing the same, using Apply2Array and array-passing:
336700 times stats-test3 (ss10=8.017015.77077 ; sas10=4.007875.77077): 
	took 2.58000(real)/2.59000(user) sec [391512R/390000U]l/s seconds with $UseConstantsLists=1
336700 times stats-test4 (ss11=20.019714.7093 ; sas11=10.005714.7093): 
	took 3.73000(real)/3.75500(user) sec [270805R/269002U]l/s seconds with $UseConstantsLists=1
Ratios (should be 2.5): ss11/ss10=2.497162.54893 ; sas11/sas10=2.496502.54893
expression-loops per second (61 samples):
	1.01010e+06/3.05082=331092 (real time)
	1.01010e+06/3.05246=330914 (user time)
Real time: 3:22:51
