From 53905951d7403eb672c21d784472a8645eef1cd4 Mon Sep 17 00:00:00 2001
From: Per Hedbor <ph@opera.com>
Date: Sat, 28 Jun 2008 16:26:17 +0200
Subject: [PATCH] Using +.

Rev: lib/modules/Tools.pmod/Shoot.pmod/AppendMapping2.pike:1.1
---
 .../Tools.pmod/Shoot.pmod/AppendMapping2.pike | 23 +++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 lib/modules/Tools.pmod/Shoot.pmod/AppendMapping2.pike

diff --git a/lib/modules/Tools.pmod/Shoot.pmod/AppendMapping2.pike b/lib/modules/Tools.pmod/Shoot.pmod/AppendMapping2.pike
new file mode 100644
index 0000000000..9a3653df50
--- /dev/null
+++ b/lib/modules/Tools.pmod/Shoot.pmod/AppendMapping2.pike
@@ -0,0 +1,23 @@
+#pike __REAL_VERSION__
+inherit Tools.Shoot.Test;
+
+constant name="Append mapping (+)";
+
+int k = 600; /* variable to tune the time of the test */
+int m = 2000; /* the target size of the mapping */
+int n = m*k; // for reporting
+
+void perform()
+{
+   for (int i=0; i<k; i++)
+   {
+      mapping v=([]);
+      for (int j=0; j<m; j++)
+	v+=([j:42]);
+   }
+}
+
+string present_n(int ntot,int nruns,float tseconds,float useconds,int memusage)
+{
+   return sprintf("%.0f/s",ntot/useconds);
+}
-- 
GitLab