Add JNI state change performance test

This test is only for measuring the JNI performance. The test prints
timing information on each run so we do not compare stdout with
expected.txt. This test is mostly intended to be run manually with
the run-test script using the -O flag.

Change-Id: I68aa1473c425d9ef6f00796bdb47bea2a956d011
6 files changed