improved basic benchmark, problem with allocating more memory during benchmark