Files
java-interview-lab/merge-sort/output/06-original-allocation.txt
T

10 lines
615 B
Plaintext

new int[arr.length] inside merge(): elements allocated, and bytes measured with ThreadMXBean (MB = 1,000,000 bytes)
====================================================================================================
10,000 seeded random arrays sorted by the 2015 methods vs Arrays.sort: 0 disagreements.
n merges int slots allocated 2015 measured one shared buffer
1,000 999 999,000 4.0 MB 0.01 MB
10,000 9,999 99,990,000 400.1 MB 0.04 MB
40,000 39,999 1,599,960,000 6,400.5 MB 0.16 MB