slightly modified akka sample. added outer loop for benchmarking