Dartã®ã¤ã³ã¹ãã¼ã«ãç°¡åã«ãªã£ã¦ããã®ã§è©¦ãã¦ã¿ãã¨ãããPerlãããé«éã ã£ãã ãªã«ããæããã Dart: void main() { final t = new Stopwatch(); t.start(); final a = new List<int>(); for(var i = 0; i < 1000000; ++i) { a.add(i); } for(var i = 0; i < a.length; ++i) { ++a[i]; } var sum = 0; for(var i = 0; i < a.length; ++i) { sum += a[i]; } print(sum); print(t.elapsedMilliseconds / 1000); } Perl: use 5.12.0; use Time::HiRes qw(gettimeofday tv_
{{#tags}}- {{label}}
{{/tags}}