RandomSource.getRandomValues

Benchmark created by Michael Johnson on


Setup

var array8 = new Uint8Array(8);
    var array16 = new Uint8Array(16);
    var array32 = new Uint8Array(32);

Test runner

Ready to run.

Testing in
TestOps/sec
Time to fill 8 bytes of randomness
crypto.getRandomValues(array8);
ready
Time to fill 16 bytes of randomness
crypto.getRandomValues(array16);
ready
Time to fill 32 bytes of randomness
crypto.getRandomValues(array32);
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.

  • Revision 1: published by Michael Johnson on