Add test codes to test camera speed.