run hammer in batches to (hopefully) reduce memory usage