delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/17/15:51:45

Date: Fri, 17 Mar 2000 20:48:27 +0100
From: Javier Bardal Prieto <u0204956 AT golum DOT inforg DOT uniovi DOT es>
Subject: Last Try to Upload DJGPP Benchmark
To: djgpp AT delorie DOT com
Message-id: <200003171948.UAA20726@golum.inforg.uniovi.es>
Reply-To: djgpp AT delorie DOT com

The bench.c file is 17kb in size, and djgpp mail-list seems to reject
it, so this is the las try to upload the test. Here are the
instructions:
Now here is the benchmark post without binaries:
Due to discussions about Intel, AMD, Cyrix, etc... processors
efficiency, I have done a benchmark, that I expect clarify the dudes.
In my experience the AMD K6 processors have a WRITING latency very high,

the same as Pentium, but Pentium II and III does not, the Pentium's II
and III write at the same speed than read, the K6 reads 3 times more
quickly than Pentium's II and III, but writes at the same speed than a
Pentium 166.
This benchmark makes a simple but very frequent task,
It has two source arrays, one is the array A and the other the array B,
and another array, the destination , the array C
The test consists only in adding, multiplying and dividing all the
elements of the array A with the correspondence in the array B, and
store the result in the array C.
The size of the vectors, is decreased dinamically, at the same time, the

test is executed more times. This mode shows the cache efficiency.
It uses arrays of chars, shorts, longs, floats, doubles and fixed point
numbers, so the test is very complete.
The benchkmark is in spanish, but it's very easy to understand it.
I used gcc2.95.2 and Djgpp 2.03
The compiler options are:

gcc -O9 -fomit-frame-pointer -funroll-loops -m386 -mcpu=i386 -march=i386

-ffast-math bench.c -obench

DO NOT CHANGE IT!!!!
gcc generates highly optimized code with this settings, and changing it
to a specific processor model only has 2% of speed up. So for a uniform
testing I recommend to do not change it.

The final index reported by the test is the most generic result, and
says millions of operations per second, and involves all data types,
cache sizes....
Suposse you obtain an index of 9.6 for a K6-300MHz, and an index of 17.2

for a Pentium II 350MHz
This index tries to tell: The Pentium II 350 processor is 17.2/9.6 = 1.8

times more powerfull that the K6-300

The previous results to the final index reveals more detailed
information about the processor, cache size, integer and float
performance, etc...

The parameters to induce to it are two:
  - Memory to be used by the test: Another time I recommend to DO NOT
CHANGE IT, and use a value of 8, this means 8 Mb, the larger cache size
I have noticed is 2 Mb so this is sufficient, and changing it will MAKE
THE RESULTS NO COMPARABLE between others with diferent size, because
this affects to the final index.
   - Times to execute the test: I have allways used 8 times, this value
can be changed without affecting the results, a larger value means more
precission test, I recommend to put 8 times, so the test will be more
homogeneus.

EASIEST WAY TO MAKE THE TEST ON YOUR COMPUTER:
I invited people to make the test in their computers, in plain dos, NO
WINDOWS, and post the results.
I send a zip file with the executable done and the BAT files to make the

process as easy as possible, only that you must to do is:
 - Extract the zip file
 - Execute the command:
      execute.bat my_processor

At the end of the process you will obtain a file named: my_processor.txt

with the results of the test for your processor, It will be wonderfull
if you post your results to this news group.


begin 644 bench.zip
M4$L#!!0``@`(`(0=;2AYAJ!DJ`P``"1!```'`!4`8F5N8V AT N8U54"0`#]U7,
M.&E6S#A5>`0`%@3U`<U;;6_;MA;^7J#_@>B0PK*=V$G:='>1#/2VZ1:@:88D
M&X;[@D$6I40+166FW,MVZW^_Y#F415)R[,9M4G](1![J\#D\Y'E(BOPNYPF;
MTY2$HJ)YN7,U>?SH.SN/Y5,O,ZD^W*1^P0]B5.6%GSWGN5(!F:*:S9.*Z$+O
M8T8J_7#H9'\L>4HJ_5?E/WY$R_F4I>3UA1+U AT L>/_GK\B!!B<O\\A-1E"GK*
MC,8?>D_A>?@45`18X,^HAV\$/9#N5.]_%VE22P<=XKF6C^K\W3'\L/PLK>8S
M#I5_TA"+..<--%;R2U(EPTH,*S:LY+#*AA4];&3GQ_\Z&OYZ].KH_/3L^,=#
MVYZ<YTE>#K.<.]G'D'U15C$;OLDY/ES`/Z?<Z4TZBU5)GHKA\9DCHF)>#&DQ
M9T-*\_>.*-&B1(L27R2T2&B1\$5,BY AT 6,5^4:5&F19DODEHDM4 AT N1*,1.8EE
M7I3"!RP!L03(LH59`F@)J&4+M AT 3<$H#+%G()T"5 AT ERWP$M!+@"];^"48(,$"
MV9B@?-=A`@<3.)C`6R9P,(&#";QE`@<3.)C`6R9P,(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2#,\2HO=.NZ)A0)PAR]\D*W!C*A
M2!!X+(MZ!*%UAA0)PIR(ZJ AT EI$@0YK141RTA18+`DU1.+10)HG&)3BQ<HA/W
M3Q#P97P466=DS`=R/T\C=/.:8U1VOC`?3?P\_WUAG;:R\YG9;_/S_/>9=?;*
MSI=F96;G96:!YN8UA[J\LIG_OC04[N8U!\_L?&I<Z^?Y[U/WY&3T97_M\YPG
MQ^^.3T[/.TYZKG7NI#Y;XESA\12M]56R_O+HW/;Q%*VUL5UO7CL7 AT SQ%:^V%
MU/L=SBTA7]$Z\^9Z;NQ<1O(4K15 AT ZR#JW*;R_7GT^GAS=SKWF39QIW/U:1-W
M.K>D-G&G<V5J$W<Z-[,V<:=SM<QWY\O?OL3P="X);N)/YS[A)OYTKAYNXD_G
M'N(F_G2N.V[B3^>^9@#7=RU5%WE:W)2DTA%_H3"]U)=2S&56KV[((T7.F%X1
M$)H2Z_"\TG!)]*L]:]6 AT 9P%FWM<ZB,]I7NA;,"5)2DYT)Q+&9_L9.3G]^1R4
MX<$X/!&',6"TOT(5="/15H7G)O#`A%A/E>Y(7:CPZQM^=F/KJ8*NU($*MVQQ
MKU:NJ4IWI AT Y5N+['A7VVGBKL3J*E"F>".`6DZZF*9WE5I%6>Q$1?VIG%JWTY
M:+EDT&K904<#[>ZMP'(SUT\94QU6WQ\B:[35H,/D`S]`S8M86$NF6FL])$;U
M\#&FHGEH$IJ!U4)5;?4G<U;E-TRUX&)(+5./+8:MA"V#EB!Z_;>M_G7^/A>@
M>"5Z=`XZ!)T`?TU#N8US?!;Y0[Z'X:/?/?3UM>88PXZ.(4OB";DI9\1<R"&]
MX[-`!QB-3CWB1?__`U!+`0(6`Q0``@`(`(0=;2AYAJ!DJ`P``"1!```'``T`
M``````$```"D AT 0````!B96YC:"YC550%``/W5<PX57@``%!+!08``````0`!
+`$(```#B#```````
`
end

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019