RetroBSD

2.11BSD operating system for microcontrollers
It is currently Fri Feb 26, 2021 10:30 am

All times are UTC




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Whetstone benchmark
PostPosted: Thu Oct 04, 2012 7:40 am 
Committer
User avatar

Joined: Thu Oct 11, 2012 8:45 am
Posts: 1801
Location: Room 217, Floor 8, Arm 8, Wheel S7, Mars Base Alpha 3
I have just got parts of UnixBench running under RetroBSD, and here's the output of the Whetstone-Double test:


##########################################
Double Precision C/C++ Whetstone Benchmark

Calibrate
1.72 Seconds 1 Passes (x 100)

Use 5 passes (x 100)

Double Precision C/C++ Whetstone Benchmark

Loop content Result MFLOPS MOPS Seconds

N1 floating point -1.12356000000000000 1.280 0.05
N2 floating point -1.12155700000000000 1.222 0.50
N3 if then else 1.00000000000000000 0.000 0.00
N4 fixed point 12.00000000000000000 0.000 0.00
N5 sin,cos etc. 0.49909300000000000 0.114 3.60
N6 floating point 1.00000000000000000 1.226 2.20
N7 assignments 3.00000000000000000 9.240 0.10
N8 exp,sqrt etc. 0.75000100000000000 0.085 2.20

MWIPS 5.698 8.775

_________________
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".


Top
 Profile  
 
PostPosted: Thu Oct 04, 2012 7:43 am 
Committer
User avatar

Joined: Thu Oct 11, 2012 8:45 am
Posts: 1801
Location: Room 217, Floor 8, Arm 8, Wheel S7, Mars Base Alpha 3
Compare that to my laptop:


##########################################
Double Precision C/C++ Whetstone Benchmark

Calibrate
0.01 Seconds 1 Passes (x 100)
0.02 Seconds 5 Passes (x 100)
0.11 Seconds 25 Passes (x 100)
0.53 Seconds 125 Passes (x 100)

Use 2340 passes (x 100)

Double Precision C/C++ Whetstone Benchmark

Loop content Result MFLOPS MOPS Seconds

N1 floating point -1.12398255667393521 1059.555 0.042
N2 floating point -1.12187079889296837 924.931 0.340
N3 if then else 1.00000000000000000 6726.939 0.036
N4 fixed point 12.00000000000000000 0.000 -0.000
N5 sin,cos etc. 0.49902937281515686 56.989 3.416
N6 floating point 0.99999987890670028 498.466 2.532
N7 assignments 3.00000000000000000 398.897 1.084
N8 exp,sqrt etc. 0.75100163018453669 30.998 2.808

MWIPS 2280.915 10.259

_________________
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".


Top
 Profile  
 
PostPosted: Thu Oct 04, 2012 7:45 am 
Committer
User avatar

Joined: Thu Oct 11, 2012 8:45 am
Posts: 1801
Location: Room 217, Floor 8, Arm 8, Wheel S7, Mars Base Alpha 3
I mean, 1.2 megaflops, on an 80 MHz microcontroller with no FPU, that's pretty impressive really.

_________________
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".


Top
 Profile  
 
PostPosted: Thu Oct 04, 2012 9:21 pm 
Contributor

Joined: Mon Nov 12, 2012 1:34 pm
Posts: 1092
Hi Majenko,

Most impressive. Which branch 'should' I be hacking on?

I assume 'merged'? I gather you have some loadable driver stuff in there?

Wiz


Top
 Profile  
 
PostPosted: Thu Oct 04, 2012 9:25 pm 
Committer
User avatar

Joined: Thu Oct 11, 2012 8:45 am
Posts: 1801
Location: Room 217, Floor 8, Arm 8, Wheel S7, Mars Base Alpha 3
Nah, the "merged" branch was my experimenting with merging the newuart and the partition branches. I should really delete it again.

The newuart branch is there for people to test (and break) the new UART code.

If you want the new partitioning system, hack from the partition branch.

If you want code that is stable (ish) then use trunk.

The newuart branch isn't scheduled to change for a while yet - not until it is fully tested and bug free. Then it will merge in to trunk.

The partition branch is the currently active focus of development, so it is changing rapidly. It isn't always stable. Feel free to check it out and tinker with it - we want all the testers we can get ;)

_________________
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".


Top
 Profile  
 
PostPosted: Thu Oct 04, 2012 9:46 pm 
Contributor

Joined: Mon Nov 12, 2012 1:34 pm
Posts: 1092
Hi Majenko,

What do I need for SD partitioning? Do you have some simple directions for getting my initial setup close enough to run? I gather I need to partition it and then copy filesystem.img, user.img and make provision for swap at a minimum?
Names for partitions? etc.

Wiz


Top
 Profile  
 
PostPosted: Thu Oct 04, 2012 9:54 pm 
Committer
User avatar

Joined: Thu Oct 11, 2012 8:45 am
Posts: 1801
Location: Room 217, Floor 8, Arm 8, Wheel S7, Mars Base Alpha 3
The current incarnation creates sdcard.rd which is an image that is already partitioned. Just write that direct to your SD card as you would filesys.img

_________________
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".


Top
 Profile  
 
PostPosted: Thu Oct 04, 2012 11:55 pm 
Contributor

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

Burned CPU. Linux liked MBR, added msdos partition as sdc4. Copied some retroforth files to it :).

Patched kernel:

Booted new kernel and SD.

root dev = (0,1)

root size = 163840 kbytes

swap dev - rd0b (0,2)

swap size = 20480 kbytes

(null): overflow, lost 20480 clicks at 01

panic: out of swap space

Oh well, maybe I was too agressive?

My patches. HZ=200, BAUDRATE=4800, Kernel RAM moved up 0x400

I notice that RetroBSD partition size is 167MB rather than 16+MB as it used to be? And it takes a long time to complete dd command, but otherwise may be OK?

Oh, well.

Wiz


Top
 Profile  
 
PostPosted: Thu Oct 04, 2012 11:57 pm 
Contributor

Joined: Mon Nov 12, 2012 1:34 pm
Posts: 1092
Does swap need to be formatted?

Wiz


Top
 Profile  
 
PostPosted: Fri Oct 05, 2012 12:55 am 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
Wiz - pls - there is a new topic for how-to on partitioning and ramdisk.. People will never find your valuable inputs when hidden deeply within an irrelevant topic..

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Fri Oct 05, 2012 1:13 am 
Contributor

Joined: Mon Nov 12, 2012 1:34 pm
Posts: 1092
Hi Pito,

FWIW - fresh dd of sd filesystem still no go
removed customizations still no go

It would be VERY nice if there were a way to upload all RetroBSD comments? Do you know of one? It would make searching for editing and combining and moving stuff MUCH easier.

Same error: lost 20480 clicks 01

Wiz


Top
 Profile  
 
PostPosted: Fri Oct 05, 2012 1:20 am 
Committer
User avatar

Joined: Thu Oct 11, 2012 8:45 am
Posts: 1801
Location: Room 217, Floor 8, Arm 8, Wheel S7, Mars Base Alpha 3
Wiz – pls – there is a new topic for how-to on partitioning and ramdisk.. People will never find your valuable inputs when hidden deeply within an irrelevant topic..

_________________
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 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