{"ScriptPreparationCode":"async function globalMeasureThatScriptPrepareFunction() {\r\n \twindow.globalPyodide = await loadPyodide();\r\n \tconsole.log(globalPyodide.runPython(\u0027import sys; sys.version\u0027));\r\n\tawait globalPyodide.loadPackage(\u0027numpy\u0027);\r\n\tawait globalPyodide.runPython(\u0060\r\n\t\timport numpy as np\r\n\t\timport random\r\n\r\n\t\tdef bubble_sort(arr):\r\n\t\t\tn = len(arr)\r\n\t\t\tfor i in range(n):\r\n\t\t\t\tfor j in range(0, n-i-1):\r\n\t\t\t\t\tif arr[j] \u003E arr[j\u002B1]:\r\n\t\t\t\t\t\tarr[j], arr[j\u002B1] = arr[j\u002B1], arr[j]\r\n\t\t\treturn arr\r\n\r\n\t\tdef efficient_sort(arr):\r\n\t\t\treturn sorted(arr)\r\n\r\n\t\tdef generate_random_array(size, lower_bound, upper_bound):\r\n\t\t\treturn [random.randint(lower_bound, upper_bound) for _ in range(size)]\r\n\r\n\t\t# Generate a random array\r\n\t\trandom_array = generate_random_array(250, 1, 500000)\r\n\t\tprint(\u0022Original array:\u0022, random_array)\r\n\t\u0060); \r\n}","TestCases":[{"Name":"Test #1 bubble_sorted_array","Code":"window.globalPyodide.runPython(\u0060\r\n\tbubble_sort(random_array.copy())\r\n\u0060);","IsDeferred":false},{"Name":"Test#2 efficient_sorted_array","Code":"window.globalPyodide.runPython(\u0060\r\n\tefficient_sort(random_array.copy())\r\n\u0060);","IsDeferred":false}]}