better benchmark code (suggested by @danaj)