Click on each script to have its time. This shows that using the same custom block under is define block can slow things down a lot, and repeat blocks are much faster.
Credit to @TheLogFather for giving the idea. Oh and I also needed this to improve my sorting algorithm...