From d3482256c277dff8cd6243dae0f72df1a4c676d3 Mon Sep 17 00:00:00 2001 From: flatmush Date: Thu, 24 Feb 2011 16:23:50 +0000 Subject: Added a small program called fixtest which currently tests performance and average error on x86 platforms, currently it produces quite wildly varying results depending on the input values. The average error seems to vary between 3-8%, it's possible that setting iter to a higher value (and pass to a lower one) could give a more stable value. Fixed point seems to be slower overall on x86 (50% of float) with good floating point hardware, however with the caching enabled depending on the program the fixed point implementation may be much faster (as float would be if cached). With caching enabled there is a massive difference between and iter size below and above 4096, this is because the caching mechanism thrashes above this threshold, it probably makes sense to disable caching for these tests by compiling libfixmath with FIXMATH_NO_CACHE. --- fixtest/fixtest.layout | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 fixtest/fixtest.layout (limited to 'fixtest/fixtest.layout') diff --git a/fixtest/fixtest.layout b/fixtest/fixtest.layout new file mode 100644 index 0000000..6606349 --- /dev/null +++ b/fixtest/fixtest.layout @@ -0,0 +1,13 @@ + + + + + + + + + + + + + -- cgit v1.2.3