Author: njn
Date: 2007-10-11 08:28:16 +0100 (Thu, 11 Oct 2007)
New Revision: 6980

Log:
- Hooked in massif/perf/ properly.
- Made massif/perf/many-xpts.c run for longer.

Modified:
   branches/MASSIF2/configure.in
   branches/MASSIF2/massif/Makefile.am
   branches/MASSIF2/massif/ms_main.c
   branches/MASSIF2/massif/perf/many-xpts.c


Modified: branches/MASSIF2/configure.in
===================================================================
--- branches/MASSIF2/configure.in       2007-10-11 07:11:24 UTC (rev 6979)
+++ branches/MASSIF2/configure.in       2007-10-11 07:28:16 UTC (rev 6980)
@@ -941,6 +941,7 @@
    massif/Makefile
    massif/hp2ps/Makefile
    massif/tests/Makefile
+   massif/perf/Makefile
    massif/docs/Makefile
    lackey/Makefile
    lackey/tests/Makefile

Modified: branches/MASSIF2/massif/Makefile.am
===================================================================
--- branches/MASSIF2/massif/Makefile.am 2007-10-11 07:11:24 UTC (rev 6979)
+++ branches/MASSIF2/massif/Makefile.am 2007-10-11 07:28:16 UTC (rev 6980)
@@ -1,6 +1,6 @@
 include $(top_srcdir)/Makefile.tool.am
 
-SUBDIRS += hp2ps
+SUBDIRS += perf hp2ps
 
 noinst_PROGRAMS = 
 if VGP_X86_LINUX

Modified: branches/MASSIF2/massif/ms_main.c
===================================================================
--- branches/MASSIF2/massif/ms_main.c   2007-10-11 07:11:24 UTC (rev 6979)
+++ branches/MASSIF2/massif/ms_main.c   2007-10-11 07:28:16 UTC (rev 6980)
@@ -145,17 +145,17 @@
 //
 // Performance:
 //
-//   perl perf/vg_perf --tools=massif --reps=3 perf/{bz2,heap,tinycc}
+//   perl perf/vg_perf --tools=massif --reps=3 perf/{bz2,heap,tinycc} massif
 //
 // The other benchmarks don't do much allocation, and so give similar speeds
 // to Nulgrind.
 //
 // Initial slowdown:
-//   bz2      massif1   :1.18s  ma: 5.3s ( 4.5x, -----)
-//   heap     massif1   :0.24s  ma:26.7s (111.4x, -----)
-//   tinycc   massif1   :0.44s  ma:10.7s (24.4x, -----)
+//   bz2        1.18s  ma: 5.3s ( 4.5x, -----)
+//   heap       0.24s  ma:26.7s (111.4x, -----)
+//   tinycc     0.44s  ma:10.7s (24.4x, -----)
+//   many-xpts  0.11s  ma:32.8s (298.0x, -----)
 //
-//
 //---------------------------------------------------------------------------
 
 #include "pub_tool_basics.h"

Modified: branches/MASSIF2/massif/perf/many-xpts.c
===================================================================
--- branches/MASSIF2/massif/perf/many-xpts.c    2007-10-11 07:11:24 UTC (rev 
6979)
+++ branches/MASSIF2/massif/perf/many-xpts.c    2007-10-11 07:28:16 UTC (rev 
6980)
@@ -38,8 +38,14 @@
 {
    int i;
 
+   // Create a large XTree.
    for (i = 0; i < (1 << 18); i++)
       a0(i);
 
+   // Do a lot of allocations so it gets dup'd a lot of times.
+   for (i = 0; i < 3000; i++) {
+      free(malloc(20000));
+   }
+
    return 0;
 }


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Valgrind-developers mailing list
Valgrind-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-developers

Reply via email to