Class RecursiveTaskSumTest
java.lang.Object
topics.parallel.sum.RecursiveTaskSumTest
Validation Suite for Parallel Summation
Verifies mathematical reduction correctness and benchmarks execution times over a highly populated floating-point array using JUnit 5.
- Author:
- vicegd
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static voidsetup()Provisions concurrent resources and structures an alternate dataset of 999,999 values prior to executing benchmarks.(package private) voidScenario: Accumulating 999,999 alternated float primitives in parallel.(package private) static voidteardown()Disposes of hardware execution thread environments gracefully.
-
Constructor Details
-
RecursiveTaskSumTest
RecursiveTaskSumTest()
-
-
Method Details
-
setup
@BeforeAll static void setup()Provisions concurrent resources and structures an alternate dataset of 999,999 values prior to executing benchmarks. -
teardown
@AfterAll static void teardown()Disposes of hardware execution thread environments gracefully. -
shouldAggregateArraySumInParallelCorrectly
@Test void shouldAggregateArraySumInParallelCorrectly()Scenario: Accumulating 999,999 alternated float primitives in parallel.
Expected Outcome: Total sum must equate perfectly to 499,999 under a delta margin of
1E-3due to floating-point truncation variances.
-