Skip to content

Latest commit

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

JDKLambda-invokeDynamic

playing with java byteCode instruction invokeDynamic that is used to create lambda functions (int a,int b)-> a+b and many more and used a lot by graalvm

varrule1 = newRule("Name", "getName", "setName");
varrule2 = newRule("Address name", "getAddress.getName", "getAddress.setAddressName");
varrule3 = newRule("Phone numbers", "getPhones", "setPhoneList", PHONE_PHONE_FUNCTION);
varrule4 = newRule("Simple map mapping", "getMapSimple", "setMapSimple");
varrule5 = newRule("Complicated map mapping", "getMapComplicated", "setMapComplicated", MAP_MAP_FUNCTION);
Benchmark(index)ModeCntScoreErrorUnits
DynamicMappingBenchmark.invokeDynamicWithAllTheRulesN/Aavgt8402.480 ±30.886ns/op
DynamicMappingBenchmark.invokeDynamic_SingleRule1avgt615.633 ±0.504ns/op
DynamicMappingBenchmark.invokeDynamic_SingleRule2avgt632.697 ±21.061ns/op
DynamicMappingBenchmark.invokeVirtualN/Aavgt8279.842 ±30.260ns/op

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages