Tests for measuring performance of JNI state changes.