Improve some perts and add benchmarks in test