To run Q3 demo, go to the main menu and press ~, type timedemo 1, enter, type demo demo127.
After the demo, press ~ again to find your FPS.
To find fps for UT, during the game, press ~, type timedemo 1, press ~ again.
I know there's a way to run the UT demo, I did it before, I just forgot.