mips-rel.pl 711 B

123456789101112131415161718192021
  1. #!/usr/local/bin/perl
  2. &doit(100,"Pentium 100 32",0.0195,0.1000,0.6406,4.6100); # pentium-100
  3. &doit(200,"PPro 200 32",0.0070,0.0340,0.2087,1.4700); # pentium-100
  4. &doit( 25,"R3000 25 32",0.0860,0.4825,3.2417,23.8833); # R3000-25
  5. &doit(200,"R4400 200 32",0.0137,0.0717,0.4730,3.4367); # R4400 32bit
  6. &doit(180,"R10000 180 32",0.0061,0.0311,0.1955,1.3871); # R10000 32bit
  7. &doit(180,"R10000 180 64",0.0034,0.0149,0.0880,0.5933); # R10000 64bit
  8. &doit(400,"DEC 21164 400 64",0.0022,0.0105,0.0637,0.4457); # R10000 64bit
  9. sub doit
  10. {
  11. local($mhz,$label,@data)=@_;
  12. for ($i=0; $i <= $#data; $i++)
  13. {
  14. $data[$i]=1/$data[$i]*200/$mhz;
  15. }
  16. printf("%s %6.1f %6.1f %6.1f %6.1f\n",$label,@data);
  17. }