From 0a847e10beaf66cd94d60d63f699d06a9341930d Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Fri, 25 Dec 2015 09:15:38 +0000 Subject: [PATCH] Tweak the message sending microbenchmark a bit so that it produces output compatible with ministat. --- Test/objc_msgSend.m | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/Test/objc_msgSend.m b/Test/objc_msgSend.m index 3703365..7cb7eca 100644 --- a/Test/objc_msgSend.m +++ b/Test/objc_msgSend.m @@ -198,32 +198,35 @@ int main(void) assert(0 == [f fzero]); [TestCls manyArgs: 0 : 1 : 2 : 3: 4: 5: 6: 7: 8: 9: 10 : 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : 8 : 9 : 10]; #ifdef BENCHMARK + const int iterations = 1000000000; + double times[3]; clock_t c1, c2; c1 = clock(); - for (int i=0 ; i<100000000 ; i++) + for (int i=0 ; i