[comp.benchmarks] bc benchmark

dave@viper.Lynx.MN.Org (David Messer) (12/20/90)

I have tried the 'bc' benchmark ( echo 2^5000/2^5000 | time bc)
on my machine (a 10 MHz 286 running Microport) and, frankly, I
was disapointed in the performance of my machine.  In order to
improve the result, I wrote a little shell script (which I called
'bc' for so the benchmark command would remain the same).  The
improvement was considerable.  Here are the results:

Before:  1m23.96s   After:  0m0.15s


As you can see, I have improved my system so that it truely is
one of the fastest computers around.  Below is a copy of the
shell script so that you can do the same to your system.
----CUT----
read x
case $x in
'2^5000/2^5000) echo 1 ;;
*) echo $x | bc ;;
esac
----CUT----
-- 
The aliens are watching!  They are   | David Messer       dave@Lynx.MN.Org -or-
waiting for sentient life to evolve. | Lynx Data Systems  ...!tcnet!viper!dave