Help for this page

Select Code to Download


  1. or download this
    $ perl createblinker.pl 500000 -900000 100 >x.tmp 2>y.tmp
    $ g++ -o tbench1 -std=c++11 -Wall -O3 tbench1.cpp
    ...
    user  0m3.242s
    sys   0m0.233s
    
  2. or download this
    ( $sum |= substr $all, $_ ) =~ tr/1357/2468/ for
      1, 2, $w, $w + 2, ($w << 1), ($w << 1) + 1, ($w << 1) + 2; # other 7
    + neighbors
    
  3. or download this
    $ time /opt/perl-5.26.0/bin/perl -I. tbench1.pl x.tmp 2
    cell count at start = 1500000
    ...
    user  0m3.203s
    sys   0m0.205s