- or download this
> ./llil2vec big1.txt big2.txt big3.txt >f.tmp
llil2vec start
...
total wall clock time : 5 secs
> diff f.tmp vec.tmp
- or download this
> For some reason, short string version is faster when compiled with c
+lang++
> (while long string version is not)
...
total wall clock time : 3 secs
> diff f.tmp vec.tmp
- or download this
// llil2vec.cpp.
// Vector version of llil2grt.pl.
...
return 0;
}
- or download this
// llil3vec.cpp.
// Vector version of llil2grt.pl.
...
return 0;
}
- or download this
> g++ -o llil3vec -std=c++20 -Wall -O3 llil3vec.cpp
> time ./llil3vec big1.txt big2.txt big3.txt >f.tmp
...
sys 0m0.465s
> diff f.tmp vec.tmp
- or download this
// llil3grt.cpp.
// Inspired by llilgrt.pl: improve sort performance via a negative cou
+nt.
...
return 0;
}
- or download this
// llil3m.cpp. C++ 11 version of Perl llil.pl.
// C++ version inspired by Mario's famous dualvar two-sort Perl soluti
+on.
...
return 0;
}
- or download this
llil3grt (fixed string length=6) start
- openmp version
...
real 0m4.752s
user 0m4.241s
sys 0m0.511s
- or download this
$ time ./llil3m big1.txt big2.txt big3.txt >f.tmp
llil3m (fixed string length=6) start
...
real 0m4.713s
user 0m9.238s
sys 0m0.679s
- or download this
llil3m (fixed string length=6) start
- openmp version
...
real 0m4.182s
user 0m6.128s
sys 0m0.473s
- or download this
$ time ./llil3m big1.txt big2.txt big3.txt >f.tmp
llil3m (fixed string length=6) start
...
real 0m4.784s
user 0m4.232s
sys 0m0.551s