"Structures vs Components: Part 2"
So, in yesterday's post I compared structs vs components in a speed test. I thought I would expand the test to include adding rows to a query and creating Java objects.
The code I did is just an expansion of yesterday's and is as follows:
Object Speed Test
__MSP_CODE_BLOCK_1__
Just for clarification, the java object that its instantiating is on the classpath already and the code for it is as follows :
package uk.co.markdrew.cfml.test;
__MSP_CODE_BLOCK_2__
Here is a chart of the results. If anyone has comments about my methodology, let me know, and I shall amend the test case as required.
EDIT: I was forgetting to add the objects to the array, although this is academic since that should be a very fast function. I shall re-run the test with the modifed code.