Phase 2 · Multithreaded Performance Optimization¶
Phase 2 evaluates the impact of Java multithreading on execution time for computing the sum of cubes of array elements.
The benchmark was executed on an Apple M2 MacBook Air using OpenJDK 25 LTS (Temurin) and the official thread counts 1, 2, 4, 6, and 8.
Phase 2 Navigation¶
-
Experimental Plan
Controlled setup, timing method, and repeat policy.
-
Results Template
Ready-to-fill tables for timing, speedup, and machine specifications.
-
Analysis Report
Structured report outline mapped to submission requirements.
-
Work Log
Team responsibilities and progress checkpoints.
Required Thread Configurations¶
-
Single Thread Baseline
Baseline average: 3.754 ms using
1thread. -
Low Parallelism
2threads slowed down to 4.335 ms, while4threads improved to 3.111 ms. -
High Parallelism
6threads averaged 0.698 ms and8threads averaged 0.649 ms. -
Performance Metrics
Recorded metrics: execution time, speedup, and percentage improvement.
Requirement Source¶
The detailed requirement summary is available here:
Benchmark Summary¶
-
Best Average Result
8threads achieved the fastest average runtime: 0.649 ms. -
Strong Scaling Region
The largest improvement appeared at
6and8threads, where runtime dropped below 0.7 ms. -
Early Overhead
2threads performed worse than the single-thread baseline, indicating overhead on this workload size. -
Dataset Size
Each configuration was measured across 12 recorded runs.