Author: martin.v.loewis Date: Wed Aug 23 23:53:32 2006 New Revision: 51528 Modified: python/branches/int_unification/INTBENCH python/branches/int_unification/Modules/_testcapimodule.c Log: Reduce run-time of test 5 Modified: python/branches/int_unification/INTBENCH ============================================================================== --- python/branches/int_unification/INTBENCH (original) +++ python/branches/int_unification/INTBENCH Wed Aug 23 23:53:32 2006 @@ -6,6 +6,7 @@ Test 2: 1.696623s Test 3: 1.900683s Test 4: 5.307155s +Test 5: 2.546707s Test 6: 1.670252s Test 7: 1.910734s @@ -19,4 +20,5 @@ Test 1: 3.457184s Test 2: 4.514800s Test 3: 4.999010s -Test 4: 10.818277s \ No newline at end of file +Test 4: 10.818277s + Modified: python/branches/int_unification/Modules/_testcapimodule.c ============================================================================== --- python/branches/int_unification/Modules/_testcapimodule.c (original) +++ python/branches/int_unification/Modules/_testcapimodule.c Wed Aug 23 23:53:32 2006 @@ -788,7 +788,7 @@ /* Test 5: Allocate many integers < 32000 */ multiple = malloc(sizeof(PyObject*) * 1000000); gettimeofday(&start, NULL); - for(k=0; k < 20; k++) { + for(k=0; k < 10; k++) { for(i=0; i < 1000000; i++) { multiple[i] = PyInt_FromLong(i+1000); }