English Amiga Board


Go Back   English Amiga Board > Coders > Coders. System

 
 
Thread Tools
Old 22 September 2013, 20:45   #1
alkis
Registered User
 
Join Date: Dec 2010
Location: Athens/Greece
Age: 53
Posts: 719
(Useless benchmark) Dhrystone on Sas C/Gcc/Vbcc

Standard benchmark disclaimers. You shouldn't draw any conclusions based on this. Benchmarks are evil. Etc. :-)

Anyways, I came across some really old source on the net of the dhrystone benchmark. I cross-compiled it with three compilers and run it on fs-uae (emulated A1200 +8mb fast)

So, tada, here it is:
Code:

 *  LOOPS 500000
 *  A1200 (+8mb Fast Ram) emulated on linux (kubuntu 64bit) with fs-uae 2.2.3
 *	Comp	Version	DHRY/SEC	TIME
 *  gcc		3.4.0	14285   	(35 secs)
 *  sc 		6.58	13513   	(37 secs)
 *  vbcc 	V0.9b	13157		(38 secs)
 *
 *  sc link dhry.c nostkchk opt optcomp=100 optdep=100 optinline optloop
 *  	optrdep=100 optschd cpu=68020
 *
 *  gcc -O3 -Wall -c -fmessage-length=0 -fomit-frame-pointer -m68020
 *  	-funroll-loops -finline-functions
 *
 *  vc +aos68k -O4 -cpu=68020

Source code attached.
Attached Files
File Type: c dhry.c (10.5 KB, 245 views)
alkis is offline  
Old 13 October 2013, 16:10   #2
Jope
-
 
Jope's Avatar
 
Join Date: Jul 2003
Location: Helsinki / Finland
Age: 43
Posts: 9,863
If you want to run it under emulation, you should use a500 emulation + everything cycle exact turned on. Even then it's a bit pointless. :-)
Jope is offline  
Old 14 October 2013, 17:02   #3
alkis
Registered User
 
Join Date: Dec 2010
Location: Athens/Greece
Age: 53
Posts: 719
It's pointless as you say.
Well, as absolute values I am pretty sure these are useless.
As relative values though, they *might* not be so useless. I suppose if you keep everything else as a constant and the only thing you change is the running code, it could relatively show the most efficient code? (I can see it going the other way....i.e. measuring some emulator sweetspot that a certain code managed by accident to trigger)

So, yeah, pretty much useless :-)
alkis is offline  
Old 16 October 2013, 13:03   #4
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,500
It's interesting to see that newer gcc versions have become much better. Many years ago I made a benchmark which showed gcc V2.95 far behind vbcc:
http://sun.hasenbraten.de/vbcc/index...iew=benchmarks
phx is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
functions benchmark wawa Coders. System 2 15 April 2013 18:55
68k benchmark suggestions fishyfish Amiga scene 5 20 May 2012 16:32
AmigaSYS 3 Plus VS AmiKIT 1.4.0 Benchmark. Dary News 0 18 November 2007 20:12
Kickstart 1.3 and GCC or VBCC? cdoty Coders. General 1 23 April 2005 06:10
Benchmark software. Johnyt request.Apps 3 21 February 2005 02:10

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:55.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07473 seconds with 14 queries