add main.m to test the performance