Skip to content

chore: add ts benchmarks#1928

Merged
fewerner merged 5 commits intomainfrom
felix/ts-benchmarks
Mar 11, 2026
Merged

chore: add ts benchmarks#1928
fewerner merged 5 commits intomainfrom
felix/ts-benchmarks

Conversation

@fewerner
Copy link
Copy Markdown
Contributor

What's new in this PR

This PR sets up tinybench benchmarks for wdio and adds the first benchmark for creating messages.


PR Submission Checklist for internal contributors
  • The PR Title
    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  1. https://sparkbox.com/foundry/semantic_commit_messages
  2. https://github.com/wireapp/.github#usage
  3. E.g. feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.

@fewerner fewerner requested a review from a team March 10, 2026 12:23
@fewerner fewerner force-pushed the felix/ts-benchmarks branch from ec8091d to 45e42d9 Compare March 10, 2026 14:32
Copy link
Copy Markdown
Member

@SimonThormeyer SimonThormeyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@fewerner fewerner force-pushed the felix/ts-benchmarks branch 3 times, most recently from 6dd867b to d8f1787 Compare March 11, 2026 09:05
We used to copy the files under out into a temporary directory.
Instead of doing this we can mount the `out` dir directly as it contains
the correct folder structure already + the index.html for the the
browser url.
We separate wdio configs for tests and benchmarks as benchmarks will
usually run much longer.
Also we mount the tinybench module for benchmarks which should not be
included in tests.

We remove the spec option from make rules as specs are defined by the
config files already.
We want to clearly separate benchmark and test implementations.
We define window parameters needed to run tinybench benchmarks.

`benchmark_paramaters` demonstrates how we can build an Array of
parametersets which we can later send to the browser to add benchmarks
for each combination.
We are allowed to do this because size, count and ciphersuite are
numbers.
@fewerner fewerner force-pushed the felix/ts-benchmarks branch from d8f1787 to 5a6c812 Compare March 11, 2026 09:12
@fewerner fewerner merged commit 5a6c812 into main Mar 11, 2026
32 checks passed
@fewerner fewerner deleted the felix/ts-benchmarks branch March 11, 2026 09:12
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.

2 participants