If you want to burn up the Due (thermal stress testing), Increase the 10000 in the outer loop to 100000. The test program will run full bore for about an hour on the Due.
Update. The Udoo team released full implementations of Debian wheezy (armhf) for the Udoo yesterday. Ubuntu's been fun, but Debian is an old friend (well, not that old, but I've run it on a couple other boards). Wheezy is just as fast as Linaro computationally (using the hard floats). The test program also runs in 1.74, same accuracy. So, I'll have to reconsider what I said about the special benefits of Linaro. Debian v7 wheezy armhf delivers as much and the GUI seems snappier than Gnome. IMHO this is a big step forward for Udoo. For example, the monitor resolution problems I've been having with Ubuntu are gone.
Here are some additional Udoo speed comparisons that may be interesting: http://www.hydrometronics.com/downloads ... 0Linux.pdf
ndzinn, we're also preparing an ArmHF version of Ubuntu 12.04 if you're still interested to use Linaro. We're planning to release it in a couple of weeks, top.
@delba, the Linaro versions of Ubunto come from an ARM consortium of companies, so I presume they use the hard float capabilities of the CPU. The speed tests I've done with the current Ubuntu v12.04 version on the Udoo downloads page substantiate that (as fast a wheezy). But I'm always interested in running something new!