I found this code on the following link. I tested it against tempdb and another database with the same options. THe speed between the two are lot different. THe tempdb is way faster than the other database. Any ideas of why this is?
http://www.sqlusa.com/bestpractices2005/administration/diskspeedtest/
Alan