add benchmark tools
fix bad clock measurement
use a macro

because too much perl/lisp