All of these examples run rather quickly (in a few seconds). If you are studying the behavior of the algorithms, you should probably increase the number of iterations in the code.