RetroBSD

2.11BSD operating system for microcontrollers
It is currently Tue Apr 07, 2020 6:28 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Dhrystone
PostPosted: Sat May 30, 2015 3:59 am 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
Dhrystone benchmark is available in /share/examples/dhrystone directory. Currently, when compiled with SmallerC on pic32mx (no optimization), it gives 22.1 DMIPS. This is slightly (16%) better than Pentium 75MHz (table of results for comparison).

How to run:
Code:
# cd /share/examples/dhrystone
# make
cc  -c dhry_1.c
cc  -c dhry_2.c
cc  -o dhrystone dhry_1.o dhry_2.o
# ./dhrystone

Dhrystone Benchmark, Version 2.1 (Language: C)

Execution starts, 1000000 runs through Dhrystone
Execution ends

Final values of the variables used in the benchmark:
...

Nanoseconds for one run through Dhrystone: 25595
            Million Dhrystones per Second: 0.039
                                    DMIPS: 22.1

# _


Top
 Profile  
 
 Post subject: Re: Dhrystone
PostPosted: Sat May 30, 2015 7:35 am 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
And what it shows with Lite? (my bet it will show less) :P

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
 Post subject: Re: Dhrystone
PostPosted: Sat May 30, 2015 7:43 am 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
We don't have C compiler on Lite yet.


Top
 Profile  
 
 Post subject: Re: Dhrystone
PostPosted: Sun May 31, 2015 9:57 am 
Contributor

Joined: Mon Nov 12, 2012 1:34 pm
Posts: 1092
Hi Serge and all,

Yup. I agree. RetroBSD just works and works well.

Now for some real applications.

I have 3 breadboards running. Lots of wires. I really need to get to work and define a 'standard' pcb. Cheap, simple to hack, etc. I hope Matt makes some more MZ stuff available.

I especially like the idea of a retro B+. or maybe a retroduino so we can just plug known working stuff in and it just works.

Compiling a dynamic loaded driver under test and loading and hacking it would seem to be worth figuring out to speed getting lots of different stuff to work. My kludge works but needs more brains getting it polished.

Wiz


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron




Powered by phpBB® Forum Software © phpBB Group

BSD Daemon used with permission