return usedMem() - before;
}
public static long insertTime(VectorType type, int dimension, int stepSize) {
LinearVector vector = type.getVector(dimension);
long before = System.currentTimeMillis();
// loadFactor is the % of dimensions that are non-0
for (int start = 0; start < dimension; start += stepSize) {
vector.resetValue(start, 1.);
}
return System.currentTimeMillis() - before;
}