ch07: add bench function (current score: 2.84)