benchmark: use median instead of average and also include the ranom runs in the min/max calculation