Preheat oven to 425 degrees. Season the beef's surface with salt and pepper. Put in a heated skillet with butter, and sear side and ends for about 1 1/2 minutes each. Place tenderloin in refrigerator and cool. Put onions, mushrooms, salt and pepper in skillet, and cook until almost tender.