domains_bm.pl
domains_bm.pl [-n size] [-p max_workers] [-m max_memory] [-r] [-d]
Data set size
Call sort with option --parallel=${max_workers}.
sort
--parallel=${max_workers}
Call sort with option --buffer-size=${max_memory}M.
--buffer-size=${max_memory}M
Use Scott Deindorfer code to generate random data.
Dump sorted data for testing.
$ domains_bm.pl -n 300000 -p 2 retrieving top level domains... generating data... benchmarking... s/iter as_2 as_1 grt ext_2 ext_1 js sk ext_skd_2 ext_skd_1 skd as_2 9.40 -- -1% -31% -38% -39% -39% -50% -65% -65% -68% as_1 9.35 1% -- -31% -38% -38% -39% -50% -64% -65% -68% grt 6.47 45% 44% -- -10% -11% -12% -28% -49% -49% -53% ext_2 5.81 62% 61% 11% -- -1% -2% -19% -43% -43% -48% ext_1 5.76 63% 62% 12% 1% -- -1% -19% -42% -43% -47% js 5.69 65% 64% 14% 2% 1% -- -18% -42% -42% -47% sk 4.68 101% 100% 38% 24% 23% 22% -- -29% -30% -35% ext_skd_2 3.33 182% 181% 94% 74% 73% 71% 41% -- -1% -9% ext_skd_1 3.29 186% 184% 97% 76% 75% 73% 42% 1% -- -8% skd 3.03 211% 209% 114% 92% 90% 88% 55% 10% 9% --
To install Sort::Key::Domain, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Sort::Key::Domain
CPAN shell
perl -MCPAN -e shell install Sort::Key::Domain
For more information on module installation, please visit the detailed CPAN module installation guide.