This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

New performance tests


OK, I found my problem on mainline:

        * testsuite/performance/20_util/allocator.cc: Add map,
        deque, set tests.
        * testsuite/performance/20_util/allocator_thread.cc: Same.

The new tests (excluding deque) appear to take more memory (4-8x) than
the old tests.

Since our purpose isn't to kill machines of developers looking at such
(we also care about users but not for these tests as much ;-), I have
taken the liberty of installing the obvious patch (see below).

BTW, just curious, why did 20_util/allocator_thread.cc become
20_util/allocator/insert_insert.cc instead of
20_util/allocator/insert_thread.cc?

Or was insert_insert meant to imply parallel inserting?

Then, it seems that it should be:

20_util/allocator/insert_thread.cc: One loops.
20_util/allocator/insert_insert.cc: Two loops. (Also, iterations/2...)

Regards,
Loren

	* testsuite/performance/20_util/allocator/insert.cc (main): Tweak.

Index: libstdc++-v3/testsuite/performance/20_util/allocator/insert.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/performance/20_util/allocator/insert.cc,v
retrieving revision 1.1
diff -c -r1.1 insert.cc
*** libstdc++-v3/testsuite/performance/20_util/allocator/insert.cc	5 Feb 2004 01:33:07 -0000	1.1
--- libstdc++-v3/testsuite/performance/20_util/allocator/insert.cc	5 Feb 2004 03:27:49 -0000
***************
*** 154,175 ****
--- 154,181 ----
  
    typedef less<test_type> compare_type;
  #ifdef TEST_B9
+   iterations = 50000;
    test_container(map<test_type, test_type, compare_type, m_alloc_type>());
  #endif
  #ifdef TEST_B10
+   iterations = 50000;
    test_container(map<test_type, test_type, compare_type, n_alloc_type>());
  #endif
  #ifdef TEST_B11
+   iterations = 50000;
    test_container(map<test_type, test_type, compare_type, so_alloc_type>());
  #endif
  
  #ifdef TEST_B12
+   iterations = 50000;
    test_container(set<test_type, compare_type, m_alloc_type>());
  #endif
  #ifdef TEST_B13
+   iterations = 50000;
    test_container(set<test_type, compare_type, n_alloc_type>());
  #endif
  #ifdef TEST_B14
+   iterations = 50000;
    test_container(set<test_type, compare_type, so_alloc_type>());
  #endif
  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]