[prev in list] [next in list] [prev in thread] [next in thread]
List: graphicsmagick-commit
Subject: [GM-commit] GraphicsMagick: Add a speedup indication to
From: GraphicsMagick Commits <graphicsmagick-commit () lists ! sourceforge ! net>
Date: 2011-11-26 23:48:01
Message-ID: hg.a64b0369522f.1322351281.-1602079902 () blade ! simplesystems ! org
[Download RAW message or body]
changeset a64b0369522f in /hg/GraphicsMagick
details: http://hg.GraphicsMagick.org/hg/GraphicsMagick?cmd=changeset;node=a64b0369522f
summary: Add a speedup indication to -stepthreads output.
diffstat:
ChangeLog | 2 ++
magick/command.c | 16 +++++++++++++++-
www/Changelog.html | 4 +++-
3 files changed, 20 insertions(+), 2 deletions(-)
diffs (70 lines):
diff -r 6466bd711bd9 -r a64b0369522f ChangeLog
--- a/ChangeLog Sat Nov 26 16:11:48 2011 -0600
+++ b/ChangeLog Sat Nov 26 17:47:55 2011 -0600
@@ -7,6 +7,8 @@
to measure how an algorithm benefits from threading.
(BenchmarkImageCommand): Fix benchmark argument parsing so it is
not order dependent.
+ (BenchmarkImageCommand): Add a speedup indication to -stepthreads
+ output.
* config/delegates.mgk.in: File names in gnuplot files need to be
surrounded by double quotes or gnuplot parser will reject them.
diff -r 6466bd711bd9 -r a64b0369522f magick/command.c
--- a/magick/command.c Sat Nov 26 16:11:48 2011 -0600
+++ b/magick/command.c Sat Nov 26 17:47:55 2011 -0600
@@ -1508,6 +1508,10 @@
long
current_threads,
max_threads;
+
+ double
+ rate_total_st;
+
#endif /* HAVE_OPENMP */
double
@@ -1550,6 +1554,7 @@
thread_bench=MagickFalse;
max_threads = (long) GetMagickResourceLimit(ThreadsResource);
current_threads = 1;
+ rate_total_st = 1.0;
#endif /* HAVE_OPENMP */
duration=-1.0;
iterations=1L;
@@ -1740,11 +1745,20 @@
rate_total=(((double) iteration)/elapsed_time);
rate_cpu=(((double) iteration)/user_time);
threads_limit=(long) GetMagickResourceLimit(ThreadsResource);
+#if defined(HAVE_OPENMP)
+ if (1 == threads_limit)
+ rate_total_st=rate_total;
+#endif
(void) fflush(stdout);
(void) fprintf(stderr,
"Results: %ld threads %ld iter %.2fs user %.2fs total %.3f iter/s "
- "(%.3f iter/s cpu)\n",
+ "(%.3f iter/s cpu)",
threads_limit,iteration,user_time,elapsed_time,rate_total,rate_cpu);
+#if defined(HAVE_OPENMP)
+ if (thread_bench)
+ (void) fprintf(stderr," %.2f speedup",(rate_total/rate_total_st));
+#endif
+ (void) fprintf(stderr,"\n");
(void) fflush(stderr);
}
#if defined(HAVE_OPENMP)
diff -r 6466bd711bd9 -r a64b0369522f www/Changelog.html
--- a/www/Changelog.html Sat Nov 26 16:11:48 2011 -0600
+++ b/www/Changelog.html Sat Nov 26 17:47:55 2011 -0600
@@ -45,7 +45,9 @@
execute the specified command with an increasing number of threads
to measure how an algorithm benefits from threading.
(BenchmarkImageCommand): Fix benchmark argument parsing so it is
-not order dependent.</li>
+not order dependent.
+(BenchmarkImageCommand): Add a speedup indication to -stepthreads
+output.</li>
<li>config/delegates.mgk.in: File names in gnuplot files need to be
surrounded by double quotes or gnuplot parser will reject them.</li>
</ul>
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Graphicsmagick-commit mailing list
Graphicsmagick-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/graphicsmagick-commit
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic