It's a simplistic test, I agree. The work done in PortAudio is initalization and release of hardware, and conversion of different sample rates and buffer sizes, and buffer types, when necessary. The Pa_GetStreamCpuLoad() call measures how long it takes for patestCallback() to finish and based on that calculates the CPU usage.