-
Notifications
You must be signed in to change notification settings - Fork 37
Update/rewrite web-tooling-benchmark #153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
camillobruni
merged 44 commits into
WebKit:main
from
camillobruni:2025-08-19_web-tooling-update
Sep 1, 2025
Merged
Changes from all commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
bc1e94a
update
camillobruni 07884c2
updaet
camillobruni 2194a94
update deps
camillobruni 12512fe
rename
camillobruni e5ba363
rename
camillobruni 29f5f2d
more updates
camillobruni 6511284
refactor data handling
camillobruni 91965d0
update workloads
camillobruni 47b3719
preparing node-cli runner
camillobruni aefba5b
updating tests
camillobruni 67e7c74
fixing all benchamrks
camillobruni 2d9781d
adding more workloads
camillobruni c22826f
more cleanup
camillobruni 09adafe
fix
camillobruni 63b4c19
fix build process
camillobruni 4e7fc38
updating webpack config
camillobruni 007597c
fix webpack
camillobruni ffbbccb
update
camillobruni 7be8ccc
no dev deps, we only need one
camillobruni ac44f1e
fix
camillobruni 9b02769
remove eslint
camillobruni 4b652b8
adding benchamrk
camillobruni 3e0735e
updarte
camillobruni 3257d61
adding bundles
camillobruni 6cb1c5d
fix array buffer loading
camillobruni 32c7435
mocky
camillobruni c476fa8
fixing web encoding
camillobruni e66cd9c
fixing prettier
camillobruni e92e875
remove unused build dir
camillobruni 1e45af6
update
camillobruni 7e0064d
updating all libs
camillobruni c8fe61f
cleanup
camillobruni 5cef7ef
updating builds
camillobruni 3067360
speeding up babel workload
camillobruni 1aca0f2
formatting
camillobruni 795d39a
more formatting
camillobruni 3cc3ceb
use esm for webpack config
camillobruni e8e5de7
update default files
camillobruni 884a8a8
Merge branch 'main' of github.com:camillobruni/JetStream into 2025-08…
camillobruni dbeb316
add license and disable lebab
camillobruni 7cede73
Merge branch 'main' into 2025-08-19_web-tooling-update
camillobruni a6ca4e7
address comments
camillobruni 2d49ac9
simplify
camillobruni 5d72da8
Merge branch 'main' into 2025-08-19_web-tooling-update
camillobruni File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| # Web Tooling Benchmark | ||
|
|
||
| This is a clone/fork of the original [Web Tooling Benchmark](https://github.com/v8/web-tooling-benchmark). | ||
| Unlike the original, this is a JetStream-oriented version. | ||
|
|
||
| This benchmark provides workloads for common web tools. | ||
|
|
||
|
|
||
| ## Build Instructions | ||
|
|
||
| ```bash | ||
| # install required node packages. | ||
| npm ci | ||
| # build the workload, output is ./dist | ||
| npm run build | ||
| ``` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| /* | ||
| * Copyright (C) 2025 Apple Inc. All rights reserved. | ||
| * | ||
| * Redistribution and use in source and binary forms, with or without | ||
| * modification, are permitted provided that the following conditions | ||
| * are met: | ||
| * 1. Redistributions of source code must retain the above copyright | ||
| * notice, this list of conditions and the following disclaimer. | ||
| * 2. Redistributions in binary form must reproduce the above copyright | ||
| * notice, this list of conditions and the following disclaimer in the | ||
| * documentation and/or other materials provided with the distribution. | ||
| * | ||
| * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY | ||
| * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR | ||
| * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
| * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | ||
| * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | ||
| * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | ||
| * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
| * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| */ | ||
|
|
||
|
|
||
|
|
||
| class Benchmark { | ||
| files = Object.create(null); | ||
|
|
||
| async init() { | ||
| let WTBenchmark; | ||
| await this.loadAllFiles(JetStream.preload); | ||
| this.sourceCode = this.files.BUNDLE; | ||
| this.WTBenchmark = self.WTBenchmark; | ||
| } | ||
|
|
||
| async loadAllFiles(preload) { | ||
| const loadPromises = Object.entries(preload).map( | ||
| async ([name, url]) => { | ||
| if (name.endsWith(".wasm")) { | ||
| this.files[name] = (await JetStream.getBinary(url)).buffer; | ||
| } else { | ||
| this.files[name] = await JetStream.getString(url); | ||
| } | ||
| }) | ||
| await Promise.all(loadPromises); | ||
| } | ||
|
|
||
| async runIteration() { | ||
| await this.WTBenchmark.runTest(this.files); | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.