int function ( ) { inty += 1 ; return Integer . reverse ( inty ) ; }
each method marked with @benchmark becomes a separate benchmark with its own warm ups , measurements , forks , threads , and states . the static methods could be inlined -- the extra method call in the first two would likely be inlined by the jit near instantly anyway . however , this was easier to test and organize at the time . concode_field_sep int inty concode_field_sep int reverseBasis concode_elem_sep int stanfordParallelReverse concode_elem_sep int stanfordParallelMethod concode_elem_sep int stanfordMultiplyReverse concode_elem_sep int stackOverflowMethod concode_elem_sep int loopReverse concode_elem_sep int stackReverse concode_elem_sep int stanfordSevenOpReverse concode_elem_sep void main concode_elem_sep int loopMethod concode_elem_sep int stanfordSevenOpMethod concode_elem_sep int stanfordMultiplyMethod