To obtain the best performance possible Hamsters.js introduced an optional dataType argument, assuming your problem array is any one of JavaScript's typed arrays you can see up to 10x the performance by telling the library to use transferable objects. If you do not know what Typed Arrays are please take a look at this guide Typed Arrays
You may write a function to make use of these like so