Skip to content

Instantly share code, notes, and snippets.

@jinan-kordab
Created May 28, 2018 01:09
Show Gist options
  • Save jinan-kordab/0fbff07246be2ae9883cd177c4c815c4 to your computer and use it in GitHub Desktop.
Save jinan-kordab/0fbff07246be2ae9883cd177c4c815c4 to your computer and use it in GitHub Desktop.
JavaScript code for Entity Framework and Link To SQL Speed Test
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