Tagged articles
4 articles
Page 1 of 1
FunTester
FunTester
Apr 29, 2021 · Backend Development

How to Pass Multiple Parameters to Groovy’s invokeMethod for Performance Testing

This article explains how to work around Groovy's invokeMethod limitation of accepting only a single Object argument by using String arrays or var‑args, demonstrates Java and Groovy reflection implementations, and provides complete code examples for multi‑parameter performance test scripts.

GroovyMethod InvocationParameter Passing
0 likes · 8 min read
How to Pass Multiple Parameters to Groovy’s invokeMethod for Performance Testing
macrozheng
macrozheng
Nov 19, 2019 · Backend Development

Why Java Reflection Is Slow and How It Works Under the Hood

This article explains the internal workings of Java reflection, from obtaining Method objects via getMethod and getDeclaredMethod to the invoke process, and details why reflection incurs significant performance overhead due to argument boxing, visibility checks, parameter validation, lack of inlining, and JIT optimization limits.

JDKJITMethod Invocation
0 likes · 24 min read
Why Java Reflection Is Slow and How It Works Under the Hood
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jul 27, 2018 · Fundamentals

Understanding Method Invocation in Java Bytecode

The article explains how Java bytecode implements method invocation by extracting a calculation into a static method, detailing the use of the invokestatic instruction, operand stack handling, constant pool references, and subsequent bytecode operations such as i2d, Math.pow, dadd, Math.sqrt, and type conversions.

JVMMethod Invocationbytecode
0 likes · 4 min read
Understanding Method Invocation in Java Bytecode