Skip to content
Snippets Groups Projects
Commit 53905951 authored by Per Hedbor's avatar Per Hedbor
Browse files

Using +.

Rev: lib/modules/Tools.pmod/Shoot.pmod/AppendMapping2.pike:1.1
parent 51999b04
Branches
Tags
No related merge requests found
#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);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment