feat (@typegpu/noise): LCG32 and xoroshiro PRNGs, utilities#2435
Draft
cieplypolar wants to merge 21 commits into
Draft
feat (@typegpu/noise): LCG32 and xoroshiro PRNGs, utilities#2435cieplypolar wants to merge 21 commits into
cieplypolar wants to merge 21 commits into
Conversation
|
pkg.pr.new packages benchmark commit |
Bundle size comparison (
|
| 🟢 Decreased | ➖ Unchanged | 🔴 Increased | ❔ Unknown |
|---|---|---|---|
| 0 | 321 | 0 | 0 |
import { ... } in PR vs import * as ... in PR (is the library tree-Shakeable?):
| Test | tsdown |
|---|---|
| tgpu_init.ts | 256.45 kB ( |
| tgpu_initFromDevice.ts | 255.93 kB ( |
| tgpu_resolve.ts | 187.16 kB ( |
| tgpu_resolveWithContext.ts | 187.10 kB ( |
| tgpu_bindGroupLayout.ts | 69.01 kB ( |
| tgpu_mutableAccessor.ts | 65.98 kB ( |
| tgpu_accessor.ts | 65.97 kB ( |
| tgpu_privateVar.ts | 65.30 kB ( |
| tgpu_workgroupVar.ts | 65.30 kB ( |
| tgpu_const.ts | 64.53 kB ( |
| tgpu_fn.ts | 37.97 kB ( |
| tgpu_fragmentFn.ts | 37.91 kB ( |
| tgpu_vertexFn.ts | 37.72 kB ( |
| tgpu_computeFn.ts | 37.43 kB ( |
| tgpu_vertexLayout.ts | 26.61 kB ( |
| tgpu_comptime.ts | 14.41 kB ( |
| tgpu_unroll.ts | 2.60 kB ( |
| tgpu_slot.ts | 1.57 kB ( |
| tgpu_lazy.ts | 1.22 kB ( |
If you wish to run a comparison for other, slower bundlers, run the 'Tree-shake test' from the GitHub Actions menu.
Resolution Time Benchmark---
config:
themeVariables:
xyChart:
plotColorPalette: "#E63946, #3B82F6, #059669"
---
xychart
title "Random Branching (🔴 PR | 🔵 main | 🟢 release)"
x-axis "max depth" [1, 2, 3, 4, 5, 6, 7, 8]
y-axis "time (ms)"
line [1.00, 2.05, 4.37, 6.49, 7.96, 11.08, 22.26, 26.06]
line [0.95, 1.99, 4.14, 6.27, 7.62, 11.33, 22.94, 23.54]
line [0.98, 1.84, 4.11, 6.62, 8.62, 11.22, 21.98, 26.52]
---
config:
themeVariables:
xyChart:
plotColorPalette: "#E63946, #3B82F6, #059669"
---
xychart
title "Linear Recursion (🔴 PR | 🔵 main | 🟢 release)"
x-axis "max depth" [1, 2, 3, 4, 5, 6, 7, 8]
y-axis "time (ms)"
line [0.32, 0.59, 0.71, 0.83, 1.18, 1.25, 1.59, 1.63]
line [0.32, 0.56, 0.73, 0.85, 1.15, 1.25, 1.48, 1.65]
line [0.27, 0.53, 0.65, 0.80, 1.12, 1.17, 1.37, 1.59]
---
config:
themeVariables:
xyChart:
plotColorPalette: "#E63946, #3B82F6, #059669"
---
xychart
title "Full Tree (🔴 PR | 🔵 main | 🟢 release)"
x-axis "max depth" [1, 2, 3, 4, 5, 6, 7, 8]
y-axis "time (ms)"
line [0.88, 2.08, 4.67, 6.95, 12.89, 26.39, 56.86, 115.21]
line [0.82, 2.14, 3.67, 6.40, 12.91, 26.54, 57.47, 114.05]
line [0.90, 2.11, 4.12, 6.53, 12.86, 26.85, 56.73, 113.43]
|
b314b44 to
a17f1f3
Compare
cad5c38 to
91812f0
Compare
91812f0 to
acfa193
Compare
… feat/noise-utils-xoroshiro
7bf633a to
3e4a85d
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.