Skip to content

test: add isolated wasm feature runtime coverage - #1054

Open
cdc-as81 wants to merge 1 commit into
mainfrom
cdc-as81-wasm-feature-coverage
Open

test: add isolated wasm feature runtime coverage#1054
cdc-as81 wants to merge 1 commit into
mainfrom
cdc-as81-wasm-feature-coverage

Conversation

@cdc-as81

@cdc-as81 cdc-as81 commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Generalize the WASM feature check to cover both logging and profiling.
  • Build logging-only and profiling-only WASM integration artifacts.
  • Add Playwright tests that verify each feature works at runtime in the browser.
  • Retain the existing combined-feature browser and Web Worker coverage.

Closes #1036.

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

Benchmark Results

Hyperfine

Command Mean [ms] Min [ms] Max [ms] Relative
large_sir::baseline 2.8 ± 0.1 2.7 3.0 1.00
large_sir::baseline_households 2.8 ± 0.1 2.7 2.9 1.01 ± 0.04
large_sir::entities 6.1 ± 0.1 5.9 6.4 2.22 ± 0.07
large_sir::households 5.9 ± 0.1 5.8 6.2 2.15 ± 0.07

Criterion

Regressions (slower)
Group Bench Param Change CI Lower CI Upper
sample_entity sample_entity_single_property_indexed 10000 10.337% 4.763% 16.050%
sampling count_and_sampling_single_known_length_entities 8.113% 1.602% 14.741%
sample_entity sample_entity_single_property_indexed 100000 5.034% 1.061% 9.221%
counts single_property_unindexed_entities 4.266% 2.304% 6.407%
indexing query_people_multiple_individually_indexed_properties_entities 3.422% 2.572% 4.282%
sampling count_and_sampling_single_unindexed_concrete_plus_derived_entiti 2.582% 2.155% 3.037%
indexing query_people_count_multiple_individually_indexed_properties_enti 1.901% 1.546% 2.298%
sampling sampling_multiple_l_reservoir_entities 1.688% 1.559% 1.869%
Improvements (faster)
Group Bench Param Change CI Lower CI Upper
sample_entity sample_entity_whole_population 100000 -10.205% -12.956% -7.282%
sample_entity sample_entity_single_property_unindexed 10000 -9.178% -9.812% -8.634%
sample_entity sample_entity_whole_population 10000 -7.738% -10.365% -4.978%
large_dataset bench_filter_indexed_entity -4.748% -6.838% -2.489%
sample_entity sample_entity_single_property_unindexed 1000 -4.287% -4.826% -3.649%
counts multi_property_indexed_entities -2.358% -2.706% -1.992%
counts single_property_indexed_entities -2.270% -2.784% -1.699%
sampling sampling_multiple_known_length_entities -1.650% -1.987% -1.276%
Unchanged / inconclusive (CI crosses 0%)
Group Bench Param Change CI Lower CI Upper
examples example-basic-infection 9.203% -7.975% 29.622%
examples example-births-deaths -8.283% -22.366% 8.409%
sample_entity sample_entity_single_property_unindexed 100000 4.042% -4.871% 14.432%
large_dataset bench_filter_unindexed_entity -3.966% -7.437% -0.398%
large_dataset bench_match_entity 3.569% 0.487% 6.859%
sample_entity sample_entity_single_property_indexed 1000 2.901% -1.568% 7.648%
sample_entity sample_entity_whole_population 1000 -2.770% -5.531% 0.201%
sample_entity sample_entity_multi_property_indexed 10000 -2.057% -3.140% -0.980%
sampling sampling_single_unindexed_concrete_plus_derived_entities -1.713% -3.353% -0.056%
indexing query_people_count_single_indexed_property_entities -1.222% -1.988% -0.314%
large_dataset bench_query_population_derived_property_entities 1.068% 0.398% 1.813%
large_dataset bench_query_population_indexed_property_entities 1.013% -0.959% 3.514%
indexing with_query_results_indexed_multi-property_entities 0.980% 0.648% 1.258%
indexing with_query_results_single_indexed_property_entities -0.962% -1.415% -0.595%
indexing with_query_results_multiple_individually_indexed_properties_enti 0.911% 0.363% 1.488%
sampling sampling_single_l_reservoir_entities 0.889% 0.477% 1.288%
counts reindex_after_adding_more_entities 0.857% 0.660% 1.055%
sampling sampling_single_unindexed_entities 0.722% -0.158% 1.635%
indexing query_people_single_indexed_property_entities 0.679% 0.227% 1.040%
large_dataset bench_query_population_multi_indexed_entities 0.674% -0.412% 1.740%
sample_entity sample_entity_multi_property_indexed 100000 0.483% -0.432% 1.400%
large_dataset bench_query_population_multi_unindexed_entities 0.481% -0.520% 1.527%
sampling sampling_multiple_unindexed_entities -0.441% -0.854% -0.089%
counts multi_property_unindexed_entities -0.423% -0.963% 0.008%
sample_entity sample_entity_multi_property_indexed 1000 0.420% -0.385% 1.330%
indexing query_people_count_indexed_multi-property_entities -0.368% -0.990% 0.292%
indexing query_people_indexed_multi-property_entities 0.279% -0.446% 0.858%
algorithm_benches algorithm_sampling_multiple_known_length -0.210% -0.501% 0.073%
sampling sampling_single_known_length_entities -0.162% -0.980% 0.613%
algorithm_benches algorithm_sampling_single_known_length -0.153% -0.632% 0.204%
counts concrete_plus_derived_unindexed_entities 0.149% -0.570% 0.887%
counts index_after_adding_entities -0.131% -0.257% -0.008%
algorithm_benches algorithm_sampling_multiple_l_reservoir -0.130% -0.535% 0.241%
algorithm_benches algorithm_sampling_single_rand_reservoir -0.115% -0.378% 0.054%
algorithm_benches algorithm_sampling_single_l_reservoir 0.085% -0.130% 0.278%
large_dataset bench_query_population_property_entities 0.059% -0.669% 0.752%
Not Compared (no baseline yet)
Group Bench Reason
(none)

github-actions Bot added a commit that referenced this pull request Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test all features for the Wasm target

2 participants