nv-random-double-ary
v0.0.1
Published
nv-random-double-ary ======================= - creat a big nested Array\<Number|Array\<Number\>\> - for js number serde performance test using
Downloads
2
Readme
nv-random-double-ary
- creat a big nested Array<Number|Array<Number>>
- for js number serde performance test using
install
- npm install nv-random-double-ary
splitted
usage
const x = require("nv-random-double-ary");
x({
total_cnt: 262144,
max_depth: 16,
max_child_cnt: 64,
})
example
> var {a,stats} = x()
> stats
{
total_cnt: 262144,
max_depth: 16,
max_child_cnt: 64,
acnt: 10882,
vcnt: 251262
}
>
> console.log(JSON.stringify(a).slice(0,1000)+"...")
[[12924919,-1920797,-16279786.434977662,60546.08943571084,-1700951,12953794,13454653,12902682,8988698,11941041.713621637,-12332193,2367660,-11359133,818428.9308927356,6894195.215165153,[7697642.73288946,-1244974.5582322462,-2048027.049091598,-14653145.590718992,-2647093.119333381,-3119895.2594736,2253603.1508076363,2930899.3109017173,-3025739,-14629626.096059611,13803797,1414455,7466331.7293467,-7854714,14855154,-8130891.07781031,2886060.0899732034,13916977.636774989,-1175741.720981233,6156173.650664359,-4541372.495358618,6909134,-5166668.812443686,15927883.839868467,-13664196.83283972,15960473.485761056,-2168744.0165653364,-1000859,15320215,5804080.571957979,10246229,-7579671,-1514195,-11941935,4883080,-11002572.94818908,-11333179,-10366818,4316836.022679586,-8074544.3484655125,11616307,10638212,15989077.253761398,5812766,10998651,-7552444,-11335138,6885794,610483,14958018,13021124,-10390142.865844466,-9639551,-2104866.9610991445,-16635226,3578616.6501668,-6773355,-445160,10987827,146...
METHODS
APIS
LICENSE
- ISC