X-Git-Url: https://git.llucax.com/software/dgc/dgcbench.git/blobdiff_plain/679a50ca73feaa4c3785f756b97f9ef59872adf7..0fd90b095e5d567f24c1b3fd476ef79a1f2fcef9:/micro/rnd_data_2.d diff --git a/micro/rnd_data_2.d b/micro/rnd_data_2.d index 29d3750..eab18ac 100644 --- a/micro/rnd_data_2.d +++ b/micro/rnd_data_2.d @@ -6,18 +6,20 @@ import tango.math.random.Random; +const N = 2_000_000; +const L = 20; +const I = 50; // original: 200 + int main(char[][] args) { int[][] stuff; - int NUM = 2_000_000; - - stuff.length = 20; + stuff.length = L; auto rand = new Random(); - for(int i = 0; i < 200; i++) { - int[] arr = new int[NUM]; + for(int i = 0; i < I; i++) { + int[] arr = new int[N]; for(int j = 0; j < arr.length; j++) { rand(arr[j]);