perforamnce test for printing one and two strings in C,C++,C<<1,Perl and Python
[svn/Cll1h/.git] / demos / performance / fputs2.c
diff --git a/demos/performance/fputs2.c b/demos/performance/fputs2.c
new file mode 100644 (file)
index 0000000..e2ef7e1
--- /dev/null
@@ -0,0 +1,14 @@
+#include <stdio.h>
+
+#define RUNS 10000000UL
+int main (void)
+{
+ unsigned long i;
+ for (i=0;i<RUNS;i++) {
+  fputs("stuff1",stdout);
+  fputs(" ",stdout);
+  fputs("stuff2",stdout);
+  fputs("\n",stdout);
+ }
+ return 0;
+}
This page took 0.12504 seconds and 4 git commands to generate.