{"ScriptPreparationCode":"async function globalMeasureThatScriptPrepareFunction() {\r\n \twindow.globalPyodide = await loadPyodide();\r\n\tawait globalPyodide.runPython(\u0060\r\n\t\tdef test_len(n):\r\n\t\t\tarr = [0] * n\r\n\t\t\tfor i in range(n):\r\n\t\t\t\tarr[i] = i\r\n\t\t\treturn len(arr)\r\n\r\n\t\tdef test_cache(n):\r\n\t\t\tarr = [0] * n\r\n\t\t\tl = 0\r\n\t\t\tfor i in range(n):\r\n\t\t\t\tarr[i] = i\r\n\t\t\t\tl \u002B= 1\r\n\t\t\treturn l\r\n\r\n\t\tdef run(fct, n):\r\n\t\t\tfor i in range(n):\r\n\t\t\t\tfct(n)\r\n\t\u0060); \r\n}","TestCases":[{"Name":"use len built-in","Code":"window.globalPyodide.runPython(\u0060\r\n\trun(test_len, 1000)\r\n\u0060);","IsDeferred":false},{"Name":"use variable to cache size","Code":"window.globalPyodide.runPython(\u0060\r\n\trun(test_cache, 1000)\r\n\u0060);","IsDeferred":false}]}