Java
| Unit | public static methods கொண்ட ஒரு package |
| Bridge | original methods கொண்ட wrapper classes-ல typed JNI மற்றும் generate செய்யப்பட்ட binary wire |
| Record மற்றும் replay செய்றது | generate செய்யப்பட்ட reflection driver |
| தேவைப்படுவது | JDK 17+ (javac மற்றும் java) |
| நிலை | ஒரு facade-க்கு பின்னாடி JDK 21-ல verify செய்யப்பட்டது: 4,492/4,492 (226 throw), gate pass ஆகுது |
Batches என்பது new FnBatch(items); முடிஞ்சதும் அதை close பண்ணுங்க. profile JFR-ஐ பயன்படுத்தும்.
ஒரு port சரியா செய்ய வேண்டியவை
Integer.parseIntCharacter.digitவழியா எந்த Unicode decimal digit-ஐயும் (١٢,2) ஏத்துக்கும்.Double.toString(JDK 19+) shortest decimal-ஐ print பண்ணும், ஆனா எப்பவும் ரெண்டு digits-க்கு குறையாம:4.9E-324, அங்க Rust-ஓட shortest form என்பது5e-324.\sஎன்பது ASCII-only; Rust-ஓடsplit_whitespaceU+00A0-லயும் split பண்ணும்.- Floats round trip-ஐ தாக்குப்பிடிக்கணும்:
serde_json-ஓட default float parser எப்பவும் சரியா round ஆகுறதில்ல, அதனால rust-anything மற்றும் அது generate பண்ற ஒவ்வொரு crate-உம் அதோடfloat_roundtripfeature-ஐ பயன்படுத்துது.
வேகம்
JIT-க்கு அப்புறம், leaf functions சில nanoseconds எடுக்கும், மேலும் strings கொண்ட ஒரு JNI call-க்கு அதை விட அதிகம் செலவாகும். JDK facade-ல, bench port-ஐ ஒரு call-க்கு 0.18x-ஆ அளந்தது: பெரிய units-ஐ port பண்ணுங்க. 4 cores-ல ஒரு batch-ஆ, 50,000 strings மேல slugify (Java-ல 43 ms) 3x வேகமா run ஆச்சு (per-call port: 0.68x).
விவரங்கள்: ஆறு மொழிகள்.