fwrite test added
[svn/Cll1h/.git] / demos / performance / fwrite.c
diff --git a/demos/performance/fwrite.c b/demos/performance/fwrite.c
new file mode 100644 (file)
index 0000000..a8f3c5b
--- /dev/null
@@ -0,0 +1,16 @@
+#include <stdio.h>
+#include <string.h>
+
+#define RUNS 10000000UL
+int main (void)
+{
+ unsigned long i;
+ char *s1="stuff\n";
+ int l1=strlen(s1);
+
+ for (i=0;i<RUNS;i++)
+ {
+  fwrite(s1,l1,1,stdout);
+ }
+ return 0;
+}
This page took 0.10408 seconds and 4 git commands to generate.