page speed api test code