here is one of my machines. click the first link - all it does is cat /proc/cpuinfo and replace \n with
\n. the 2nd link is the same thing, written in C++ (compiled statically since I didn't put gcc on the machine, and didn't want to update glibc to a version on the "compiling" machine).
the perl version takes 1.5 seconds (according to time), and the c++ version takes about .05 seconds. why would I use perl?
admittedly, in perl, I executed cat, whereas in C++ I just read hte file directly, but I checked both ways and the difference was negligible.
\n. the 2nd link is the same thing, written in C++ (compiled statically since I didn't put gcc on the machine, and didn't want to update glibc to a version on the "compiling" machine).
the perl version takes 1.5 seconds (according to time), and the c++ version takes about .05 seconds. why would I use perl?
admittedly, in perl, I executed cat, whereas in C++ I just read hte file directly, but I checked both ways and the difference was negligible.
