Files
OxideJS-New/BENCHMARK_BASELINE.md
T

12 KiB

Test Name Wall(ms) Comp(ms) Exec(ms) Instrs GC Ct IC Rate Sess Objs Sess B Peak B Ret B

arith_ops 292.31 0.330 291.981 4700023 0 0.0% 0 0 0 0 array_filter 671.88 0.332 671.545 55739 1 99.9% 1586 364264 417620 2744 array_for_each 687.85 0.368 687.482 35737 1 99.9% 1536 354168 425828 960 array_index_get 126.51 0.299 126.214 1817037 0 99.9% 0 38000 38000 8160 array_index_set 97.82 0.277 97.541 1517035 0 99.9% 0 38000 38000 8160 array_join 519.66 0.286 519.374 4140029 0 100.0% 0 9380000 9380000 291 array_literal 88.53 0.235 88.297 1500025 0 100.0% 0 0 184 184 array_map 640.06 0.344 639.717 55739 1 99.9% 1586 367464 417620 4344 array_push_pop 1256.85 0.294 1256.556 10200029 0 100.0% 0 20900000 20900000 472 array_reduce 669.22 0.351 668.863 57739 1 99.9% 1536 354200 425828 1960 array_slice 75.83 0.321 75.510 79739 0 99.9% 0 10401800 10401800 4344 array_sort 132.42 0.335 132.087 17939 0 99.7% 1000 1888800 1888800 4344 branch_if 144.76 0.253 144.506 2816690 0 0.0% 0 0 0 0 branch_switch 138.35 0.300 138.046 3000023 0 0.0% 0 0 0 0 call_args 95.90 0.349 95.549 880029 0 0.0% 2 307 595 595 call_closure 68.26 0.281 67.977 500044 0 0.0% 4 613 1221 1221 call_method 76.85 0.269 76.581 580032 0 50.0% 2 307 771 771 call_new_proto 137.85 0.301 137.553 800037 0 33.3% 4 614 1390 1390 call_recursion 997.96 0.288 997.675 5527429 1 0.0% 3 1027 1027 595 call_this 127.50 0.347 127.147 780034 0 50.0% 4 624 1384 1384 cmp_ops 423.75 0.241 423.503 5800025 0 0.0% 0 0 0 0 code_forge 782.39 0.233 782.152 110018 0 0.0% 10000 1651670 1651670 0 coercion_boolean 255.43 0.256 255.171 4450023 0 0.0% 0 0 0 0 coercion_concat 196.16 0.296 195.865 2300025 0 0.0% 0 3888890 3888890 39 coercion_nullish 359.31 0.314 359.001 5100032 0 50.0% 0 0 168 168 coercion_tonumber 138.29 0.280 138.014 2600023 0 0.0% 0 0 0 0 coercion_toprimitive 200.85 0.325 200.521 500025 1 0.0% 18343 4075840 9604479 1591 coercion_tostring 375.71 0.311 375.396 4600025 0 0.0% 0 22200000 22200000 186 gc_array 568.75 0.326 568.420 4390027 0 100.0% 0 9500000 9500000 560 gc_object 129.88 0.276 129.604 1550025 0 100.0% 0 0 176 176 gc_string 39.54 0.228 39.310 460025 0 0.0% 0 788890 788890 40 gc_string_long 2015.98 0.196 2015.788 23000025 2 0.0% 0 7334531 33554441 41 ic_cache 53.16 0.419 52.736 554039 0 78.9% 0 380000 1802832 1802832 ic_polymorphic 226.85 0.371 226.484 4033387 0 100.0% 0 0 552 552 loop_do_while 235.37 0.231 235.138 3000019 0 0.0% 0 0 0 0 loop_for 1201.43 0.236 1201.195 16000023 0 0.0% 0 0 0 0 loop_for_in 637.77 0.521 637.250 7591739 0 0.0% 0 3490 3490 960 loop_for_of 311.52 0.490 311.026 3652739 0 99.0% 0 111800 111800 960 loop_for_of_string 217.30 0.319 216.984 2726339 0 0.0% 0 58150 58150 132 loop_index 410.42 0.370 410.048 6367739 0 100.0% 0 3800 3800 960 loop_while 1213.66 0.224 1213.438 16000023 0 0.0% 0 0 0 0 loop_while_index 424.75 0.595 424.150 6667739 0 100.0% 0 3800 3800 960 map_ops 768.64 0.496 768.140 12650027 0 100.0% 0 0 672 672 math_ops 458.98 0.399 458.576 6500023 0 0.0% 0 0 0 0 mem_array_grow 384.49 0.276 384.214 3800024 0 0.0% 0 0 8160 8160 mem_closure_chain 124.14 0.569 123.574 590034 0 0.0% 40000 6718890 10479658 10479658 mem_cross_call_retain 256.70 0.385 256.314 1590032 0 25.0% 2 3810453 8431077 8431077 mem_map_retain 59.05 0.260 58.788 600021 0 100.0% 0 1977780 6436740 6436740 mem_object_graph 120.98 0.356 120.624 884727 0 0.0% 2 312 6029720 6029720 mem_set_retain 43.20 0.223 42.975 460021 0 100.0% 0 1088890 4769098 4769098 mem_string_accum 109.56 0.222 109.333 960020 0 0.0% 0 2744473 3064633 3064633 mem_string_rope 2.29 0.188 2.101 16025 6 0.0% 0 124184000 124184000 124184000 member_compound 303.24 0.340 302.896 4400076 0 100.0% 0 0 1064 1064 object_keys 492.55 0.441 492.113 3740027 0 100.0% 0 13800000 13800000 320 prop_access 170.65 0.278 170.374 2800036 0 100.0% 0 0 192 192 prop_bracket 161.16 0.295 160.861 2100036 0 100.0% 0 0 184 184 prop_delete 55.56 0.297 55.259 480034 0 50.0% 0 0 184 184 prop_dynamic 77.61 0.272 77.341 1100028 0 100.0% 0 0 168 168 prop_nested 136.23 0.282 135.945 1550025 0 100.0% 0 0 504 504 prop_set 204.89 0.235 204.654 3200032 0 100.0% 0 0 176 176 property 150.99 0.305 150.680 111035 0 0.0% 0 231780 231780 24160 set_ops 668.58 0.288 668.288 9950027 0 90.9% 0 0 288 288 string_build 1735.11 0.391 1734.715 16560027 4 0.0% 0 6791197 33554520 122 string_case 185.22 0.249 184.970 1600028 0 0.0% 0 7600000 7600000 0 string_char 299.02 0.247 298.770 3800025 0 0.0% 0 0 0 0 string_concat 172.78 0.352 172.422 1800031 0 0.0% 0 1900000 1900000 38 string_indexof 87.36 0.215 87.144 1100028 0 0.0% 0 0 0 0 string_replace 53.14 0.288 52.852 600030 0 0.0% 0 1320000 1320000 66 string_replace_fn 789.77 0.408 789.367 64987 3 0.0% 294 1619217 33571047 12433 string_split 99.13 0.249 98.877 540030 0 100.0% 0 17160000 17160000 1226 string_substring 122.30 0.259 122.040 1500030 0 0.0% 0 2150000 2150000 43 string_trim 41.73 0.207 41.521 460028 0 0.0% 0 1560000 1560000 0 try_catch_ok 57.60 0.226 57.379 1050023 0 0.0% 0 0 0 0 try_catch_throw 51.63 0.289 51.346 580023 0 0.0% 0 720000 720000 0 typeof_ops 284.89 0.226 284.660 4300023 0 0.0% 0 0 0 0 unary_ops 271.73 0.318 271.415 3700023 0 0.0% 0 0 0 0

