|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r71761 - sandbox/odeint/branches/karsten/libs/numeric/odeint/ideas/fusion_runge_kutta/performance
From: mario.mulansky_at_[hidden]
Date: 2011-05-06 07:49:08
Author: mariomulansky
Date: 2011-05-06 07:49:08 EDT (Fri, 06 May 2011)
New Revision: 71761
URL: http://svn.boost.org/trac/boost/changeset/71761
Log:
better graphs
Text files modified:
sandbox/odeint/branches/karsten/libs/numeric/odeint/ideas/fusion_runge_kutta/performance/perf_analysis.py | 27 ++++++++++++++++-----------
sandbox/odeint/branches/karsten/libs/numeric/odeint/ideas/fusion_runge_kutta/performance/perf_tests.py | 13 ++++++++-----
2 files changed, 24 insertions(+), 16 deletions(-)
Modified: sandbox/odeint/branches/karsten/libs/numeric/odeint/ideas/fusion_runge_kutta/performance/perf_analysis.py
==============================================================================
--- sandbox/odeint/branches/karsten/libs/numeric/odeint/ideas/fusion_runge_kutta/performance/perf_analysis.py (original)
+++ sandbox/odeint/branches/karsten/libs/numeric/odeint/ideas/fusion_runge_kutta/performance/perf_analysis.py 2011-05-06 07:49:08 EDT (Fri, 06 May 2011)
@@ -1,5 +1,8 @@
from pylab import *
+rcParams.update( { 'xtick.labelsize': 20 , 'ytick.labelsize': 20 })
+
+
results_rk4 = array(
[[ 0.82 , 0.59 , 0.60 , 0.60 , 0.54 , 0.54 , 0.81 , 0.98 , 1.14 ] , #odeint
[ 0.64 , 0.56 , 0.54 , 0.60 , 0.77 , 0.65 , 0.85 , 0.98 , 1.09 ] , #generic
@@ -29,18 +32,20 @@
means_rk54ck[i] = 100*mean( tmp )
error_rk54ck[i] = 100*sqrt(var( tmp ))
+bar_width = 0.6
+
figure(1)
-title("Performance for RK4 and Lorenz System")
-bar( arange(5) , means_rk4 , 0.2 , color='blue' , linewidth=4 , edgecolor='blue' , yerr = error_rk4 , error_kw=dict(elinewidth=2, ecolor='red') )
-xlim( -0.5 , 4.5 )
-xticks( arange(5)+0.1 , ('odeint' , 'generic' , 'nr' , 'gsl' , 'rt gen' ) )
-ylabel('Performance in % relative to odeint implementation')
+title("Runge-Kutta 4" , fontsize=20)
+bar( arange(5) , means_rk4 , bar_width , color='blue' , linewidth=4 , edgecolor='blue' , yerr = error_rk4 , ecolor='red') #, elinewidth=2, ecolor='red' )
+xlim( -0.5 , 4.5+bar_width )
+xticks( arange(5)+bar_width/2 , ('odeint' , 'generic' , 'nr' , 'gsl' , 'rt gen' ) )
+ylabel('Performance in %' , fontsize=20)
figure(2)
-title("Performance for RK54CK and Lorenz System")
-bar( arange(4) , means_rk54ck , 0.2 , color='blue' , linewidth=4 , edgecolor='blue' , yerr = error_rk54ck , error_kw=dict(elinewidth=2, ecolor='red') )
-xlim( -0.5 , 3.5 )
-xticks( arange(4)+0.1 , ('odeint' , 'generic' , 'nr' , 'gsl' ) )
-ylabel('Performance in % relative to odeint implementation')
+title("Runge-Kutta 5(4) Cash-Karp" , fontsize=20)
+bar( arange(4) , means_rk54ck , bar_width , color='blue' , linewidth=4 , edgecolor='blue' , yerr = error_rk54ck , ecolor='red') #, elinewidth=2, ecolor='red' )
+xlim( -0.5 , 3.5+bar_width )
+xticks( arange(4)+bar_width/2 , ('odeint' , 'generic' , 'nr' , 'gsl' ) )
+ylabel('Performance in %' , fontsize=20)
-show()
+show()
\ No newline at end of file
Modified: sandbox/odeint/branches/karsten/libs/numeric/odeint/ideas/fusion_runge_kutta/performance/perf_tests.py
==============================================================================
--- sandbox/odeint/branches/karsten/libs/numeric/odeint/ideas/fusion_runge_kutta/performance/perf_tests.py (original)
+++ sandbox/odeint/branches/karsten/libs/numeric/odeint/ideas/fusion_runge_kutta/performance/perf_tests.py 2011-05-06 07:49:08 EDT (Fri, 06 May 2011)
@@ -1,20 +1,23 @@
from os import popen
from os.path import isfile
-bin_path = "bin/gcc-4.6/release/"
+#bin_path = "bin/gcc-4.4/release/"
#bin_path = "bin/intel-linux/release/"
+bin_path = "bin\\msvc-9.0express\\release\\threading-multi\\"
+extension = ".exe"
+
+bins = [ "odeint_rk4" , "odeint_rk4_def_alg" , "generic_rk4" , "nr_rk4" , "gsl_rk4" , "rt_generic_rk4" ,
+ "odeint_rk54ck" , "odeint_rk54ck_def_alg" , "generic_rk54ck" , "nr_rk54ck" , "gsl_rk54ck" ]
-#bins = [ "odeint_rk4" , "odeint_rk4_def_alg" , "generic_rk4" , "nr_rk4" , "gsl_rk4" , "rt_generic_rk4" ,
-bins = [ "odeint_rk54ck" , "odeint_rk54ck_def_alg" , "generic_rk54ck" , "nr_rk54ck" , "gsl_rk54ck" ]
results = []
print "Performance tests for " , bin_path
print
for bin in bins:
- if isfile( bin_path + bin ):
+ if isfile( bin_path + bin + extension):
print "Running" , bin
- res = popen( bin_path+bin ).read()
+ res = popen( bin_path+bin+extension ).read()
print bin , res
results.append( res )
else:
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk