-*- mode: compilation; default-directory: "d:/Users/LanX/vm_share/pm/" -*- Compilation started at Wed Mar 13 13:03:10 C:/Perl_524/bin\perl.exe d:/Users/LanX/vm_share/pm/benchmark_slice.pl Smartmatch is experimental at d:/Users/LanX/vm_share/pm/benchmark_slice.pl line 60. hash %h: { xxxxa => 12345, xxxxb => 12346, xxxxc => 12347, xxxxd => 12348, xxxxe => 12349, xxxxf => 12350, } Rate map_const map_var slice_const slice_var slice_explicit map_const 326753/s -- -36% -86% -87% -88% map_var 511706/s 57% -- -78% -79% -82% slice_const 2284993/s 599% 347% -- -6% -18% slice_var 2423666/s 642% 374% 6% -- -14% slice_explicit 2802527/s 758% 448% 23% 16% -- ok 1 - slice_const { use warnings; use strict; no feature ':all'; use feature ':5.12'; join ',', @h{'xxxxa', 'xxxxb', 'xxxxc', 'xxxxd', 'xxxxe', 'xxxxf'}; } ok 2 - map_const ok 3 - map_var ok 4 - slice_var ok 5 - slice_explicit { use warnings; use strict; no feature ':all'; use feature ':5.12'; join ',', @h{'xxxxa', 'xxxxb', 'xxxxc', 'xxxxd', 'xxxxe', 'xxxxf'}; } 1..5 Compilation finished at Wed Mar 13 13:03:55