From: Leandro Lucarella Date: Sat, 22 Aug 2009 20:30:28 +0000 (-0300) Subject: micro/rnd_data_2.d: Don't disable the GC X-Git-Url: https://git.llucax.com/software/dgc/dgcbench.git/commitdiff_plain/679a50ca73feaa4c3785f756b97f9ef59872adf7 micro/rnd_data_2.d: Don't disable the GC Disabling the GC for the filling up the array of arrays just improves the performance, but has no point in the what the benchmark is trying to test. --- diff --git a/micro/rnd_data_2.d b/micro/rnd_data_2.d index ee76cf1..29d3750 100644 --- a/micro/rnd_data_2.d +++ b/micro/rnd_data_2.d @@ -4,7 +4,6 @@ // (changed not to print anything and lower the total iterations; ported to // Tango) -import tango.core.Memory; import tango.math.random.Random; int main(char[][] args) @@ -15,8 +14,6 @@ int main(char[][] args) stuff.length = 20; - GC.disable(); - auto rand = new Random(); for(int i = 0; i < 200; i++) { @@ -31,10 +28,6 @@ int main(char[][] args) zig = rand.uniform!(int) % stuff.length; stuff[zig] = arr; - - if (i == 20) { - GC.enable(); - } } return 0;