ScratchData LogoScratchData
Back to ErnieParke's profile

Function Speed Tests

ERErnieParke•Created August 21, 2014
Function Speed Tests
8
4
140 views
View on Scratch

Instructions

This is a project to evaluate the computational performance of several blocks in Scratch, which has led to some very surprising results... Post your results if you want! If you are curious as to what a term is, ask in the comments! I have a note below on statistics credibility. (B. Sqrt. stands for the babylonian square root approximation, at 5 iterations. Read more in Wikipedia: http://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method ) In every test, I included a (pick random (1) to (500) block so as to mimic realistic programming. In a program, you are bound to find a variety of mathematical values, not just 1+1. The down side of this is that every statistic (except for the random column) is therefor a further underestimate by a few thousand iterations per 0.1 seconds. Another problem with statistic credibility, also the reason why square root and addition have such similar results, is that Scratch takes 10x more time interpreting a set block and the variable it references then to do the actual operation(s) in the set block. This completely throws the function speeds off and makes any numbers a wild underestimate, although the statistics are still valuable as a baseline for true function speeds and some speed comparisons between functions.

Description

Instructions: Press 1 to run a speed test. Your computer will freeze for about 16 seconds. Credits to: 1). Kevin Macleod for the music! 2). Blender for the title screen! 3). @DadOfMrLog for an explanation of my surprising results. 4). Scratch for being amazing!

Project Details

Project ID25768445
CreatedAugust 21, 2014
Last ModifiedJanuary 2, 2019
SharedAugust 23, 2014
Visibilityvisible
CommentsAllowed