add benchmark script
improve performance