[svn] commit: r77 - /experiments/graff-exceptions/speed-test.cc

BIND 10 source code commits bind10-changes at lists.isc.org
Thu Oct 8 21:46:41 UTC 2009


Author: jinmei
Date: Thu Oct  8 21:46:40 2009
New Revision: 77

Log:
added test cases for no try

Modified:
    experiments/graff-exceptions/speed-test.cc

Modified: experiments/graff-exceptions/speed-test.cc
==============================================================================
--- experiments/graff-exceptions/speed-test.cc (original)
+++ experiments/graff-exceptions/speed-test.cc Thu Oct  8 21:46:40 2009
@@ -130,4 +130,12 @@
     iterations = ONE_HUNDRED_MILLION;
     while (iterations--) try { return_terminal(10); } catch (MyException &e) { }
     start = timestamp(start, ONE_HUNDRED_MILLION, "return_terminal(10)");
+
+    iterations = ONE_HUNDRED_MILLION;
+    while (iterations--) return_terminal(1);
+    start = timestamp(start, ONE_HUNDRED_MILLION, "return_terminal_notry(1)");
+
+    iterations = ONE_HUNDRED_MILLION;
+    while (iterations--) return_terminal(10);
+    start = timestamp(start, ONE_HUNDRED_MILLION, "return_terminal_notry(10)");
 }




More information about the bind10-changes mailing list