compose: Add optional foreach traversal to benchmark This allow us to compare the iterator API to the fastest implementation, `foreach`.