test: Implement a perf testing benchmarking system (#1163)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Mark Erikson · committed by GitHub · parent cb1d687 · Browse files · 8 files·+1242 added−1 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
8 files+1242 added−1 removed
- other:+1242 added−1 removed
Provenance
- Commit
efa396d- Tree
d5ac9b8- Author
Mark Erikson <mark@isquaredsoftware.com>- Committer
GitHub <noreply@github.com>- Parent
cb1d687
8 files changed+1242 added−1 removed
added:perf-testing/.gitignore+35 added
1+# Logs2+logs3+*.log4+npm-debug.log*5+yarn-debug.log*6+yarn-error.log*7+pnpm-debug.log*8+lerna-debug.log*9+10+node_modules11+dist12+dist-ssr13+*.local14+15+# Editor directories and files16+.vscode/*17+!.vscode/extensions.json18+.idea19+.DS_Store20+*.suo21+*.ntvs*22+*.njsproj23+*.sln24+*.sw?25+26+# CPU profiles27+*.cpuprofile28+29+# Yarn30+.yarn/*31+!.yarn/patches32+!.yarn/plugins33+!.yarn/releases34+!.yarn/sdks35+!.yarn/versionsadded:perf-testing/immutability-benchmarks.mjs+245 added
1+/* eslint-disable no-inner-declarations */2+import "source-map-support/register"3+4+import {produce as produce5, setAutoFreeze as setAutoFreeze5} from "immer5"5+import {produce as produce6, setAutoFreeze as setAutoFreeze6} from "immer6"6+import {produce as produce7, setAutoFreeze as setAutoFreeze7} from "immer7"7+import {produce as produce8, setAutoFreeze as setAutoFreeze8} from "immer8"8+import {produce as produce9, setAutoFreeze as setAutoFreeze9} from "immer9"9+import {produce as produce10, setAutoFreeze as setAutoFreeze10} from "immer10"10+import {11+ produce as produce10Perf,12+ setAutoFreeze as setAutoFreeze10Perf13+ // Uncomment when using a build of Immer that exposes this function,14+ // and enable the corresponding line in the setStrictIteration object below.15+ // setUseStrictIteration as setUseStrictIteration10Perf16+} from "immer10Perf"17+import {create as produceMutative} from "mutative"18+import {19+ produce as produceMutativeCompat,20+ setAutoFreeze as setAutoFreezeMutativeCompat21+} from "mutative-compat"22+import {bench, run, group, summary} from "mitata"23+24+function createInitialState() {25+ const initialState = {26+ largeArray: Array.from({length: 10000}, (_, i) => ({27+ id: i,28+ value: Math.random(),29+ nested: {key: `key-${i}`, data: Math.random()},30+ moreNested: {31+ items: Array.from({length: 100}, (_, i) => ({id: i, name: String(i)}))32+ }33+ })),34+ otherData: Array.from({length: 10000}, (_, i) => ({35+ id: i,36+ name: `name-${i}`,37+ isActive: i % 2 === 038+ }))39+ }40+ return initialState41+}42+43+const MAX = 144+45+const add = index => ({46+ type: "test/addItem",47+ payload: {id: index, value: index, nested: {data: index}}48+})49+const remove = index => ({type: "test/removeItem", payload: index})50+const filter = index => ({type: "test/filterItem", payload: index})51+const update = index => ({52+ type: "test/updateItem",53+ payload: {id: index, value: index, nestedData: index}54+})55+const concat = index => ({56+ type: "test/concatArray",57+ payload: Array.from({length: 500}, (_, i) => ({id: i, value: index}))58+})59+60+const actions = {61+ add,62+ remove,63+ filter,64+ update,65+ concat66+}67+68+const immerProducers = {69+ // immer5: produce5,70+ // immer6: produce6,71+ immer7: produce7,72+ immer8: produce8,73+ immer9: produce9,74+ immer10: produce10,75+ immer10Perf: produce10Perf76+ // mutative: produceMutative,77+ // mutativeCompat: produceMutativeCompat78+}79+80+const noop = () => {}81+82+const setAutoFreezes = {83+ vanilla: noop,84+ immer5: setAutoFreeze5,85+ immer6: setAutoFreeze6,86+ immer7: setAutoFreeze7,87+ immer8: setAutoFreeze8,88+ immer9: setAutoFreeze9,89+ immer10: setAutoFreeze10,90+ immer10Perf: setAutoFreeze10Perf,91+ mutative: noop,92+ mutativeCompat: setAutoFreezeMutativeCompat93+}94+95+const setStrictIteration = {96+ vanilla: noop,97+ immer5: noop,98+ immer6: noop,99+ immer7: noop,100+ immer8: noop,101+ immer9: noop,102+ immer10: noop,103+ immer10Perf: noop, // setUseStrictIteration10Perf,104+ mutative: noop,105+ mutativeCompat: noop106+}107+108+const vanillaReducer = (state = createInitialState(), action) => {109+ switch (action.type) {110+ case "test/addItem":111+ return {112+ ...state,113+ largeArray: [...state.largeArray, action.payload]114+ }115+ case "test/removeItem": {116+ const newArray = state.largeArray.slice()117+ newArray.splice(action.payload, 1)118+ return {119+ ...state,120+ largeArray: newArray121+ }122+ }123+ case "test/filterItem": {124+ const newArray = state.largeArray.filter(125+ (item, i) => i !== action.payload126+ )127+ return {128+ ...state,129+ largeArray: newArray130+ }131+ }132+ case "test/updateItem": {133+ return {134+ ...state,135+ largeArray: state.largeArray.map(item =>136+ item.id === action.payload.id137+ ? {138+ ...item,139+ value: action.payload.value,140+ nested: {...item.nested, data: action.payload.nestedData}141+ }142+ : item143+ )144+ }145+ }146+ case "test/concatArray": {147+ const length = state.largeArray.length148+ const newArray = action.payload.concat(state.largeArray)149+ newArray.length = length150+ return {151+ ...state,152+ largeArray: newArray153+ }154+ }155+ default:156+ return state157+ }158+}159+160+const createImmerReducer = produce => {161+ const immerReducer = (state = createInitialState(), action) =>162+ produce(state, draft => {163+ switch (action.type) {164+ case "test/addItem":165+ draft.largeArray.push(action.payload)166+ break167+ case "test/removeItem":168+ draft.largeArray.splice(action.payload, 1)169+ break170+ case "test/filterItem": {171+ draft.largeArray = draft.largeArray.filter(172+ (item, i) => i !== action.payload173+ )174+ break175+ }176+ case "test/updateItem": {177+ const item = draft.largeArray.find(178+ item => item.id === action.payload.id179+ )180+ item.value = action.payload.value181+ item.nested.data = action.payload.nestedData182+ break183+ }184+ case "test/concatArray": {185+ const length = state.largeArray.length186+ const newArray = action.payload.concat(state.largeArray)187+ newArray.length = length188+ draft.largeArray = newArray189+ break190+ }191+ }192+ })193+194+ return immerReducer195+}196+197+function mapValues(obj, fn) {198+ const result = {}199+ for (const key in obj) {200+ result[key] = fn(obj[key])201+ }202+ return result203+}204+205+const reducers = {206+ vanilla: vanillaReducer,207+ ...mapValues(immerProducers, createImmerReducer)208+}209+210+function createBenchmarks() {211+ for (const action in actions) {212+ summary(function() {213+ bench(`$action: $version (freeze: $freeze)`, function*(args) {214+ const version = args.get("version")215+ const freeze = args.get("freeze")216+ const action = args.get("action")217+218+ const initialState = createInitialState()219+220+ function benchMethod() {221+ setAutoFreezes[version](freeze)222+ setStrictIteration[version](false)223+ for (let i = 0; i < MAX; i++) {224+ reducers[version](initialState, actions[action](i))225+ }226+ setAutoFreezes[version](false)227+ }228+229+ yield benchMethod230+ }).args({231+ version: Object.keys(reducers),232+ freeze: [false, true],233+ action: [action]234+ })235+ })236+ }237+}238+239+async function main() {240+ createBenchmarks()241+ await run()242+ process.exit(0)243+}244+245+main()added:perf-testing/package.json+34 added
12345678910111213141516171819202122232425262728293031323334{ "name": "immer-perf-testing", "private": true, "version": "0.0.0", "type": "module", "scripts": { "benchmark": "cross-env NO_COLOR=true node --expose-gc --enable-source-maps dist/immutability-benchmarks.js", "build": "rolldown -c rolldown.config.js", "profile": "node --cpu-prof --expose-gc dist/immutability-benchmarks.js", "analyze-profile": "node read-cpuprofile.js", "build-immer": "cd .. && yarn build", "build-with-latest": "yarn build-immer && yarn build", "build-and-benchmark": "yarn build-with-latest && yarn benchmark", "build-and-profile": "yarn build-with-latest && yarn profile" }, "dependencies": { "cross-env": "^7.0.3", "immer5": "npm:immer@5", "immer6": "npm:immer@6", "immer7": "npm:immer@7", "immer8": "npm:immer@8", "immer9": "npm:immer@9", "immer10": "npm:immer@10", "mitata": "^1.0.34", "mutative": "^1.1.0", "mutative-compat": "^0.1.2", "pprof-format": "^2.2.1", "source-map": "^0.7.4", "source-map-support": "^0.5.21" }, "devDependencies": { "rolldown": "1.0.0-beta.23" }}added:perf-testing/read-cpuprofile.js+563 added
1+import fs from "fs"2+import {SourceMapConsumer} from "source-map"3+4+const profileName = process.argv[2]5+6+if (!profileName || !fs.existsSync(profileName)) {7+ console.error("Usage: node read-cpuprofile.js <path-to-cpuprofile>")8+ process.exit(1)9+}10+11+const profile = JSON.parse(fs.readFileSync(profileName, "utf8"))12+13+// Load multiple sourcemaps for better function name resolution14+const sourceMapConsumers = new Map()15+16+// Load main bundled sourcemap17+try {18+ const mainSourceMapPath = "dist/immutability-benchmarks.js.map"19+ if (fs.existsSync(mainSourceMapPath)) {20+ const sourceMapContent = fs.readFileSync(mainSourceMapPath, "utf8")21+ const consumer = await SourceMapConsumer.with(22+ sourceMapContent,23+ null,24+ consumer => consumer25+ )26+ sourceMapConsumers.set("main", consumer)27+ }28+} catch (error) {29+ console.warn("Could not load main sourcemap:", error.message)30+}31+32+const cjsMinMap = "immer.cjs.production.min.js.map"33+const cjsProdMap = "cjs/immer.cjs.production.js.map"34+35+const immerVersionMaps = {36+ 5: cjsMinMap,37+ 6: cjsMinMap,38+ 7: cjsMinMap,39+ 8: cjsMinMap,40+ 9: cjsMinMap,41+ 10: cjsProdMap,42+ "10Perf": cjsProdMap43+}44+45+// Load individual Immer version sourcemaps46+for (const [version, mapName] of Object.entries(immerVersionMaps)) {47+ try {48+ const immerParentPath =49+ version === "10Perf" ? ".." : `./node_modules/immer${version}`50+ const sourcemapPath = `${immerParentPath}/dist/${mapName}`51+ if (fs.existsSync(sourcemapPath)) {52+ const sourceMapContent = fs.readFileSync(sourcemapPath, "utf8")53+ const consumer = await SourceMapConsumer.with(54+ sourceMapContent,55+ null,56+ consumer => consumer57+ )58+ sourceMapConsumers.set(`v${version}`, consumer)59+ console.log(`Loaded sourcemap for Immer v${version}`)60+ }61+ } catch (error) {62+ console.warn(63+ `Could not load sourcemap for Immer v${version}:`,64+ error.message65+ )66+ }67+}68+69+console.log(`Loaded ${sourceMapConsumers.size} sourcemaps total\n`)70+71+// Function to extract Immer version from source path72+function extractImmerVersion(sourcePath) {73+ if (!sourcePath) return "unknown"74+75+ // Match patterns like: immer@7.0.15, immer@8.0.1, etc.76+ const versionMatch = sourcePath.match(/immer@(\d+(?:\.\d+)*)/)77+ if (versionMatch) return `v${versionMatch[1]}`78+79+ // Match patterns like: immer5, immer6, immer7, etc.80+ const simpleVersionMatch = sourcePath.match(/immer(\d+(?:Perf)?)/)81+ if (simpleVersionMatch) return `v${simpleVersionMatch[1]}`82+83+ // Check for local builds84+ if (sourcePath.includes("../../dist")) return "v10Perf"85+86+ return "unknown"87+}88+89+// Function to categorize function types for better analysis90+function categorizeFunctionType(functionName, sourcePath, location) {91+ const lowerName = functionName.toLowerCase()92+ const lowerSource = (sourcePath || "").toLowerCase()93+94+ // Node.js internal functions95+ const nodeInternals = [96+ "requirebuiltin",97+ "compileforiternalloader",98+ "writegeneric",99+ "writestream",100+ "getheapstatistics",101+ "open",102+ "read",103+ "write",104+ "stat",105+ "close",106+ "readdir",107+ "createreadstream",108+ "createwritestream",109+ "emitwarning",110+ "process",111+ "nextick",112+ "setimmediate",113+ "settimeout",114+ "clearimmediate",115+ "cleartimeout"116+ ]117+118+ if (nodeInternals.some(internal => lowerName.includes(internal))) {119+ return "node-internal"120+ }121+122+ // V8 engine functions123+ const v8Functions = [124+ "get",125+ "set",126+ "value",127+ "call",128+ "apply",129+ "bind",130+ "construct",131+ "defineProperty",132+ "getownpropertydescriptor",133+ "hasownproperty"134+ ]135+136+ if (v8Functions.some(v8fn => lowerName === v8fn) && location === "unknown") {137+ return "v8-internal"138+ }139+140+ // Benchmark/test code141+ const benchmarkFunctions = [142+ "benchmethod",143+ "main",144+ "immerreducer",145+ "vanillareducer",146+ "createimmerreducer",147+ "createbenchmarks",148+ "run",149+ "bench",150+ "group",151+ "summary"152+ ]153+154+ if (benchmarkFunctions.some(bench => lowerName.includes(bench))) {155+ return "benchmark"156+ }157+158+ // Third-party libraries (from node_modules)159+ if (160+ lowerSource.includes("node_modules") ||161+ sourcePath?.includes("node_modules")162+ ) {163+ return "third-party"164+ }165+166+ // Immer functions167+ if (168+ lowerName.includes("immer") ||169+ lowerName.includes("produce") ||170+ lowerName.includes("preparecopy") ||171+ lowerName.includes("finalize") ||172+ lowerName.includes("isdraft") ||173+ lowerName.includes("current") ||174+ lowerName.includes("proxy")175+ ) {176+ return "immer"177+ }178+179+ // Anonymous functions in known files180+ if (181+ functionName === "(anonymous)" &&182+ (location.includes("main.mjs") || location.includes("lib.mjs"))183+ ) {184+ return "benchmark"185+ }186+187+ return "application"188+}189+190+// Enhanced minified function name mapping based on common patterns191+const minifiedFunctionPatterns = {192+ // Common Immer function patterns across versions193+ n$1: "prepareCopy",194+ e$1: "finalize",195+ M$2: "finalizeProperty",196+ t$1: "isDraft",197+ r$1: "current",198+ o$1: "isPlainObject",199+ i$1: "shallowCopy",200+ a$1: "each",201+ u$1: "readPropFromProto",202+ s$1: "createProxy",203+ c$1: "createProxyProxy",204+ l$1: "markChanged",205+ f$1: "freeze",206+ d$1: "die"207+}208+209+// TODO Not sure if this actually helps210+function enhanceMinifiedName(functionName, version) {211+ // Try direct pattern matching first212+ if (minifiedFunctionPatterns[functionName]) {213+ return minifiedFunctionPatterns[functionName]214+ }215+216+ // Try pattern matching with version-specific adjustments217+ const basePattern = functionName.replace(/\$\d+$/, "")218+ for (const [pattern, realName] of Object.entries(minifiedFunctionPatterns)) {219+ if (pattern.startsWith(basePattern)) {220+ return realName221+ }222+ }223+224+ return functionName225+}226+227+// Function to resolve minified function names using appropriate sourcemap228+function resolveOriginalName(callFrame) {229+ if (!callFrame.url || !callFrame.url.includes("immutability-benchmarks.js")) {230+ return {231+ name: callFrame.functionName || "(anonymous)",232+ version: "unknown",233+ location: "unknown"234+ }235+ }236+237+ // First try main sourcemap238+ const mainConsumer = sourceMapConsumers.get("main")239+ if (mainConsumer) {240+ try {241+ const originalPosition = mainConsumer.originalPositionFor({242+ line: callFrame.lineNumber + 1, // V8 uses 0-based, sourcemap uses 1-based243+ column: callFrame.columnNumber244+ })245+246+ if (originalPosition.source) {247+ const sourceFile = originalPosition.source.split("/").pop() || "unknown"248+ let version = extractImmerVersion(originalPosition.source)249+ let functionName =250+ originalPosition.name || callFrame.functionName || "(anonymous)"251+ const location = `${sourceFile}:${originalPosition.line}`252+253+ // Enhanced version detection for better accuracy254+ if (version === "unknown") {255+ // Check for node_modules path pattern like ../node_modules/mitata/src/lib.mjs256+ const nodeModulesMatch = originalPosition.source.match(257+ /node_modules\/([^\/]+)/258+ )259+ if (nodeModulesMatch) {260+ version = nodeModulesMatch[1] // Extract library name like "mitata"261+ } else {262+ version = categorizeFunctionType(263+ functionName,264+ originalPosition.source,265+ location266+ )267+ }268+ }269+270+ // If we detected a specific Immer version, try to get better resolution from that version's sourcemap271+ if (version !== "unknown") {272+ const versionConsumer = sourceMapConsumers.get(version)273+ if (versionConsumer) {274+ try {275+ // For minified functions, try to resolve using the version-specific sourcemap276+ if (277+ functionName.length <= 3 ||278+ /^[a-zA-Z]\$?\d*$/.test(functionName)279+ ) {280+ const versionPosition = versionConsumer.originalPositionFor({281+ line: 1, // Most minified files are single line282+ column: callFrame.columnNumber283+ })284+285+ if (286+ versionPosition.name &&287+ versionPosition.name !== functionName288+ ) {289+ return {290+ name: versionPosition.name,291+ version: version,292+ location: `${versionPosition.source?.split("/").pop() ||293+ sourceFile}:${versionPosition.line}`294+ }295+ }296+ }297+ } catch (error) {298+ // Continue with main sourcemap result299+ }300+ }301+ }302+303+ return {304+ name: functionName,305+ version: version,306+ location: location307+ }308+ }309+ } catch (error) {310+ // Fallback to original name if sourcemap resolution fails311+ }312+ }313+314+ return {315+ name: callFrame.functionName || "(anonymous)",316+ version: "unknown",317+ location: "unknown"318+ }319+}320+321+// Extract function call statistics322+const functionStats = new Map()323+const versionStats = new Map() // Track stats by Immer version324+const categoryStats = new Map() // Track stats by function category325+const samples = profile.samples || []326+const timeDeltas = profile.timeDeltas || []327+328+// Process samples to count function calls329+samples.forEach((nodeId, index) => {330+ const node = profile.nodes[nodeId]331+ if (node && node.callFrame) {332+ const resolved = resolveOriginalName(node.callFrame)333+ const fileName = node.callFrame.url || ""334+ const sampleCount = timeDeltas[index] || 1335+336+ // Categorize the function337+ const category = categorizeFunctionType(338+ resolved.name,339+ resolved.source || fileName,340+ resolved.location341+ )342+343+ // Create key with version info344+ const key = `${resolved.name} [${resolved.version}] (${resolved.location})`345+ functionStats.set(key, (functionStats.get(key) || 0) + sampleCount)346+347+ // Track by version348+ if (!versionStats.has(resolved.version)) {349+ versionStats.set(resolved.version, new Map())350+ }351+ const versionMap = versionStats.get(resolved.version)352+ const versionKey = `${resolved.name} (${resolved.location})`353+ versionMap.set(versionKey, (versionMap.get(versionKey) || 0) + sampleCount)354+355+ // Track by category356+ if (!categoryStats.has(category)) {357+ categoryStats.set(category, new Map())358+ }359+ const categoryMap = categoryStats.get(category)360+ const categoryKey = `${resolved.name} [${resolved.version}] (${resolved.location})`361+ categoryMap.set(362+ categoryKey,363+ (categoryMap.get(categoryKey) || 0) + sampleCount364+ )365+ }366+})367+368+// Show breakdown by Immer version369+console.log("\n\nBreakdown by Immer Version:")370+console.log("===========================")371+const sortedVersions = Array.from(versionStats.entries())372+ .map(([version, funcMap]) => {373+ const totalSamples = Array.from(funcMap.values()).reduce(374+ (sum, count) => sum + count,375+ 0376+ )377+ return {version, totalSamples, functions: funcMap}378+ })379+ .sort((a, b) => b.totalSamples - a.totalSamples)380+381+// don't log "mitata" or "node"382+sortedVersions383+ .filter(sv => sv.version.startsWith("v"))384+ .forEach(({version, totalSamples, functions}) => {385+ if (totalSamples < 25000) return // Skip low-impact versions386+ console.log(`\n${version}: ${totalSamples} total samples`)387+ const topFunctions = Array.from(functions.entries())388+ .sort((a, b) => b[1] - a[1])389+ .slice(0, 20)390+391+ topFunctions.forEach(([func, samples], index) => {392+ console.log(` ${index + 1}. ${func}: ${samples} samples`)393+ })394+ })395+396+// Performance comparison between versions for key functions397+console.log("\n\nPerformance Comparison - Key Functions by Version:")398+console.log("==================================================")399+const keyFunctions = [400+ "prepareCopy",401+ "finalize",402+ "finalizeProperty",403+ "each",404+ "isPlainObject"405+]406+407+keyFunctions.forEach(funcName => {408+ console.log(`\n${funcName}:`)409+ const versionComparison = []410+411+ versionStats.forEach((functions, version) => {412+ let totalSamples = 0413+ functions.forEach((samples, func) => {414+ if (func.toLowerCase().includes(funcName.toLowerCase())) {415+ totalSamples += samples416+ }417+ })418+ if (totalSamples > 0) {419+ versionComparison.push({version, samples: totalSamples})420+ }421+ })422+423+ versionComparison424+ .sort((a, b) => b.samples - a.samples)425+ .forEach(({version, samples}) => {426+ console.log(` ${version}: ${samples} samples`)427+ })428+})429+430+// // Analysis by function category431+// console.log("\n\nBreakdown by Function Category:")432+// console.log("===============================")433+// const sortedCategories = Array.from(categoryStats.entries())434+// .map(([category, funcMap]) => {435+// const totalSamples = Array.from(funcMap.values()).reduce(436+// (sum, count) => sum + count,437+// 0438+// )439+// return {category, totalSamples, functions: funcMap}440+// })441+// .sort((a, b) => b.totalSamples - a.totalSamples)442+443+// const totalSamples = Array.from(functionStats.values()).reduce(444+// (sum, samples) => sum + samples,445+// 0446+// )447+448+// sortedCategories.forEach(({category, totalSamples: catSamples, functions}) => {449+// const percentage = ((catSamples / totalSamples) * 100).toFixed(1)450+// console.log(`\n${category}: ${catSamples} samples (${percentage}%)`)451+452+// // Show top functions in this category453+// const topFunctions = Array.from(functions.entries())454+// .sort((a, b) => b[1] - a[1])455+// .slice(0, 10)456+457+// topFunctions.forEach(([func, samples], index) => {458+// const funcPercentage = ((samples / catSamples) * 100).toFixed(1)459+// console.log(460+// ` ${index +461+// 1}. ${func}: ${samples} samples (${funcPercentage}% of category)`462+// )463+// })464+// })465+466+// // Analysis of truly uncategorized functions467+// console.log("\n\nAnalysis of uncategorized functions:")468+// console.log("====================================")469+470+// // Get functions that are still in the 'application' category with unknown version471+// // These are the ones that need better categorization472+// const uncategorizedStats = []473+// categoryStats.get("application")?.forEach((samples, funcKey) => {474+// if (funcKey.includes("[unknown]")) {475+// uncategorizedStats.push([funcKey, samples])476+// }477+// })478+479+// // Also check for any functions that might have been missed entirely480+// const versionUnknownStats = Array.from(functionStats.entries()).filter(481+// ([func]) => {482+// // Only include functions that are both version unknown AND not properly categorized483+// if (!func.includes("[unknown]")) return false484+485+// // Check if this function was categorized as something other than 'application'486+// const funcName = func.split(" [")[0]487+// const category = categorizeFunctionType(funcName, "", "unknown")488+// return category === "application"489+// }490+// )491+492+// // Combine and deduplicate493+// const allUncategorized = new Map()494+// uncategorizedStats.forEach(([func, samples]) => {495+// allUncategorized.set(func, samples)496+// })497+// versionUnknownStats.forEach(([func, samples]) => {498+// if (!allUncategorized.has(func)) {499+// allUncategorized.set(func, samples)500+// }501+// })502+503+// const sortedUncategorized = Array.from(allUncategorized.entries())504+// .sort((a, b) => b[1] - a[1])505+// .slice(0, 15)506+507+// if (sortedUncategorized.length > 0) {508+// console.log(509+// "Top uncategorized functions (may need better categorization logic):"510+// )511+// sortedUncategorized.forEach(([func, samples], index) => {512+// console.log(` ${index + 1}. ${func}: ${samples} samples`)513+// })514+515+// const totalUncategorizedSamples = sortedUncategorized.reduce(516+// (sum, [, samples]) => sum + samples,517+// 0518+// )519+// const totalSamples = Array.from(functionStats.values()).reduce(520+// (sum, samples) => sum + samples,521+// 0522+// )523+// const uncategorizedPercentage = (524+// (totalUncategorizedSamples / totalSamples) *525+// 100526+// ).toFixed(1)527+// console.log(528+// `\nTotal uncategorized samples: ${totalUncategorizedSamples} (${uncategorizedPercentage}% of total)`529+// )530+// } else {531+// console.log("All functions are properly categorized!")532+// }533+534+// Summary statistics535+console.log("\n\nSummary Statistics:")536+console.log("===================")537+const totalSamples = Array.from(functionStats.values()).reduce(538+ (sum, samples) => sum + samples,539+ 0540+)541+console.log(`Total CPU samples analyzed: ${totalSamples}`)542+543+const versionBreakdown = Array.from(versionStats.entries())544+ .map(([version, funcMap]) => {545+ const samples = Array.from(funcMap.values()).reduce(546+ (sum, count) => sum + count,547+ 0548+ )549+ const percentage = ((samples / totalSamples) * 100).toFixed(1)550+ return {version, samples, percentage}551+ })552+ .sort((a, b) => b.samples - a.samples)553+554+console.log("\nVersion breakdown:")555+versionBreakdown.forEach(({version, samples, percentage}) => {556+ if (samples < 25000) return // Skip low-impact versions557+ console.log(` ${version}: ${samples} samples (${percentage}%)`)558+})559+560+// Clean up sourcemap consumers561+sourceMapConsumers.forEach(consumer => {562+ consumer.destroy()563+})added:perf-testing/README.md+71 added
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071# Immer Performance Testing
This directory contains performance testing tools for Immer, allowing you to benchmark different versions of Immer and analyze CPU profiles to identify performance bottlenecks.
## Setup
1. **Install dependencies** (in this directory):
```bash yarn install ```
2. **Build Immer first**:
```bash yarn build-immer ```
3. **Build the benchmark bundle**: ```bash yarn build ```
Alternately, you can rebuild both Immer and the benchmarking script:
```bashyarn build-with-latest```
## Usage
### Running Benchmarks
To run the performance benchmarks:
```bash# Run basic benchmarks, with relative version speed comparisonsyarn benchmark
# Run the benchmarks, but also generate a CPU profileyarn profile```
### Analyzing CPU Profiles
After running `yarn profile`, you'll get a `.cpuprofile` file. To analyze it:
```bash# Analyze the most recent profileyarn analyze-profile your-profile.cpuprofile```
## What's Included
- **immutability-benchmarks.mjs**: Main benchmark script comparing different Immer versions- **read-cpuprofile.js**: Advanced CPU profile analyzer with sourcemap support- **rolldown.config.js**: Bundler configuration that eliminates `process.env` overhead
## Benchmark Versions
The benchmarks compare:
- **immer7-10**: Historical Immer versions- **immer10Perf**: Current development version (references `../dist`)- **vanilla**: Pure JavaScript implementations for baseline comparison
## Key Features
- **Sourcemap support**: CPU profile analysis includes original function names- **Version-aware analysis**: Breaks down performance by Immer version- **Production bundling**: Uses Rolldown to eliminate development overheadadded:perf-testing/rolldown.config.js+18 added
123456789101112131415161718export default { input: "immutability-benchmarks.mjs", output: { file: "dist/immutability-benchmarks.js", sourcemap: true }, platform: "node", define: { "process.env.NODE_ENV": JSON.stringify("production") }, external: ["bun:jsc", "@mitata/counters"], resolve: { alias: { immer10Perf: "../dist/immer.mjs", immer: "../dist/immer.mjs" } }}added:perf-testing/yarn.lock+275 added
1+# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.2+# yarn lockfile v13+4+5+"@emnapi/core@^1.4.3":6+ version "1.5.0"7+ resolved "https://registry.yarnpkg.com/@emnapi/core/-/core-1.5.0.tgz#85cd84537ec989cebb2343606a1ee663ce4edaf0"8+ integrity sha512-sbP8GzB1WDzacS8fgNPpHlp6C9VZe+SJP3F90W9rLemaQj2PzIuTEl1qDOYQf58YIpyjViI24y9aPWCjEzY2cg==9+ dependencies:10+ "@emnapi/wasi-threads" "1.1.0"11+ tslib "^2.4.0"12+13+"@emnapi/runtime@^1.4.3":14+ version "1.5.0"15+ resolved "https://registry.yarnpkg.com/@emnapi/runtime/-/runtime-1.5.0.tgz#9aebfcb9b17195dce3ab53c86787a6b7d058db73"16+ integrity sha512-97/BJ3iXHww3djw6hYIfErCZFee7qCtrneuLa20UXFCOTCfBM2cvQHjWJ2EG0s0MtdNwInarqCTz35i4wWXHsQ==17+ dependencies:18+ tslib "^2.4.0"19+20+"@emnapi/wasi-threads@1.1.0":21+ version "1.1.0"22+ resolved "https://registry.yarnpkg.com/@emnapi/wasi-threads/-/wasi-threads-1.1.0.tgz#60b2102fddc9ccb78607e4a3cf8403ea69be41bf"23+ integrity sha512-WI0DdZ8xFSbgMjR1sFsKABJ/C5OnRrjT06JXbZKexJGrDuPTzZdDYfFlsgcCXCyf+suG5QU2e/y1Wo2V/OapLQ==24+ dependencies:25+ tslib "^2.4.0"26+27+"@napi-rs/wasm-runtime@^0.2.10":28+ version "0.2.12"29+ resolved "https://registry.yarnpkg.com/@napi-rs/wasm-runtime/-/wasm-runtime-0.2.12.tgz#3e78a8b96e6c33a6c517e1894efbd5385a7cb6f2"30+ integrity sha512-ZVWUcfwY4E/yPitQJl481FjFo3K22D6qF0DuFH6Y/nbnE11GY5uguDxZMGXPQ8WQ0128MXQD7TnfHyK4oWoIJQ==31+ dependencies:32+ "@emnapi/core" "^1.4.3"33+ "@emnapi/runtime" "^1.4.3"34+ "@tybys/wasm-util" "^0.10.0"35+36+"@oxc-project/runtime@=0.75.0":37+ version "0.75.0"38+ resolved "https://registry.yarnpkg.com/@oxc-project/runtime/-/runtime-0.75.0.tgz#701c39b220d1604fb6eefd91648063eaf9ce8210"39+ integrity sha512-gzRmVI/vorsPmbDXt7GD4Uh2lD3rCOku/1xWPB4Yx48k0EP4TZmzQudWapjN4+7Vv+rgXr0RqCHQadeaMvdBuw==40+41+"@oxc-project/types@=0.75.0":42+ version "0.75.0"43+ resolved "https://registry.yarnpkg.com/@oxc-project/types/-/types-0.75.0.tgz#bd453282ab21d2c29429299e44e15ed72999ec92"44+ integrity sha512-QMW+06WOXs7+F301Y3X0VpmWhwuQVc/X/RP2zF9OIwvSMmsif3xURS2wxbakFIABYsytgBcHpUcFepVS0Qnd3A==45+46+"@rolldown/binding-darwin-arm64@1.0.0-beta.23":47+ version "1.0.0-beta.23"48+ resolved "https://registry.yarnpkg.com/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.0.0-beta.23.tgz#a549fb1813cf5a0274e6dc9af4ead059bc2980b0"49+ integrity sha512-rppgXFU4+dNDPQvPsfovUuYfDgMoATDomKGjIRR5bIU98BYkQF1fm+87trApilfWSosLQP9JsXOoUJO/EMrspQ==50+51+"@rolldown/binding-darwin-x64@1.0.0-beta.23":52+ version "1.0.0-beta.23"53+ resolved "https://registry.yarnpkg.com/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.0.0-beta.23.tgz#df2c64187242fb1eddec3e248e711be90e0b900b"54+ integrity sha512-aFo1v7GKysuwSAfsyNcBb9mj3M+wxMCu3N+DcTD5eAaz3mFex6l+2b/vLGaTWNrCMoWhRxV8rTaI1eFoMVdSuQ==55+56+"@rolldown/binding-freebsd-x64@1.0.0-beta.23":57+ version "1.0.0-beta.23"58+ resolved "https://registry.yarnpkg.com/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.0.0-beta.23.tgz#9fa3232cc9499aaaf40d7e71fb8fc5a68cf8b444"59+ integrity sha512-/NzbXIFIR5KR+fZ351K1qONekakXpiPhUX55ydP6ok8iKdG7bTbgs6dlMg7Ow0E2DKlQoTbZbPTUY3kTzmNrsQ==60+61+"@rolldown/binding-linux-arm-gnueabihf@1.0.0-beta.23":62+ version "1.0.0-beta.23"63+ resolved "https://registry.yarnpkg.com/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.0.0-beta.23.tgz#e592b649703e96dbfd34d8ae0479b3474c702fb6"64+ integrity sha512-vPnCHxjyR4ZVj9x6sLJMCAdBY99RPe6Mnwxb5BSaE6ccHzvy015xtsIEG7H9E9pVj3yfI/om77jrP+YA5IqL3w==65+66+"@rolldown/binding-linux-arm64-gnu@1.0.0-beta.23":67+ version "1.0.0-beta.23"68+ resolved "https://registry.yarnpkg.com/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.0.0-beta.23.tgz#a8ea0e24bb04ce530847f5c6bddcfd44b80e8a19"69+ integrity sha512-PFBBnj9JqLOL8gjZtoVGfOXe0PSpnPUXE+JuMcWz568K/p4Zzk7lDDHl7guD95wVtV89TmfaRwK2PWd9vKxHtg==70+71+"@rolldown/binding-linux-arm64-musl@1.0.0-beta.23":72+ version "1.0.0-beta.23"73+ resolved "https://registry.yarnpkg.com/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.0.0-beta.23.tgz#779ce3e3ac167315556613eeecd85951cd5c78de"74+ integrity sha512-KyQRLofVP78yUCXT90YmEzxK6I9VCBeOTSyOrs40Qx0Q0XwaGVwxo7sKj2SmnqxribdcouBA3CfNZC4ZNcyEnQ==75+76+"@rolldown/binding-linux-x64-gnu@1.0.0-beta.23":77+ version "1.0.0-beta.23"78+ resolved "https://registry.yarnpkg.com/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.0.0-beta.23.tgz#dee1986bb2701c1d2e72c6b3fab5555e0b140320"79+ integrity sha512-EubfEsJyjQbKK9j3Ez1hhbIOsttABb07Z7PhMRcVYW0wrVr8SfKLew9pULIMfcSNnoz8QqzoI4lOSmezJ9bYWw==80+81+"@rolldown/binding-linux-x64-musl@1.0.0-beta.23":82+ version "1.0.0-beta.23"83+ resolved "https://registry.yarnpkg.com/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.0.0-beta.23.tgz#fc1b8bbf8d89c30885a9ea075d43be30bd4ee033"84+ integrity sha512-MUAthvl3I/+hySltZuj5ClKiq8fAMqExeBnxadLFShwWCbdHKFd+aRjBxxzarPcnqbDlTaOCUaAaYmQTOTOHSg==85+86+"@rolldown/binding-wasm32-wasi@1.0.0-beta.23":87+ version "1.0.0-beta.23"88+ resolved "https://registry.yarnpkg.com/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.0.0-beta.23.tgz#3a1a9527877e062959c46137312642fa0a4d0458"89+ integrity sha512-YI7QMQU01QFVNTEaQt3ysrq+wGBwLdFVFEGO64CoZ3gTsr/HulU8gvgR+67coQOlQC9iO/Hm1bvkBtceLxKrnA==90+ dependencies:91+ "@napi-rs/wasm-runtime" "^0.2.10"92+93+"@rolldown/binding-win32-arm64-msvc@1.0.0-beta.23":94+ version "1.0.0-beta.23"95+ resolved "https://registry.yarnpkg.com/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.0.0-beta.23.tgz#178ddc36c7fa16ff84909f6cbd04721a323972e8"96+ integrity sha512-JdHx6Hli53etB/QsZL1tjpf4qa87kNcwPdx4iVicP/kL7po6k5bHoS5/l/nRRccwPh7BlPlB2uoEuTwJygJosQ==97+98+"@rolldown/binding-win32-ia32-msvc@1.0.0-beta.23":99+ version "1.0.0-beta.23"100+ resolved "https://registry.yarnpkg.com/@rolldown/binding-win32-ia32-msvc/-/binding-win32-ia32-msvc-1.0.0-beta.23.tgz#1013dc1ff79b48087da8e645ac22eac7739c82a5"101+ integrity sha512-rMZ0QBmcDND97+5unXxquKvSudV8tz6S7tBY3gOYlqMFEDIRX0BAgxaqQBQbq34ZxB9bXwGdjuau3LZHGreB6g==102+103+"@rolldown/binding-win32-x64-msvc@1.0.0-beta.23":104+ version "1.0.0-beta.23"105+ resolved "https://registry.yarnpkg.com/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.0.0-beta.23.tgz#64402bb345a99f675e633fe46617314e1733351f"106+ integrity sha512-0PqE7vGIpA+XT+qxAYJQKTrB5zz8vJiuCOInfY/ks/QOs6ZZ9Os8bdNkcpCy4rYo+GMZn0Q8CwyPu4uexWB1aA==107+108+"@rolldown/pluginutils@1.0.0-beta.23":109+ version "1.0.0-beta.23"110+ resolved "https://registry.yarnpkg.com/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.23.tgz#f896db6e79da076e1cb3b2eb13d0009824e3cb38"111+ integrity sha512-lLCP4LUecUGBLq8EfkbY2esGYyvZj5ee+WZG12+mVnQH48b46SVbwp+0vJkD+6Pnsc+u9SWarBV9sQ5mVwmb5g==112+113+"@tybys/wasm-util@^0.10.0":114+ version "0.10.0"115+ resolved "https://registry.yarnpkg.com/@tybys/wasm-util/-/wasm-util-0.10.0.tgz#2fd3cd754b94b378734ce17058d0507c45c88369"116+ integrity sha512-VyyPYFlOMNylG45GoAe0xDoLwWuowvf92F9kySqzYh8vmYm7D2u4iUJKa1tOUpS70Ku13ASrOkS4ScXFsTaCNQ==117+ dependencies:118+ tslib "^2.4.0"119+120+ansis@^4.0.0:121+ version "4.1.0"122+ resolved "https://registry.yarnpkg.com/ansis/-/ansis-4.1.0.tgz#cd43ecd3f814f37223e518291c0e0b04f2915a0d"123+ integrity sha512-BGcItUBWSMRgOCe+SVZJ+S7yTRG0eGt9cXAHev72yuGcY23hnLA7Bky5L/xLyPINoSN95geovfBkqoTlNZYa7w==124+125+buffer-from@^1.0.0:126+ version "1.1.2"127+ resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5"128+ integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==129+130+cross-env@^7.0.3:131+ version "7.0.3"132+ resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-7.0.3.tgz#865264b29677dc015ba8418918965dd232fc54cf"133+ integrity sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==134+ dependencies:135+ cross-spawn "^7.0.1"136+137+cross-spawn@^7.0.1:138+ version "7.0.6"139+ resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.6.tgz#8a58fe78f00dcd70c370451759dfbfaf03e8ee9f"140+ integrity sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==141+ dependencies:142+ path-key "^3.1.0"143+ shebang-command "^2.0.0"144+ which "^2.0.1"145+146+"immer10@npm:immer@10":147+ version "10.1.3"148+ resolved "https://registry.yarnpkg.com/immer/-/immer-10.1.3.tgz#e38a0b97db59949d31d9b381b04c2e441b1c3747"149+ integrity sha512-tmjF/k8QDKydUlm3mZU+tjM6zeq9/fFpPqH9SzWmBnVVKsPBg/V66qsMwb3/Bo90cgUN+ghdVBess+hPsxUyRw==150+151+"immer10Perf@file:..":152+ version "10.0.3-beta"153+154+"immer5@npm:immer@5":155+ version "5.3.6"156+ resolved "https://registry.yarnpkg.com/immer/-/immer-5.3.6.tgz#51eab8cbbeb13075fe2244250f221598818cac04"157+ integrity sha512-pqWQ6ozVfNOUDjrLfm4Pt7q4Q12cGw2HUZgry4Q5+Myxu9nmHRkWBpI0J4+MK0AxbdFtdMTwEGVl7Vd+vEiK+A==158+159+"immer6@npm:immer@6":160+ version "6.0.9"161+ resolved "https://registry.yarnpkg.com/immer/-/immer-6.0.9.tgz#b9dd69b8e69b3a12391e87db1e3ff535d1b26485"162+ integrity sha512-SyCYnAuiRf67Lvk0VkwFvwtDoEiCMjeamnHvRfnVDyc7re1/rQrNxuL+jJ7lA3WvdC4uznrvbmm+clJ9+XXatg==163+164+"immer7@npm:immer@7":165+ version "7.0.15"166+ resolved "https://registry.yarnpkg.com/immer/-/immer-7.0.15.tgz#dc3bc6db87401659d2e737c67a21b227c484a4ad"167+ integrity sha512-yM7jo9+hvYgvdCQdqvhCNRRio0SCXc8xDPzA25SvKWa7b1WVPjLwQs1VYU5JPXjcJPTqAa5NP5dqpORGYBQ2AA==168+169+"immer8@npm:immer@8":170+ version "8.0.4"171+ resolved "https://registry.yarnpkg.com/immer/-/immer-8.0.4.tgz#3a21605a4e2dded852fb2afd208ad50969737b7a"172+ integrity sha512-jMfL18P+/6P6epANRvRk6q8t+3gGhqsJ9EuJ25AXE+9bNTYtssvzeYbEd0mXRYWCmmXSIbnlpz6vd6iJlmGGGQ==173+174+"immer9@npm:immer@9":175+ version "9.0.21"176+ resolved "https://registry.yarnpkg.com/immer/-/immer-9.0.21.tgz#1e025ea31a40f24fb064f1fef23e931496330176"177+ integrity sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA==178+179+"immer@file:..":180+ version "10.0.3-beta"181+182+isexe@^2.0.0:183+ version "2.0.0"184+ resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10"185+ integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==186+187+mitata@^1.0.34:188+ version "1.0.34"189+ resolved "https://registry.yarnpkg.com/mitata/-/mitata-1.0.34.tgz#131f500d58c0bdc958095ab64f637d6fe1cf101a"190+ integrity sha512-Mc3zrtNBKIMeHSCQ0XqRLo1vbdIx1wvFV9c8NJAiyho6AjNfMY8bVhbS12bwciUdd1t4rj8099CH3N3NFahaUA==191+192+mutative-compat@^0.1.2:193+ version "0.1.2"194+ resolved "https://registry.yarnpkg.com/mutative-compat/-/mutative-compat-0.1.2.tgz#d1926069e42de35e3754458fcd37754339bf3bf6"195+ integrity sha512-XF+l3jkY4XGZ2IZzdkS0tu0DtYsKJZcSQcoxHu+gvHkNWS1Xd+B4yOLqbhFAx46jzuB4BWIN/SoXB1E5yDAKjg==196+197+mutative@^1.1.0:198+ version "1.2.0"199+ resolved "https://registry.yarnpkg.com/mutative/-/mutative-1.2.0.tgz#db75b60b436ad0a940e2e47bffb6661dd77c2754"200+ integrity sha512-1muFw45Lwjso6TSBGiXfbjKS01fVSD/qaqBfTo/gXgp79e8KM4Sa1XP/S4iN2/DvSdIZgjFJI+JIhC7eKf3GTg==201+202+path-key@^3.1.0:203+ version "3.1.1"204+ resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375"205+ integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==206+207+pprof-format@^2.2.1:208+ version "2.2.1"209+ resolved "https://registry.yarnpkg.com/pprof-format/-/pprof-format-2.2.1.tgz#64d32207fb46990349eb52825defb449d6ccc9b4"210+ integrity sha512-p4tVN7iK19ccDqQv8heyobzUmbHyds4N2FI6aBMcXz6y99MglTWDxIyhFkNaLeEXs6IFUEzT0zya0icbSLLY0g==211+212+rolldown@1.0.0-beta.23:213+ version "1.0.0-beta.23"214+ resolved "https://registry.yarnpkg.com/rolldown/-/rolldown-1.0.0-beta.23.tgz#2da1867b1f1ffdbcf77d9489495bb92ba4a3b373"215+ integrity sha512-+/TR2YSZxLTtDAfG9LHlYqsHO6jtvr9qxaRD77E+PCAQi5X47bJkgiZsjDmE1jGR19NfYegWToOvSe6E+8NfwA==216+ dependencies:217+ "@oxc-project/runtime" "=0.75.0"218+ "@oxc-project/types" "=0.75.0"219+ "@rolldown/pluginutils" "1.0.0-beta.23"220+ ansis "^4.0.0"221+ optionalDependencies:222+ "@rolldown/binding-darwin-arm64" "1.0.0-beta.23"223+ "@rolldown/binding-darwin-x64" "1.0.0-beta.23"224+ "@rolldown/binding-freebsd-x64" "1.0.0-beta.23"225+ "@rolldown/binding-linux-arm-gnueabihf" "1.0.0-beta.23"226+ "@rolldown/binding-linux-arm64-gnu" "1.0.0-beta.23"227+ "@rolldown/binding-linux-arm64-musl" "1.0.0-beta.23"228+ "@rolldown/binding-linux-x64-gnu" "1.0.0-beta.23"229+ "@rolldown/binding-linux-x64-musl" "1.0.0-beta.23"230+ "@rolldown/binding-wasm32-wasi" "1.0.0-beta.23"231+ "@rolldown/binding-win32-arm64-msvc" "1.0.0-beta.23"232+ "@rolldown/binding-win32-ia32-msvc" "1.0.0-beta.23"233+ "@rolldown/binding-win32-x64-msvc" "1.0.0-beta.23"234+235+shebang-command@^2.0.0:236+ version "2.0.0"237+ resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea"238+ integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==239+ dependencies:240+ shebang-regex "^3.0.0"241+242+shebang-regex@^3.0.0:243+ version "3.0.0"244+ resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172"245+ integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==246+247+source-map-support@^0.5.21:248+ version "0.5.21"249+ resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.21.tgz#04fe7c7f9e1ed2d662233c28cb2b35b9f63f6e4f"250+ integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==251+ dependencies:252+ buffer-from "^1.0.0"253+ source-map "^0.6.0"254+255+source-map@^0.6.0:256+ version "0.6.1"257+ resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"258+ integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==259+260+source-map@^0.7.4:261+ version "0.7.6"262+ resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.6.tgz#a3658ab87e5b6429c8a1f3ba0083d4c61ca3ef02"263+ integrity sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ==264+265+tslib@^2.4.0:266+ version "2.8.1"267+ resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.8.1.tgz#612efe4ed235d567e8aba5f2a5fab70280ade83f"268+ integrity sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==269+270+which@^2.0.1:271+ version "2.0.2"272+ resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1"273+ integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==274+ dependencies:275+ isexe "^2.0.0"modified:.gitignore+1 added-1 removed
56 unmodified lines57 # dotenv environment variables file58 .env59 60 .idea61-/dist/61+/dist*62 website/build63 website/.docusaurus64 .rts2*65 .gitpod.yml2 unmodified lines