summaryrefslogtreecommitdiff
path: root/libs/simclist-1.5/perftest/ins.c
diff options
context:
space:
mode:
Diffstat (limited to 'libs/simclist-1.5/perftest/ins.c')
-rw-r--r--libs/simclist-1.5/perftest/ins.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/libs/simclist-1.5/perftest/ins.c b/libs/simclist-1.5/perftest/ins.c
new file mode 100644
index 0000000..e7d1c19
--- /dev/null
+++ b/libs/simclist-1.5/perftest/ins.c
@@ -0,0 +1,17 @@
+
+#include <stdio.h>
+#include <simclist.h>
+
+#define NELS 10000000
+
+int main() {
+ list_t l;
+ int i;
+
+ list_init(&l);
+ for (i = 0; i < NELS; i++) {
+ list_append(&l, &i);
+ }
+
+ return 0;
+}