Created
May 28, 2018 01:09
-
-
Save jinan-kordab/0fbff07246be2ae9883cd177c4c815c4 to your computer and use it in GitHub Desktop.
JavaScript code for Entity Framework and Link To SQL Speed Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function startStandardLINQ(t) { | |
var timer = new Timer(); | |
timer.start(); | |
timer.addEventListener('secondsUpdated', function (e) { | |
$('#standardLambdaOne').html(timer.getTimeValues().toString()); | |
}); | |
var xmlhttp = new XMLHttpRequest(); | |
xmlhttp.onreadystatechange = function () { | |
if (this.readyState == 4 && this.status == 200) { | |
timer.stop(); | |
$("#lblNotifyLambdaOne").css("visibility", "visible"); | |
} | |
}; | |
xmlhttp.open("GET", "/Home/startStandardLINQ", true); | |
xmlhttp.send(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment