Skip to content

Instantly share code, notes, and snippets.

View lexakimov's full-sized avatar
🏠
Working from home

Alexey Akimov lexakimov

🏠
Working from home
View GitHub Profile
@lexakimov
lexakimov / TestMethodPerf.java
Created February 28, 2023 08:36
lambdametafactory
import java.lang.invoke.CallSite;
import java.lang.invoke.LambdaMetafactory;
import java.lang.invoke.MethodHandle;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.MethodType;
import java.lang.reflect.Method;
import java.util.function.Function;
public class TestMethodPerf {
private static final int CALLS_PER_ITERATION = 50_000_000;