Benchmarking javascript inserting a new element into a sorted array – three approaches

Task: having a sorted array add one value so that the array remains sorted in browser-based JavaScript. Assumption: internal array sort may win to some extent over interpreted search and insert. What I did is implemented all three algorithms and made a post to demonstrate the results of the benchmarking. Tests are run in async…