update example, now has a speed test func