Refactoring of stress-test

percentile