Sed is Slow for Very Long Stream in Solaris, Part 2
I just downloaded the GNU sed (version: 4.1.5) from Sunfreeware and carried out the same experiment. Guess what, GNU sed runtime is 16s (131 times better than the Solaris sed, 3 times worse than the default perl 5.8.4).
Although I am a fan of Solaris, I really do not understand why the Solaris sunfreeware /usr/sfw (or /opt/sfw for Solaris 8) does not come with some of these utilities like sed. Also, most of the binaries in /usr/sfw are pretty old version.