New performance tests

Loren James Rittle rittle@latour.rsch.comm.mot.com
Thu Feb 5 03:59:00 GMT 2004


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
  



More information about the Libstdc++ mailing list