Daniel Cheng wrote: > Native is slower then pure java here? flawed benchmark? > Or just some very good jit? > >> [junit] native = 117.6909483604948% of pure java time >> [junit] java 7 = 88.31729825250343% of pure java time >> [junit] ------------- ---------------- --------------- >>
JNI itself has some overhead, so this isn't too surprising. If it was >200% then I'd be worried. The code is in test/net/i2p/NativeBigIntegerTest.java if you want to review it. X
