small script to measure the finesse