``` int bc_base = Clock.getBytecodeNum(); float a = 1 + 1; System.out.println("Bytecode Cost: " + (Clock.getBytecodeNum() - bc_base)); ``` This prints out 17, which I feel shouldn't be the case for an addition.
Activity
lnductor commentedon Jan 14, 2017
(It was actually 2, and the printing/calculating bytecode part used 15 alone)
kazimuth commentedon Jan 14, 2017
generates:
Which is what would be expected.
kazimuth commentedon Jan 14, 2017
I still want to look into unexpected bytecode costs, so I'll keep this open.