update performance test
[svn/Cll1h/.git] / demos / performance / write.c
diff --git a/demos/performance/write.c b/demos/performance/write.c
new file mode 100644 (file)
index 0000000..2f98790
--- /dev/null
@@ -0,0 +1,15 @@
+#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++)
+{
+ write(1,s1,l1);
+}
+return 0;
+}
This page took 0.098129 seconds and 4 git commands to generate.