add java port for perf comparison