内存基准用例(mem_*):

mem_object_graph 大型对象图留存:15 层满二叉树 32767 节点整体驻留 session 堆 mem_string_accum 字符串累积留存:40000 个互不相同的字符串驻留数组(interner 压力) mem_closure_chain 闭包/upvalue 长链:10000 层闭包各自捕获前层闭包与 payload 驻留 mem_array_grow 数组增缩容量:扩到 200000 元素后截回 1000,观测元素向量容量是否回落(账目按 Vec capacity 计) mem_cross_call_retain 跨调用长存活数据:全局 store 经 30000 次调用累积 30000 条记录 mem_map_retain 原生盒边持有:Map 持 20000 组字符串键 + 对象值 mem_set_retain 原生盒边持有:Set 持 20000 个对象(各带 payload 字符串) mem_string_rope 拼接 rope 链留存:重复二元拼接形成深 Cons 链(账目按逻辑长度计,数值高于实际足迹) 口径:Peak B/Ret B 为 session 堆账目(对象头 + 堆数据 + 存活串/BigInt);JSON 的 epoch_objects/epoch_bytes 为恒零锚字段(epoch 分配器退役后保留 schema 兼容), 不计入字节账目。Peak B 为顶层指令边界采样的 session arena 高水位;单指令内瞬态 不计。Ret B 为 workload 后强制完整 GC 的真存活集。