Skip to content

Instantly share code, notes, and snippets.

@leto
Created July 14, 2011 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leto/1083395 to your computer and use it in GitHub Desktop.
Save leto/1083395 to your computer and use it in GitHub Desktop.
$ ./parrot examples/benchmarks/array_access.pir --arr-size=2000
1 * 1000 = 1000
2000 * 1000 = 2000000
FixedFloatArray: 0.824878931045532s
1 * 1000 = 1000
2000 * 1000 = 2000000
FixedIntegerArray: 0.763994932174683s
1 * 1000 = 1000
2000 * 1000 = 2000000
FixedPMCArray: 1.37130904197693s
1 * 1000 = 1000
2000 * 1000 = 2000000
FixedStringArray: 2.37555313110352s
1 * 1000 = 1000
2000 * 1000 = 2000000
ResizableFloatArray: 0.782232999801636s
1 * 1000 = 1000
2000 * 1000 = 2000000
ResizableIntegerArray: 0.75334906578064s
1 * 1000 = 1000
2000 * 1000 = 2000000
ResizablePMCArray: 1.19362592697144s
1 * 1000 = 1000
2000 * 1000 = 2000000
ResizableStringArray: 2.30079698562622s
1 * 1000 = 1000
2000 * 1000 = 2000000
FixedPMCArray: 1.66691112518311s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment