speed-test

How to test what method implementation runs faster

While the question check if input is type of string has been closed two of the answers spiked a micro-optimization question in my mind: which of the below two solutions would perform better? Reed Copsey provided a solution using Char.IsLetter: string myString = "RandomStringOfLetters"; bool allLetters = myString.All( c => Char.IsLetter...

PHP Speed Test for user connection speed without echo in current page.

Hey guys, I am looking for a possibility to check the user connection speed. It is supposed to be saved as a cookie and javascript files as well as css files will be adapted if the speed is slow. The possibility for testing speed i have at the moment ist the following $kb = 512; flush(); // echo "<!-"; $time = exp...