1// Script adapted by Mark Standley 30 July 2026 2function add() 3{ 4 for (var i = 0; i < 1000000; i++) 5 { 6 //some overhead 7 } 8 return 12 + 89; 9} 10 11window.onload = function() 12{ 13 if ("performance" in window && "now" in window.performance) 14 { 15 var start_time = performance.now(); 16 add(); 17 var end_time = performance.now(); 18 19 var n = (end_time - start_time).toFixed(2); 20 document.getElementById("time_taken").innerHTML = n + " ms"; 21 } 22 else 23 { 24 document.getElementById("time_taken").innerHTML = "API not supported"; 25 } 26}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.