You can use this sample to gauge the CPU and memory usage when you are encoding files. You can use this with or without GPU assistance. This sample requires an Microsoft Expression Encoder job file, which has the extension .xej. You can process a single job file or a directory containing job files.
The optional parameters are:
/usegpu Sets whether to use GPU encoding (Expression Encoder Pro only).
/verbose Gives progress and usage data during the encoding process
/maxgpustream Sets the number of GPU streams to use.