perf test for script load vs api load