mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-29 03:49:21 +00:00
The java internal implementation of Math#min / max is faster, due to the `@IntrinsicCandidate`, enables the JIT compiler to use native method for more efficient performance. **Only for** reference: (Added asterisk marks to avoid people who can't see) | Benchmark | Mode | Cnt | Score | Error | Units | |----------------------|-------|-----|-----------|----------|--------| | clampInline | thrpt | 5 | 37046.833 | ±454.413 | ops/ms | | clampInternal | thrpt | 5 | 37355.122 | ±362.992 | ops/ms |