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;
}
private static long usedMem() {