Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
114 changes: 114 additions & 0 deletions metrics/arktype.heap.after.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
{
"objectTypeCounts": {
"string": 116051,
"Function": 99724,
"Array": 74625,
"Structure": 70226,
"Object": 61007,
"FunctionExecutable": 38609,
"UnlinkedFunctionExecutable": 38323,
"JSLexicalEnvironment": 36478,
"FunctionRareData": 17279,
"FunctionCodeBlock": 16211,
"UnlinkedFunctionCodeBlock": 15837,
"StructureRareData": 870,
"SymbolTable": 541,
"NativeExecutable": 446,
"InternalPromise": 355,
"Immutable Butterfly": 211,
"PropertyTable": 199,
"RegExp": 133,
"Map": 121,
"JSModuleEnvironment": 117,
"JSSourceCode": 117,
"ModuleRecord": 117,
"ModuleProgramExecutable": 116,
"ModuleProgramCodeBlock": 115,
"UnlinkedModuleProgramCodeBlock": 110,
"GetterSetter": 109,
"CustomGetterSetter": 96,
"JSPropertyNameEnumerator": 75,
"DOMAttributeGetterSetter": 41,
"StructureChain": 27,
"symbol": 20,
"Callee": 3,
"ArrayBuffer": 2,
"AsyncFunction": 2,
"AsyncGeneratorFunction": 2,
"BigInt": 2,
"FormData": 2,
"GeneratorFunction": 2,
"Generator": 2,
"Headers": 2,
"Performance": 2,
"SparseArrayValueMap": 2,
"URL": 2,
"Array Iterator": 1,
"AsyncGenerator": 1,
"AsyncIterator": 1,
"BigInt64ArrayPrototype": 1,
"BigUint64ArrayPrototype": 1,
"Blob": 1,
"Boolean": 1,
"Bun": 1,
"EventEmitter": 1,
"EventTarget": 1,
"File": 1,
"FinalizationRegistry": 1,
"Float16ArrayPrototype": 1,
"Float32ArrayPrototype": 1,
"Float64ArrayPrototype": 1,
"GlobalObject": 1,
"Int16ArrayPrototype": 1,
"Int32ArrayPrototype": 1,
"Int8ArrayPrototype": 1,
"InternalFieldTuple": 1,
"InternalModuleRegistry": 1,
"InternalPromisePrototype": 1,
"Intl": 1,
"Iterator Helper": 1,
"Iterator": 1,
"JSGlobalLexicalEnvironment": 1,
"JSGlobalProxy": 1,
"JSON": 1,
"Map Iterator": 1,
"Math": 1,
"ModuleLoader": 1,
"ModuleNamespaceObject": 1,
"Number": 1,
"ProcessBindingConstants": 1,
"Process": 1,
"Promise": 1,
"Prototype": 1,
"Request": 1,
"Response": 1,
"Set Iterator": 1,
"Set": 1,
"ShadowRealm": 1,
"String Iterator": 1,
"String": 1,
"Symbol": 1,
"TextEncoderStreamEncoder": 1,
"Uint16ArrayPrototype": 1,
"Uint32ArrayPrototype": 1,
"Uint8ArrayPrototype": 1,
"Uint8ClampedArrayPrototype": 1,
"WeakMap": 1,
"WeakRef": 1,
"WeakSet": 1,
"WebAssembly": 1,
"console": 1
},
"protectedObjectTypeCounts": {
"UnlinkedFunctionExecutable": 1903,
"UnlinkedModuleProgramCodeBlock": 97,
"GlobalObject": 1
},
"heapSize": 77008258,
"heapCapacity": 104685746,
"extraMemorySize": 26599506,
"objectCount": 698315,
"protectedObjectCount": 2001,
"globalObjectCount": 1,
"protectedGlobalObjectCount": 1
}
115 changes: 115 additions & 0 deletions metrics/arktype.heap.before.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
{
"objectTypeCounts": {
"string": 214279,
"Array": 51489,
"Function": 39309,
"Object": 35013,
"JSLexicalEnvironment": 33608,
"ArrayIterator": 25330,
"Immutable Butterfly": 10365,
"Structure": 10176,
"FunctionExecutable": 5716,
"UnlinkedFunctionExecutable": 5290,
"FunctionRareData": 4505,
"PropertyTable": 2188,
"SymbolTable": 1839,
"InternalPromise": 1139,
"FunctionCodeBlock": 1034,
"StructureRareData": 892,
"UnlinkedFunctionCodeBlock": 746,
"NativeExecutable": 405,
"Generator": 337,
"AsyncFunction": 335,
"RegExp": 229,
"Map": 121,
"Callee": 117,
"JSModuleEnvironment": 117,
"JSSourceCode": 117,
"ModuleRecord": 117,
"ModuleProgramExecutable": 116,
"ModuleProgramCodeBlock": 115,
"UnlinkedModuleProgramCodeBlock": 110,
"GetterSetter": 109,
"CustomGetterSetter": 96,
"JSPropertyNameEnumerator": 68,
"DOMAttributeGetterSetter": 41,
"StructureChain": 26,
"symbol": 20,
"Set": 3,
"ArrayBuffer": 2,
"AsyncGeneratorFunction": 2,
"BigInt": 2,
"FormData": 2,
"GeneratorFunction": 2,
"Headers": 2,
"Performance": 2,
"URL": 2,
"Array Iterator": 1,
"AsyncGenerator": 1,
"AsyncIterator": 1,
"BigInt64ArrayPrototype": 1,
"BigUint64ArrayPrototype": 1,
"Blob": 1,
"Boolean": 1,
"Bun": 1,
"Error": 1,
"EventEmitter": 1,
"EventTarget": 1,
"File": 1,
"FinalizationRegistry": 1,
"Float16ArrayPrototype": 1,
"Float32ArrayPrototype": 1,
"Float64ArrayPrototype": 1,
"GlobalObject": 1,
"Int16ArrayPrototype": 1,
"Int32ArrayPrototype": 1,
"Int8ArrayPrototype": 1,
"InternalFieldTuple": 1,
"InternalModuleRegistry": 1,
"InternalPromisePrototype": 1,
"Intl": 1,
"Iterator Helper": 1,
"Iterator": 1,
"JSGlobalLexicalEnvironment": 1,
"JSGlobalProxy": 1,
"JSON": 1,
"Map Iterator": 1,
"ModuleLoader": 1,
"ModuleNamespaceObject": 1,
"Number": 1,
"ProcessBindingConstants": 1,
"Process": 1,
"Promise": 1,
"Prototype": 1,
"Request": 1,
"Response": 1,
"Set Iterator": 1,
"ShadowRealm": 1,
"SparseArrayValueMap": 1,
"String Iterator": 1,
"String": 1,
"Symbol": 1,
"TextEncoderStreamEncoder": 1,
"Uint16ArrayPrototype": 1,
"Uint32ArrayPrototype": 1,
"Uint8ArrayPrototype": 1,
"Uint8ClampedArrayPrototype": 1,
"WeakMap": 1,
"WeakRef": 1,
"WeakSet": 1,
"WebAssembly": 1,
"console": 1
},
"protectedObjectTypeCounts": {
"UnlinkedModuleProgramCodeBlock": 110,
"UnlinkedFunctionExecutable": 96,
"GlobalObject": 1
},
"heapSize": 238877,
"heapCapacity": 23103309,
"extraMemorySize": 40589,
"objectCount": 2941,
"protectedObjectCount": 207,
"globalObjectCount": 1,
"protectedGlobalObjectCount": 1
}
137 changes: 137 additions & 0 deletions metrics/suretype.heap.after.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
{
"objectTypeCounts": {
"string": 5198,
"Function": 3184,
"Structure": 3145,
"FunctionExecutable": 2388,
"UnlinkedFunctionExecutable": 2088,
"NativeExecutable": 788,
"FunctionCodeBlock": 733,
"Object": 568,
"SymbolTable": 554,
"UnlinkedFunctionCodeBlock": 511,
"JSLexicalEnvironment": 344,
"StructureRareData": 331,
"InternalPromise": 305,
"RegExp": 301,
"GetterSetter": 275,
"Immutable Butterfly": 224,
"Array": 222,
"FunctionRareData": 221,
"PropertyTable": 190,
"CustomGetterSetter": 138,
"Map": 110,
"JSModuleEnvironment": 102,
"JSSourceCode": 102,
"ModuleRecord": 102,
"symbol": 90,
"ModuleProgramExecutable": 86,
"ModuleProgramCodeBlock": 85,
"UnlinkedModuleProgramCodeBlock": 85,
"StructureChain": 78,
"AsyncFunction": 69,
"Module": 57,
"UnlinkedProgramCodeBlock": 53,
"ProgramCodeBlock": 51,
"ProgramExecutable": 51,
"JSPropertyNameEnumerator": 37,
"SparseArrayValueMap": 37,
"DOMAttributeGetterSetter": 34,
"Set": 9,
"Promise": 7,
"ModuleNamespaceObject": 5,
"FileSink": 4,
"GeneratorFunction": 4,
"Arguments": 3,
"Callee": 3,
"Generator": 3,
"JSAsyncGeneratorFunction": 3,
"ReadableStream": 3,
"ArrayBuffer": 2,
"AsyncGeneratorFunction": 2,
"BigInt": 2,
"Blob": 2,
"FileInternalReadableStreamSource": 2,
"ImportMeta": 2,
"NodeJSFS": 2,
"Performance": 2,
"StringDecoder": 2,
"TextEncoder": 2,
"URLSearchParams": 2,
"URL": 2,
"WeakMap": 2,
"WeakSet": 2,
"Array Iterator": 1,
"AsyncGenerator": 1,
"AsyncIterator": 1,
"BigInt64ArrayPrototype": 1,
"BigUint64ArrayPrototype": 1,
"Boolean": 1,
"Buffer": 1,
"Bun": 1,
"Dirent": 1,
"EventEmitter": 1,
"EventTarget": 1,
"File": 1,
"FinalizationRegistry": 1,
"Float16ArrayPrototype": 1,
"Float32ArrayPrototype": 1,
"Float64ArrayPrototype": 1,
"GlobalObject": 1,
"Int16ArrayPrototype": 1,
"Int32ArrayPrototype": 1,
"Int8ArrayPrototype": 1,
"InternalFieldTuple": 1,
"InternalModuleRegistry": 1,
"InternalPromisePrototype": 1,
"Intl": 1,
"Iterator Helper": 1,
"Iterator": 1,
"JSGlobalLexicalEnvironment": 1,
"JSGlobalProxy": 1,
"JSON": 1,
"Map Iterator": 1,
"Math": 1,
"ModuleLoader": 1,
"ModulePrototype": 1,
"NextTickQueue": 1,
"Number": 1,
"ProcessBindingConstants": 1,
"Process": 1,
"Prototype": 1,
"ProxyObject": 1,
"Proxy": 1,
"Reflect": 1,
"Set Iterator": 1,
"ShadowRealm": 1,
"Stats": 1,
"String Iterator": 1,
"String": 1,
"Symbol": 1,
"TextDecoder": 1,
"TextEncoderStreamEncoder": 1,
"Uint16ArrayPrototype": 1,
"Uint32ArrayPrototype": 1,
"Uint8ArrayPrototype": 1,
"Uint8Array": 1,
"Uint8ClampedArrayPrototype": 1,
"WeakRef": 1,
"WebAssembly": 1,
"console": 1,
"require": 1,
"resolve": 1
},
"protectedObjectTypeCounts": {
"UnlinkedModuleProgramCodeBlock": 85,
"UnlinkedProgramCodeBlock": 53,
"UnlinkedFunctionExecutable": 5,
"GlobalObject": 1
},
"heapSize": 4831195,
"heapCapacity": 7239291,
"extraMemorySize": 2868747,
"objectCount": 24936,
"protectedObjectCount": 144,
"globalObjectCount": 1,
"protectedGlobalObjectCount": 1
}
Loading