How to performance test JavaScript in a web page on iPhone? <p>Ive made a web page with quite extensive JavaScript. Its runs fine in my browser and in my iPhone simulator. However on my iPhone 3G its very sluggish. My iPhone is pretty buggy though and often freezes for no reason so I dont know if its just my device or too much / bad code. </p> <p>Other than using lots of devices (might be difficult to get my hands on), is there a good way to test this? Thanks </p>