home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / atari / st / tech / 6249 < prev    next >
Encoding:
Text File  |  1992-12-14  |  5.0 KB  |  108 lines

  1. Newsgroups: comp.sys.atari.st.tech
  2. Path: sparky!uunet!spool.mu.edu!yale.edu!ira.uka.de!math.fu-berlin.de!news.th-darmstadt.de!backus.pu.informatik.th-darmstadt.de!wallmann
  3. From: wallmann@backus.pu.informatik.th-darmstadt.de (Natuerlich!)
  4. Subject: Re: Falcon BUS..
  5. Sender: news@news.th-darmstadt.de (The News System)
  6. Message-ID: <1992Dec14.235558.17175@news.th-darmstadt.de>
  7. Date: Mon, 14 Dec 1992 23:55:58 GMT
  8. Nntp-Posting-Host: backus.pu.informatik.th-darmstadt.de
  9. Organization: MSD software vault #9 @THD
  10. Lines: 96
  11.  
  12. Due to the recent discussion I have rehacked my (till now private) little
  13. bustest program as to make it fairly portable between Amiga
  14. and Atari. The assembler portion is very small and oughta be
  15. quickly ported. So in case no one finds any major faults in 
  16. the algorithm I think it would be interesting to run this program
  17. on the Amiga 1200 and the F030 (of which I own neither). To get 
  18. some 'comparable' figures the test should be done with:
  19.  
  20.     640x400x256colors 60Hz non-interlaced 
  21. and    320x200x16colors  60Hz non-interlaced 
  22.  
  23. This program tests 16 and 32 bit read and write accesses.
  24.  
  25. Nat!
  26.  
  27. Here comes the source code, zooed and uuencoded
  28.  
  29. table
  30.  !"#$%&'()*+,-./0123456789:;<=>?
  31. @ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_
  32. begin 644 bustest.zoo
  33. M6D]/(#(N,3 @07)C:&EV92X:  #<I\3]*@   -;___\"  $        #W*?$z
  34. M_0("W@$  '$   "/&; #C&=?!   ;0$   (!          !B=7,N<P      y
  35. M    "@ 8%NP     I %     0"DC*  !(V*7S;6D'/]X P+N!IHPLN*?AN-$x
  36. M*#PJ"//B;2!_AEMVDSKO'/Z2S374<"*F14PW0+$VI"$(96[58S80E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g
  53. M6$H1S_MV>P0CES^;[ZL\WUK23)6E=>R>@2&?(4_>M(R(DY)6KN+)06?Y>;G]f
  54. M5'"@N31R0D,;$F[UHLWU  ,V:ML]%,?%+_&&OHI(^4$JP'VX,<]'--->9"IZe
  55. M)OX?J?!AWX3>G'K;ABYLY<?/B+X'XPIZZ"T>?S\I:]Q=)G?TQ**[N(I_TZ_7d
  56. M1VJ[9NP,S8!XUX@>==;QOMP."+K5'%S=PA-]1=C-P"L3,52( HFP$AE<9NP>c
  57. M+X?>\LPQK@MK4 2%1>O%XC82*TU;J1XQ('X#=K,KRN)MV+@;"T@*M\*0H6 Sb
  58. M'"5/L.\K0I>U'=BR&O3$E#G0SUMJ+\Q>@1.0H$O0X7)<9D;D?5SS]N-L.&+;a
  59. M<-7TE@DY@74%;P&P3J=554&Y7'2 ;V"=OS8,JOR5/PT%273\=.FDL\<Y161Vz
  60. M321<>C[GSR" 0<M'S99;;IX,L-PAFT?Y"TOA?V\O^PL,V]E^D+'$P:0%6'=By
  61. MQ4\*Q_F:::, M%RTE:DW=1(2D^2VA[E6,;D61O-$,3RVZG<"JC@E8Y^(5X#Cx
  62. MBA( B<BO@T7H5BV"B;>WEZ.!-?L+E@KAH2?@FXO1%ID,A;)R0'6!V>8D9<O-w
  63. M1+C/WU-"-KP\(U!$BV>4R],%V]UDU1598^V7QJJ'#]]&J#%O<?!J?(HXWC&Lv
  64. M& 501\?:SX#! X!17Q>3@4[R59TV@P SOF; +WCS,_W\-(SSV+Q!.:)<:N27u
  65. M$ID+HT^[5V='NH+-&V?K6\*AE7$=T\.!V.R>O' XROGTQ>KP;;4AG[MGD!B(t
  66. M,XM>*OFNEQEP/NVY>*;'DV:Y_5(. >$8*!^[C@S8X[Q#Y<?GJ'"UW/97\H^7s
  67. MHCJT"4.H'\/$[GZ\_MXGNLP  -RGQ/T"                            r
  68. >                                     /R#q
  69.  p
  70. end
  71. ---------------------------------------------------------------
  72. The measurement algorithm is the following:
  73.  
  74. o    Shuts off almost all IRQ sources (should shut off data caches)
  75.  
  76. o    First the time needed for a couple of thousands of loops
  77.     of a specific piece of code is measured.
  78.  
  79. o    Second the same amount of loops is done on another piece
  80.     of code, which is the same as the first piece, except 
  81.     that this code does one bus access more. 
  82.     (e.g. MOVE  d0,(a0)  instead of  MOVE   d0,d0
  83.  
  84. o    The difference is taken and a mbyte/s value is computed
  85.  
  86.  
  87. The method is inaccurate in these ways:  
  88. a) timing is (on the ST) done with a IRQ-Timer which isn't all that accurate.
  89.    (can be improved with higher loop factors)
  90. b) the IRQ decreases the CPU-time available for the test program, thus for 
  91.    the excess time of the second measurement, the IRQ time is in the figure.
  92. c) this actually tests RAM access rather than bus access.
  93.  
  94. The reported figures are therefore slightly low! (shouldn't be more than 
  95. 10% though)
  96.  
  97. P.S.
  98. I have ported (and bugfixed) the DBMALLOC library (by Conor P. Cahill)  
  99. to the ST (for PURE-C only). I don't have the guts to put this stuff into 
  100. the public, since the changes to the source aren't really in a form, where 
  101. I'd could release them. Anyway this malloc library is a must for anyone who 
  102. runs into weird and unexplainable problems, so if you want it contact me
  103. by email.
  104. -- 
  105.  -----   Email: wallmann@backus.pu.informatik.th-darmstadt.de  -----
  106.                "Bang that bit that doesn't bang"   
  107.                   VfL Bochum:  "Unabsteigbar"
  108.