check performance/processor speed of the machine on startup?

currently my game is for pc standalone. I was looking to keep my game playable on older PCs. I would like to add a script that could check for a slower / older machine to adjust some visual stuff down accordingly.

it would be also nice to check for the speed of the internet connection?
i would like to check this through script instead of letting the user pick.
here would be the script i am looking for.

var mypcsucks:boolean;
var slowconnect:boolean;

if(processor speed<10)   {mypcsucks=true;}
if(internet bandwidth < 10)  {slowconnect=true;}

SystemInfo should have what you need: