Class RecursiveTaskSumTest

java.lang.Object
topics.parallel.sum.RecursiveTaskSumTest

class RecursiveTaskSumTest extends Object

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 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-3 due to floating-point truncation variances.