Permalink
Browse files

Make the sample performance test programs in C and Python match the L…

…X version's behavior.
  • Loading branch information...
1 parent 187dc46 commit 7682b4a1c66e9ff4bf8cb8b750012cba70e5944e @kr committed Jan 9, 2007
Showing with 4 additions and 3 deletions.
  1. +3 −1 count.c
  2. +1 −2 count.py
View
@@ -5,9 +5,11 @@ main(int argc, char **argv)
{
int n = 0;
- for (;;) {
+ for (; n < 5000000;) {
n = n + 1;
if ((n % 100000) == 0) printf("%d\n", n);
}
+
+ return 0;
}
View
@@ -1,6 +1,5 @@
n = 0
-while True:
+while n < 5000000:
n = n + 1
-
if (n % 100000) == 0: print n

0 comments on commit 7682b4a

Please sign in to comment.