From https://github.com/viritin/svg-visualizations * branch main -> FETCH_HEAD Already on 'main' Your branch is up to date with 'origin/main'. HEAD is now at 36d644c Let a finger scroll the page through a sparkline $ mvn versions:set-property -Dproperty=vaadin.version -DnewVersion=25.3.5 -DgenerateBackupPoms=false -B --no-transfer-progress java 25-tem is already installed. Using java version 25-tem in this shell. [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for in.virit:svg-visualizations:jar:1.2.1-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 98, column 21 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] [INFO] --------------------< in.virit:svg-visualizations >--------------------- [INFO] Building svg-vizualizations 1.2.1-SNAPSHOT [INFO] from pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- versions:2.25.2:set-property (default-cli) @ svg-visualizations --- [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.871 s [INFO] Finished at: 2026-11-21T13:58:40Z [INFO] ------------------------------------------------------------------------ $ mvn versions:set -DnewVersion=25.3.5 -DartifactId=vaadin-bom -DgenerateBackupPoms=false -B --no-transfer-progress java 25-tem is already installed. Using java version 25-tem in this shell. [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for in.virit:svg-visualizations:jar:1.2.1-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 98, column 21 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] [INFO] --------------------< in.virit:svg-visualizations >--------------------- [INFO] Building svg-vizualizations 1.2.1-SNAPSHOT [INFO] from pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- versions:2.25.2:set (default-cli) @ svg-visualizations --- [INFO] Searching for local aggregator root... [INFO] Local aggregation root: /home/ghrunner/actions-runner/_work/vaadin-ecosystem-build/vaadin-ecosystem-build/work/svg-visualizations [INFO] Processing change of in.virit:vaadin-bom:1.2.1-SNAPSHOT -> 25.3.5 [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.797 s [INFO] Finished at: 2026-11-21T13:58:46Z [INFO] ------------------------------------------------------------------------ $ mvn clean verify -B --no-transfer-progress -DskipPerformanceValidation=true java 25-tem is already installed. Using java version 25-tem in this shell. [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for in.virit:svg-visualizations:jar:1.2.1-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 98, column 21 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] [INFO] --------------------< in.virit:svg-visualizations >--------------------- [INFO] Building svg-vizualizations 1.2.1-SNAPSHOT [INFO] from pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- clean:3.2.0:clean (default-clean) @ svg-visualizations --- [INFO] Deleting /home/ghrunner/actions-runner/_work/vaadin-ecosystem-build/vaadin-ecosystem-build/work/svg-visualizations/target [INFO] [INFO] --- flatten:1.7.0:clean (flatten.clean) @ svg-visualizations --- [INFO] Deleting /home/ghrunner/actions-runner/_work/vaadin-ecosystem-build/vaadin-ecosystem-build/work/svg-visualizations/.flattened-pom.xml [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ svg-visualizations --- [INFO] skip non existing resourceDirectory /home/ghrunner/actions-runner/_work/vaadin-ecosystem-build/vaadin-ecosystem-build/work/svg-visualizations/src/main/resources [INFO] [INFO] --- flatten:1.7.0:flatten (flatten) @ svg-visualizations --- [INFO] Generating flattened POM of project in.virit:svg-visualizations:jar:1.2.1-SNAPSHOT... [INFO] [INFO] --- compiler:3.13.0:compile (default-compile) @ svg-visualizations --- [INFO] Recompiling the module because of changed source code. [INFO] Compiling 3 source files with javac [debug release 21] to target/classes [INFO] [INFO] --- resources:3.3.1:testResources (default-testResources) @ svg-visualizations --- [INFO] skip non existing resourceDirectory /home/ghrunner/actions-runner/_work/vaadin-ecosystem-build/vaadin-ecosystem-build/work/svg-visualizations/src/test/resources [INFO] [INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ svg-visualizations --- [INFO] Recompiling the module because of changed dependency. [INFO] Compiling 18 source files with javac [debug release 21] to target/test-classes [INFO] /home/ghrunner/actions-runner/_work/vaadin-ecosystem-build/vaadin-ecosystem-build/work/svg-visualizations/src/test/java/org/vaadin/svgvis/it/SvgVisualizationsIT.java: /home/ghrunner/actions-runner/_work/vaadin-ecosystem-build/vaadin-ecosystem-build/work/svg-visualizations/src/test/java/org/vaadin/svgvis/it/SvgVisualizationsIT.java uses or overrides a deprecated API. [INFO] /home/ghrunner/actions-runner/_work/vaadin-ecosystem-build/vaadin-ecosystem-build/work/svg-visualizations/src/test/java/org/vaadin/svgvis/it/SvgVisualizationsIT.java: Recompile with -Xlint:deprecation for details. [INFO] [INFO] --- surefire:3.2.5:test (default-test) @ svg-visualizations --- [INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider [INFO] [INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- [INFO] Running org.vaadin.svgvis.SparkLineGeometryTest [INFO] Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.198 s -- in org.vaadin.svgvis.SparkLineGeometryTest [INFO] Running org.vaadin.svgvis.RenderingPerformanceTest Loaded 948423 weather records === System Information === CPU Model: AMD EPYC-Rome Processor CPU Cores: 4 OS: Linux 6.8.0-149-generic Java: 25 (Eclipse Adoptium) Architecture: amd64 === Baseline Info === Last Updated: 2026-11-21T12:32:12.095060585Z Baseline CPU: AMD EPYC-Rome Processor Baseline OS: Linux Loaded 948423 weather records for performance testing 13:59:28.485 [main] INFO com.vaadin.flow.server.DefaultDeploymentConfiguration -- Vaadin is running in production mode. === SparkLine draw() CPU Time Analysis === Measuring time to execute draw() with real components... Data Points | No Smoothing | Moving Avg | RDP -------------|----------------|----------------|---------------- 100 | 6.08 ms | 2.96 ms | 2.76 ms 1,000 | 15.35 ms | 6.15 ms | 4.85 ms 10,000 | 23.22 ms | 3.97 ms | 8.57 ms 49,871 | 71.43 ms | 4.30 ms | 24.86 ms 97,643 | 72.83 ms | 11.03 ms | 27.71 ms 495,995 | 358.81 ms | 7.11 ms | 44.89 ms 944,282 | 724.62 ms | 14.58 ms | 134.71 ms Note: Times include full SVG element creation and DOM operations. === WindRose draw() CPU Time Analysis === Measuring time to aggregate and draw WindRose with real components... Input Records | Aggregation | Draw | Total --------------|----------------|----------------|---------------- 1,000 | 304.1 µs | 1.83 ms | 2.13 ms 10,000 | 4.09 ms | 3.17 ms | 7.26 ms 50,000 | 17.18 ms | 702.0 µs | 17.88 ms 100,000 | 17.61 ms | 1.22 ms | 18.83 ms 500,000 | 44.32 ms | 1.87 ms | 46.19 ms 948,423 | 72.13 ms | 1.17 ms | 73.30 ms Note: WindRose aggregation is O(n), but draw is O(sectors) = O(1). === Scaling Behavior Analysis === Comparing how draw time scales with data size... Multiplier | Data Size | NONE (rel) | MovingAvg (rel) | RDP (rel) -----------|--------------|----------------|-----------------|---------------- 1x | 10,000 | 11.08 ms ( 0.9x) | 823.4 µs ( 0.8x) | 3.08 ms ( 1.6x) 2x | 19,996 | 15.02 ms ( 1.3x) | 476.5 µs ( 0.5x) | 5.79 ms ( 3.1x) 5x | 49,871 | 35.17 ms ( 2.9x) | 958.1 µs ( 1.0x) | 7.76 ms ( 4.1x) 10x | 97,643 | 41.28 ms ( 3.5x) | 3.40 ms ( 3.5x) | 5.87 ms ( 3.1x) 20x | 196,569 | 171.86 ms (14.4x) | 2.58 ms ( 2.7x) | 34.40 ms (18.1x) 50x | 495,995 | 400.09 ms (33.5x) | 8.87 ms ( 9.1x) | 57.03 ms (30.1x) Ideal O(n): time should grow linearly with multiplier. With smoothing: time for SVG creation is ~constant after reduction. === Output Size vs Draw Time === Comparing output point count and actual draw time... Input Points | MA Elements | MA Draw Time | RDP Elements | RDP Draw Time -------------|-------------|----------------|--------------|---------------- 1,000 | 5 | 883.6 µs | 5 | 963.5 µs 10,000 | 5 | 1.14 ms | 5 | 1.65 ms 97,643 | 5 | 1.19 ms | 5 | 5.70 ms 495,995 | 5 | 8.19 ms | 5 | 78.59 ms 944,282 | 5 | 11.78 ms | 5 | 88.19 ms Element count reflects SVG complexity after smoothing. === Multi-Series SparkLine Draw Time === Measuring draw time with multiple data series... Series Count | Moving Avg | RDP -------------|----------------|---------------- 1 | 2.12 ms | 13.15 ms 2 | 5.52 ms | 24.10 ms 3 | 4.83 ms | 31.32 ms 5 | 9.43 ms | 47.94 ms Draw time scales with number of series. === Performance Summary === ⚠️ sparkline.none.100: 6.08 ms (baseline: 2.94 ms, +106.7%) ✓ sparkline.movingAvg.100: 2.96 ms (baseline: 4.16 ms, -28.9%) ⚠️ sparkline.rdp.100: 2.76 ms (baseline: 1.22 ms, +125.2%) ⚠️ sparkline.none.1000: 15.35 ms (baseline: 4.64 ms, +230.8%) ⚠️ sparkline.movingAvg.1000: 6.15 ms (baseline: 1.77 ms, +247.5%) ⚠️ sparkline.rdp.1000: 4.85 ms (baseline: 2.30 ms, +111.2%) ⚠️ sparkline.none.10000: 23.22 ms (baseline: 10.18 ms, +128.0%) ⚠️ sparkline.movingAvg.10000: 3.97 ms (baseline: 1.01 ms, +294.5%) sparkline.rdp.10000: 8.57 ms (baseline: 7.85 ms, +9.2%) ⚠️ sparkline.none.50000: 71.43 ms (baseline: 20.61 ms, +246.5%) ⚠️ sparkline.movingAvg.50000: 4.30 ms (baseline: 3.30 ms, +30.4%) ⚠️ sparkline.rdp.50000: 24.86 ms (baseline: 4.70 ms, +429.4%) ⚠️ sparkline.none.100000: 72.83 ms (baseline: 39.73 ms, +83.3%) ⚠️ sparkline.movingAvg.100000: 11.03 ms (baseline: 1.46 ms, +656.9%) ⚠️ sparkline.rdp.100000: 27.71 ms (baseline: 6.08 ms, +355.8%) ⚠️ sparkline.none.500000: 358.81 ms (baseline: 226.49 ms, +58.4%) ⚠️ sparkline.movingAvg.500000: 7.11 ms (baseline: 5.16 ms, +37.9%) sparkline.rdp.500000: 44.89 ms (baseline: 39.74 ms, +13.0%) ⚠️ sparkline.none.948423: 724.62 ms (baseline: 488.03 ms, +48.5%) sparkline.movingAvg.948423: 14.58 ms (baseline: 12.42 ms, +17.4%) ⚠️ sparkline.rdp.948423: 134.71 ms (baseline: 66.76 ms, +101.8%) windrose.aggregation.1000: 304.1 µs (baseline: 325.9 µs, -6.7%) ⚠️ windrose.draw.1000: 1.83 ms (baseline: 1.08 ms, +69.0%) ⚠️ windrose.aggregation.10000: 4.09 ms (baseline: 1.65 ms, +147.9%) ⚠️ windrose.draw.10000: 3.17 ms (baseline: 829.0 µs, +282.9%) ⚠️ windrose.aggregation.50000: 17.18 ms (baseline: 7.83 ms, +119.4%) windrose.draw.50000: 702.0 µs (baseline: 659.5 µs, +6.4%) ⚠️ windrose.aggregation.100000: 17.61 ms (baseline: 3.92 ms, +349.0%) ⚠️ windrose.draw.100000: 1.22 ms (baseline: 750.7 µs, +62.9%) ⚠️ windrose.aggregation.500000: 44.32 ms (baseline: 20.84 ms, +112.7%) ⚠️ windrose.draw.500000: 1.87 ms (baseline: 610.0 µs, +206.2%) ⚠️ windrose.aggregation.948423: 72.13 ms (baseline: 41.02 ms, +75.8%) ⚠️ windrose.draw.948423: 1.17 ms (baseline: 776.7 µs, +51.1%) ⚠️ scaling.none.1x: 11.08 ms (baseline: 4.29 ms, +158.2%) ⚠️ scaling.movingAvg.1x: 823.4 µs (baseline: 283.1 µs, +190.8%) ⚠️ scaling.rdp.1x: 3.08 ms (baseline: 702.7 µs, +337.7%) ⚠️ scaling.none.2x: 15.02 ms (baseline: 8.58 ms, +75.0%) scaling.movingAvg.2x: 476.5 µs (baseline: 397.2 µs, +20.0%) ⚠️ scaling.rdp.2x: 5.79 ms (baseline: 1.15 ms, +406.0%) ⚠️ scaling.none.5x: 35.17 ms (baseline: 20.00 ms, +75.8%) ⚠️ scaling.movingAvg.5x: 958.1 µs (baseline: 545.9 µs, +75.5%) ⚠️ scaling.rdp.5x: 7.76 ms (baseline: 4.39 ms, +77.0%) scaling.none.10x: 41.28 ms (baseline: 34.62 ms, +19.2%) ⚠️ scaling.movingAvg.10x: 3.40 ms (baseline: 1.18 ms, +187.5%) ⚠️ scaling.rdp.10x: 5.87 ms (baseline: 4.58 ms, +28.1%) ⚠️ scaling.none.20x: 171.86 ms (baseline: 76.58 ms, +124.4%) ✓ scaling.movingAvg.20x: 2.58 ms (baseline: 19.82 ms, -87.0%) ⚠️ scaling.rdp.20x: 34.40 ms (baseline: 14.11 ms, +143.8%) ⚠️ scaling.none.50x: 400.09 ms (baseline: 221.42 ms, +80.7%) ⚠️ scaling.movingAvg.50x: 8.87 ms (baseline: 4.52 ms, +96.4%) scaling.rdp.50x: 57.03 ms (baseline: 52.00 ms, +9.7%) ⚠️ multiseries.movingAvg.1series: 2.12 ms (baseline: 906.9 µs, +134.3%) ⚠️ multiseries.rdp.1series: 13.15 ms (baseline: 5.27 ms, +149.4%) ⚠️ multiseries.movingAvg.2series: 5.52 ms (baseline: 2.25 ms, +145.0%) ⚠️ multiseries.rdp.2series: 24.10 ms (baseline: 18.20 ms, +32.4%) ⚠️ multiseries.movingAvg.3series: 4.83 ms (baseline: 2.67 ms, +80.9%) ⚠️ multiseries.rdp.3series: 31.32 ms (baseline: 22.66 ms, +38.2%) ⚠️ multiseries.movingAvg.5series: 9.43 ms (baseline: 4.50 ms, +109.6%) ⚠️ multiseries.rdp.5series: 47.94 ms (baseline: 36.07 ms, +32.9%) Baseline saved to: /home/ghrunner/actions-runner/_work/vaadin-ecosystem-build/vaadin-ecosystem-build/work/svg-visualizations/performance-baseline.properties [WARNING] Tests run: 6, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 45.95 s -- in org.vaadin.svgvis.RenderingPerformanceTest [INFO] Running org.vaadin.svgvis.unit.SvgSparkLineDrawingTest [INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.209 s -- in org.vaadin.svgvis.unit.SvgSparkLineDrawingTest [INFO] Running org.vaadin.svgvis.unit.WindRoseTest [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 s -- in org.vaadin.svgvis.unit.WindRoseTest [INFO] Running org.vaadin.svgvis.unit.SvgSparkLineCrosshairTest [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.111 s -- in org.vaadin.svgvis.unit.SvgSparkLineCrosshairTest [INFO] Running org.vaadin.svgvis.unit.SvgSparkLineTest [INFO] Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.023 s -- in org.vaadin.svgvis.unit.SvgSparkLineTest [INFO] Running org.vaadin.svgvis.SessionWeightTest Loaded 948423 weather records for testing === DataPoints Session Weight Analysis === Measuring serialized size of SvgSparkLine.DataPoint lists... Data points: 100 -> Serialized: 2.3 KB (23.2 bytes/point) Data points: 1,000 -> Serialized: 21.6 KB (22.1 bytes/point) Data points: 10,000 -> Serialized: 215.0 KB (22.0 bytes/point) Data points: 49,871 -> Serialized: 1.0 MB (22.0 bytes/point) Data points: 97,643 -> Serialized: 2.0 MB (22.0 bytes/point) Data points: 495,995 -> Serialized: 10.4 MB (22.0 bytes/point) Data points: 944,282 -> Serialized: 19.8 MB (22.0 bytes/point) === WindRose Data Session Weight Analysis === WindRose aggregates data into fixed sectors, so weight is constant. Input records: 100 -> Aggregated to 16 sectors -> Serialized: 505 B Input records: 1,000 -> Aggregated to 16 sectors -> Serialized: 505 B Input records: 10,000 -> Aggregated to 16 sectors -> Serialized: 505 B Input records: 50,000 -> Aggregated to 16 sectors -> Serialized: 505 B Input records: 100,000 -> Aggregated to 16 sectors -> Serialized: 505 B Input records: 500,000 -> Aggregated to 16 sectors -> Serialized: 505 B Input records: 948,423 -> Aggregated to 16 sectors -> Serialized: 505 B Conclusion: WindRose weight is ~constant regardless of input size! === Session Weight Growth Comparison === Comparing growth patterns of different data storage approaches... Size | Raw Data | Before Draw | After Smooth | After Draw | WindRose -------------|----------------|----------------|----------------|----------------|---------- 1,000 | 259.4 KB | 21.6 KB | 1.2 KB | 58 B | 155 B 10,000 | 2.5 MB | 215.0 KB | 1.2 KB | 58 B | 155 B 100,000 | 25.3 MB | 2.1 MB | 1.2 KB | 58 B | 155 B 948,423 | 239.7 MB | 19.9 MB | 1.2 KB | 58 B | 155 B Key insight: After draw(), SparkLine clears all data - session weight is ~0! Data is only needed during draw(), SVG elements retain the visualization. === Raw Weather Data Session Weight === For comparison: size of raw RawWeatherStationData objects... Raw records: 100 -> Serialized: 26.4 KB (271 bytes/record) Raw records: 1,000 -> Serialized: 259.4 KB (266 bytes/record) Raw records: 10,000 -> Serialized: 2.5 MB (265 bytes/record) Raw records: 50,000 -> Serialized: 12.6 MB (265 bytes/record) Raw records: 100,000 -> Serialized: 25.3 MB (265 bytes/record) Raw records: 500,000 -> Serialized: 126.4 MB (265 bytes/record) Raw records: 948,423 -> Serialized: 239.7 MB (265 bytes/record) === RDP Algorithm Point Reduction === Measuring how RDP reduces data points while preserving shape... Input Points | RDP Points | Reduction | Serialized Size -------------|------------|-----------|---------------- 100 | 40 | 60.0% | 997 B 1,000 | 132 | 86.8% | 3.0 KB 10,000 | 84 | 99.2% | 1.9 KB 49,871 | 94 | 99.8% | 2.1 KB 97,643 | 95 | 99.9% | 2.2 KB 944,282 | 187 | 100.0% | 4.1 KB RDP preserves shape-significant points, so reduction varies with data complexity. [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 24.13 s -- in org.vaadin.svgvis.SessionWeightTest [INFO] [INFO] Results: [INFO] [WARNING] Tests run: 44, Failures: 0, Errors: 0, Skipped: 1 [INFO] [INFO] [INFO] --- jar:3.5.0:jar (default-jar) @ svg-visualizations --- [INFO] Building jar: /home/ghrunner/actions-runner/_work/vaadin-ecosystem-build/vaadin-ecosystem-build/work/svg-visualizations/target/svg-visualizations-1.2.1-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:28 min [INFO] Finished at: 2026-11-21T14:00:27Z [INFO] ------------------------------------------------------------------------