Re: Benchmark for Scala, Ruby and Perl

2022-01-15 Thread Jon Smart
Thanks for the geeks on the lists who pointed out a lot of problems to me. I want to add the description why I want to make this benchmark. And I tried to use mmap() for reading file but I have got no benefits from it. https://blog.cloudcache.net/why-mmap-has-no-significant-effect-in-my-code/

Re: Benchmark for Scala, Ruby and Perl

2022-01-15 Thread Jon Smart
ot; end On Sat, Jan 15, 2022 at 3:48 AM Paul Procacci wrote: Hey John, On Sat, Jan 15, 2022 at 3:04 AM Jon Smart wrote: Hello Paul Do you mean by undef $/ and with <$fh> we can read the file into memory at one time? In most cases the short answer is yes. I have problems with yo

Re: Benchmark for Scala, Ruby and Perl

2022-01-15 Thread Jon Smart
fh>; %res; }; my $i=0; for (sort {$count{$b} <=> $count{$a}} keys %count) { if ($i < 20) { print "$_ -> $count{$_}\n" } else { last; } $i ++; } On Sat, Jan 15, 2022 at 12:37 AM Jon Smart wrote: Hello, May I show the result of my

Benchmark for Scala, Ruby and Perl

2022-01-14 Thread Jon Smart
Hello, May I show the result of my benchmark for perl5, ruby, and scala? https://blog.cloudcache.net/benchmark-for-scala-ruby-and-perl/ Welcome you to give any suggestion to me for improving this. Thanks. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail