Binary search vs linear search using JavaScript 

Binary vs linear javascript comparison

Was reading recently about the different famous algorithms and was wondering what is the difference in performance between binary and linear search as the recent known by it speed for small number of items and for unsorted data.

So I implemented binary search algorithm in JavaScript (project in github) and used performance object to measure the elapsed time for x amount of objects and compare it to normal for loop for each item.
Continue reading “Binary search vs linear search using JavaScript “

Advertisements

Restsharp Vs HttpClient performance benchmark

batmanvsuperman-xlarge.jpg

Am always a big fan of Restsharp , been using it for long time now. Specially recently as most of the projects am working on involves Rest APIs.
The implementation is straight forward to make a call to an API and it supports Async calls as well.

Couple of days back found my self calling a Rest API with the normal HttpClient and it crossed my mind about making a small comparison regarding the performance for both of them.

Continue reading “Restsharp Vs HttpClient performance benchmark”

How to use spotlight images in windows 10 as desktop wallpaper.

Screenshot (18)

If you used windows 10 spotlite for lock screen and you loved the gorgeous pictures, this article will show you how you can use these pictures as desktop wallpaper. First, if you’re not seeing a series of professionally shot images on your Windows 10 lock screen, you’ll want to enable Windows Spotlight. To do so, log in to your Windows 10 account and go to Start > Settings > Personalization > Lock Screen.
Continue reading “How to use spotlight images in windows 10 as desktop wallpaper.”