It's difficult and imprecise. The way it's normally done is to load up many instances of the plugin under test, compare the CPU usage with and without them in circuit, and divide by the number of instances. Bear in mind that CPU usage reported by SONAR is the time it takes to process a bufferfull of data, and includes all system overhead including Windows processes. But it's sufficient to tell you if plugin A is more or less efficient than plugin B.