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 “

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”