Corrected some Benchmarks

When the code in the Benchmark is slow and inefficcient, the Benchmark
is useless and doesn't test the API properly. So, some fixes are applied
here, so that we dont get tons of time in Math.random() during a run