working benchmark script