Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created March 20, 2020 21:54
Show Gist options
  • Save Whateverable/7e08b6856f9aa8c20358e7370961d1cb to your computer and use it in GitHub Desktop.
Save Whateverable/7e08b6856f9aa8c20358e7370961d1cb to your computer and use it in GitHub Desktop.
committable6
all class FOO { our proto sub foo($) {*}; multi sub foo(Int $n) { my @a = ^$n; my $b; loop (my $i = 0; $i < $n; $i++) { $b = @a[$i] }; $b }; multi sub foo(Str $s) { foo($s.Int) } }; say FOO::foo(1_000_000); say now - INIT now
¦«2014.01,2014.02,2014.03.01»:
«timed out after 10 seconds» «exit signal = SIGHUP (1)»
¦«2014.04»:
999999
8.489464
¦«2014.05»:
999999
6.6760558
¦«2014.06»:
999999
6.3204887
¦«2014.07»:
999999
4.61704638
¦«2014.08»:
999999
4.60005148
¦«2014.09»:
999999
3.9174852
¦«2014.10»:
999999
2.847727
¦«2014.11»:
999999
2.962457
¦«2014.12»:
999999
3.5558701
¦«2015.01.1»:
999999
2.9363575
¦«2015.02»:
999999
2.5312076
¦«2015.03»:
999999
2.6988508
¦«2015.04»:
999999
3.1252199
¦«2015.05»:
999999
2.35661455
¦«2015.06»:
999999
2.28913809
¦«2015.07.2»:
999999
3.4641725
¦«2015.09»:
999999
2.0172984
¦«2015.10»:
999999
1.6257127
¦«2015.11»:
999999
1.35765550
¦«2015.12»:
999999
1.4218437
¦«2016.01.1»:
999999
1.375983
¦«2016.02»:
999999
1.3517948
¦«2016.03»:
999999
1.52523521
¦«2016.04»:
999999
1.5620065
¦«2016.05»:
999999
1.316715
¦«2016.06»:
999999
1.6137920
¦«2016.07.1»:
999999
1.48196600
¦«2016.08.1»:
999999
1.4512595
¦«2016.09»:
999999
1.459368
¦«2016.10»:
999999
1.57731398
¦«2016.11»:
999999
1.6431977
¦«2016.12»:
999999
1.604483
¦«2017.01»:
999999
1.50591300
¦«2017.02»:
999999
1.46643371
¦«2017.03»:
999999
1.613171
¦«2017.04.3»:
999999
1.5654928
¦«2017.05»:
999999
1.5485599
¦«2017.06»:
999999
1.3531013
¦«2017.07»:
999999
1.31705882
¦«2017.08»:
999999
2.1308613
¦«2017.09»:
999999
2.1312652
¦«2017.10»:
999999
2.039858
¦«2017.11»:
999999
2.1689577
¦«2017.12»:
999999
2.06645220
¦«2018.01»:
999999
2.1014989
¦«2018.02.1»:
999999
2.2145100
¦«2018.03»:
999999
2.2471303
¦«2018.04.1»:
999999
2.0077813
¦«2018.05»:
999999
2.14962787
¦«2018.06»:
999999
2.0835385
¦«2018.08»:
999999
2.7040591
¦«2018.09»:
999999
2.5951218
¦«2018.10»:
999999
2.4675099
¦«2018.11»:
999999
2.5071891
¦«2018.12»:
999999
2.46815457
¦«2019.03.1»:
999999
2.45215
¦«2019.07.1»:
999999
2.11711359
¦«2019.11»:
999999
2.174271
¦«2020.01»:
999999
2.157650228
¦«2020.02.1»:
999999
2.0605784
¦«HEAD(776ef80)»:
999999
2.159661
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment