[MOAB-dev] r4171 - MOAB/trunk/test/perf
tautges at mcs.anl.gov
tautges at mcs.anl.gov
Mon Sep 27 19:28:32 CDT 2010
Author: tautges
Date: 2010-09-27 19:28:32 -0500 (Mon, 27 Sep 2010)
New Revision: 4171
Modified:
MOAB/trunk/test/perf/perf.cpp
Log:
Adding data for after destroying interface.
Modified: MOAB/trunk/test/perf/perf.cpp
===================================================================
--- MOAB/trunk/test/perf/perf.cpp 2010-09-27 21:17:16 UTC (rev 4170)
+++ MOAB/trunk/test/perf/perf.cpp 2010-09-28 00:28:32 UTC (rev 4171)
@@ -474,8 +474,8 @@
void testB(const int nelem, const double *coords, int *connect)
{
- double ttime0, ttime1, ttime2, ttime3, utime, stime;
- long imem0, rmem0, imem1, rmem1, imem2, rmem2, imem3, rmem3;
+ double ttime0, ttime1, ttime2, ttime3, ttime4, utime, stime;
+ long imem0, rmem0, imem1, rmem1, imem2, rmem2, imem3, rmem3, imem4, rmem4;
print_time(false, ttime0, utime, stime, imem0, rmem0);
@@ -521,20 +521,25 @@
print_time(false, ttime3, utime, stime, imem3, rmem3);
- std::cout << "MOAB ucd blocked: nelem, construct, e_to_v query, v_to_e query = "
+ delete gMB;
+
+ print_time(false, ttime4, utime, stime, imem4, rmem4);
+
+ std::cout << "MOAB ucd blocked: nelem, construct, e_to_v query, v_to_e query, after dtor = "
<< nelem << ", "
<< ttime1-ttime0 << ", "
<< ttime2-ttime1 << ", "
- << ttime3-ttime2 << " seconds"
+ << ttime3-ttime2 << ", "
+ << ttime4-ttime3 << " seconds"
<< std::endl;
- std::cout << "MOAB ucd blocked memory (rss): initial, after v/e construction, e-v query, v-e query:"
- << rmem0 << ", " << rmem1 << ", " << rmem2 << ", " << rmem3 << " kb" << std::endl;
+ std::cout << "MOAB ucd blocked memory (rss): initial, after v/e construction, e-v query, v-e query, after dtor:"
+ << rmem0 << ", " << rmem1 << ", " << rmem2 << ", " << rmem3 << ", " << rmem4 << " kb" << std::endl;
}
void testC(const int nelem, const double *coords)
{
- double ttime0, ttime1, ttime2, ttime3, utime, stime;
- long imem0, rmem0, imem1, rmem1, imem2, rmem2, imem3, rmem3;
+ double ttime0, ttime1, ttime2, ttime3, ttime4, utime, stime;
+ long imem0, rmem0, imem1, rmem1, imem2, rmem2, imem3, rmem3, imem4, rmem4;
print_time(false, ttime0, utime, stime, imem0, rmem0);
@@ -589,12 +594,17 @@
print_time(false, ttime3, utime, stime, imem3, rmem3);
More information about the moab-dev
mailing list