opencode-live-compact 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +143 -139
- package/README.zh-CN.md +144 -139
- package/dist/engine/checkpoint.d.ts +1 -1
- package/dist/engine/checkpoint.js +5 -5
- package/dist/engine/checkpoint.js.map +1 -1
- package/dist/engine/reducer.js +29 -21
- package/dist/engine/reducer.js.map +1 -1
- package/dist/engine/span.js +7 -1
- package/dist/engine/span.js.map +1 -1
- package/dist/hooks/context.d.ts +4 -0
- package/dist/hooks/context.js +21 -12
- package/dist/hooks/context.js.map +1 -1
- package/dist/hooks/replacement.d.ts +1 -1
- package/dist/hooks/replacement.js +59 -13
- package/dist/hooks/replacement.js.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/metrics/collector.d.ts +8 -1
- package/dist/metrics/collector.js +27 -2
- package/dist/metrics/collector.js.map +1 -1
- package/dist/recovery/restore.d.ts +9 -3
- package/dist/recovery/restore.js +4 -3
- package/dist/recovery/restore.js.map +1 -1
- package/dist/recovery/store.d.ts +9 -0
- package/dist/recovery/store.js +50 -20
- package/dist/recovery/store.js.map +1 -1
- package/docs/architecture.md +62 -52
- package/docs/assets/benchmarks-en.svg +46 -46
- package/docs/assets/benchmarks-zh-CN.svg +46 -46
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" width="1120" height="920" viewBox="0 0 1120 920" role="img" aria-labelledby="title desc" xml:lang="en">
|
|
2
2
|
<title id="title">OpenCode Live Compact: Aider and Web-Bench side by side</title>
|
|
3
|
-
<desc id="desc">Aider passed 150/150 in both with
|
|
3
|
+
<desc id="desc">Aider passed 150/150 in both with 14.3% lower estimated cost. Web-Bench passed 20/20 stages and 59/59 final tests in both with 42.1% lower estimated cost. Web-Bench pause benefit is inconclusive because Original OpenCode never compacted natively.</desc>
|
|
4
4
|
<style>text{font-family:Consolas,SFMono-Regular,Liberation Mono,Noto Sans SC,Microsoft YaHei,monospace;font-variant-numeric:tabular-nums}</style>
|
|
5
5
|
<rect x="0.5" y="0.5" width="1119" height="919" fill="#0b0b0b" stroke="#292929"/>
|
|
6
6
|
<text x="28" y="34" font-size="18" fill="#ededed" >opencode / live compact</text>
|
|
@@ -10,97 +10,97 @@
|
|
|
10
10
|
<text x="28" y="96" font-size="27" fill="#ededed" font-weight="600">Aider Polyglot</text>
|
|
11
11
|
<text x="28" y="122" font-size="15" fill="#969696" >150 short exercises / five languages</text>
|
|
12
12
|
<text x="28" y="162" font-size="13" fill="#969696" >ESTIMATED API COST</text>
|
|
13
|
-
<text x="25" y="222" font-size="62" fill="#8cdb9f" font-weight="600" letter-spacing="-3">-
|
|
14
|
-
<text x="532" y="196" font-size="22" fill="#bdbdbd" text-anchor="end">$6.
|
|
15
|
-
<text x="532" y="225" font-size="22" fill="#8cdb9f" text-anchor="end">→ $5.
|
|
13
|
+
<text x="25" y="222" font-size="62" fill="#8cdb9f" font-weight="600" letter-spacing="-3">-14.3%</text>
|
|
14
|
+
<text x="532" y="196" font-size="22" fill="#bdbdbd" text-anchor="end">$6.295</text>
|
|
15
|
+
<text x="532" y="225" font-size="22" fill="#8cdb9f" text-anchor="end">→ $5.397</text>
|
|
16
16
|
<text x="28" y="248" font-size="14" fill="#969696" >Original OpenCode → Live Compact</text>
|
|
17
17
|
<rect x="28" y="268" width="504" height="57" fill="#151b17"/>
|
|
18
18
|
<text x="42" y="291" font-size="19" fill="#8cdb9f" >150/150 exercises passed in both</text>
|
|
19
|
-
<text x="42" y="313" font-size="13" fill="#969696" >First graded attempt:
|
|
19
|
+
<text x="42" y="313" font-size="13" fill="#969696" >First graded attempt: 149/150 → <tspan fill="#8cdb9f">150/150</tspan></text>
|
|
20
20
|
<text x="28" y="357" font-size="16" fill="#ededed" >Peak context</text>
|
|
21
|
-
<text x="532" y="357" font-size="14" fill="#8cdb9f" text-anchor="end">-
|
|
21
|
+
<text x="532" y="357" font-size="14" fill="#8cdb9f" text-anchor="end">-2.7%</text>
|
|
22
22
|
<rect x="28" y="370" width="357" height="11" fill="#696969"/>
|
|
23
|
-
<rect x="28" y="392" width="
|
|
23
|
+
<rect x="28" y="392" width="347.4273067217017" height="11" fill="#8cdb9f"/>
|
|
24
24
|
<text x="532" y="381" font-size="17" fill="#bdbdbd" text-anchor="end">783K</text>
|
|
25
|
-
<text x="532" y="403" font-size="17" fill="#8cdb9f" text-anchor="end">
|
|
25
|
+
<text x="532" y="403" font-size="17" fill="#8cdb9f" text-anchor="end">762K</text>
|
|
26
26
|
<text x="28" y="439" font-size="16" fill="#ededed" >Wall-clock time</text>
|
|
27
|
-
<text x="532" y="439" font-size="14" fill="#8cdb9f" text-anchor="end">-
|
|
27
|
+
<text x="532" y="439" font-size="14" fill="#8cdb9f" text-anchor="end">-34.2%</text>
|
|
28
28
|
<rect x="28" y="452" width="357" height="11" fill="#696969"/>
|
|
29
|
-
<rect x="28" y="474" width="
|
|
30
|
-
<text x="532" y="463" font-size="17" fill="#bdbdbd" text-anchor="end">5,
|
|
31
|
-
<text x="532" y="485" font-size="17" fill="#8cdb9f" text-anchor="end">
|
|
29
|
+
<rect x="28" y="474" width="234.93338833693656" height="11" fill="#8cdb9f"/>
|
|
30
|
+
<text x="532" y="463" font-size="17" fill="#bdbdbd" text-anchor="end">5,526 s</text>
|
|
31
|
+
<text x="532" y="485" font-size="17" fill="#8cdb9f" text-anchor="end">3,637 s</text>
|
|
32
32
|
<path d="M28 505h504" stroke="#292929"/>
|
|
33
33
|
<text x="28" y="533" font-size="13" fill="#969696" >INPUT / CACHE</text>
|
|
34
34
|
<text x="532" y="533" font-size="12" fill="#969696" text-anchor="end">Original → Live Compact</text>
|
|
35
35
|
<text x="28" y="565" font-size="16" fill="#969696" >Cached input</text>
|
|
36
|
-
<text x="384" y="565" font-size="18" fill="#bdbdbd" text-anchor="end">
|
|
36
|
+
<text x="384" y="565" font-size="18" fill="#bdbdbd" text-anchor="end">302.39M</text>
|
|
37
37
|
<text x="404" y="565" font-size="17" fill="#696969" >→</text>
|
|
38
|
-
<text x="532" y="565" font-size="18" fill="#8cdb9f" text-anchor="end">
|
|
38
|
+
<text x="532" y="565" font-size="18" fill="#8cdb9f" text-anchor="end">265.96M</text>
|
|
39
39
|
<text x="28" y="596" font-size="16" fill="#969696" >Non-cached*</text>
|
|
40
|
-
<text x="384" y="596" font-size="18" fill="#bdbdbd" text-anchor="end">
|
|
40
|
+
<text x="384" y="596" font-size="18" fill="#bdbdbd" text-anchor="end">2.330M</text>
|
|
41
41
|
<text x="404" y="596" font-size="17" fill="#696969" >→</text>
|
|
42
|
-
<text x="532" y="596" font-size="18" fill="#
|
|
42
|
+
<text x="532" y="596" font-size="18" fill="#8cdb9f" text-anchor="end">1.170M</text>
|
|
43
43
|
<text x="28" y="627" font-size="16" fill="#969696" >Cache hit rate</text>
|
|
44
|
-
<text x="384" y="627" font-size="18" fill="#bdbdbd" text-anchor="end">99.
|
|
44
|
+
<text x="384" y="627" font-size="18" fill="#bdbdbd" text-anchor="end">99.24%</text>
|
|
45
45
|
<text x="404" y="627" font-size="17" fill="#696969" >→</text>
|
|
46
|
-
<text x="532" y="627" font-size="18" fill="#
|
|
46
|
+
<text x="532" y="627" font-size="18" fill="#8cdb9f" text-anchor="end">99.56%</text>
|
|
47
47
|
<path d="M28 647h504" stroke="#292929"/>
|
|
48
48
|
<text x="28" y="674" font-size="13" fill="#969696" >COMPACTION</text>
|
|
49
49
|
<text x="28" y="705" font-size="16" fill="#969696" >Native pauses</text>
|
|
50
50
|
<text x="532" y="705" font-size="18" fill="#8cdb9f" text-anchor="end">1 → 0</text>
|
|
51
51
|
<text x="28" y="736" font-size="16" fill="#969696" >Local cuts</text>
|
|
52
|
-
<text x="532" y="736" font-size="17" fill="#ededed" text-anchor="end">0 →
|
|
53
|
-
<text x="28" y="767" font-size="16" fill="#969696" >Host
|
|
54
|
-
<text x="532" y="767" font-size="18" fill="#8cdb9f" text-anchor="end">
|
|
55
|
-
<text x="28" y="795" font-size="13" fill="#8cdb9f" >
|
|
52
|
+
<text x="532" y="736" font-size="17" fill="#ededed" text-anchor="end">0 → 37 / 35 events</text>
|
|
53
|
+
<text x="28" y="767" font-size="16" fill="#969696" >Host event time</text>
|
|
54
|
+
<text x="532" y="767" font-size="18" fill="#8cdb9f" text-anchor="end">15.11 → 2.51 s</text>
|
|
55
|
+
<text x="28" y="795" font-size="13" fill="#8cdb9f" >83.4% less host event time.</text>
|
|
56
56
|
<text x="588" y="96" font-size="27" fill="#ededed" font-weight="600">Web-Bench React</text>
|
|
57
57
|
<text x="588" y="122" font-size="15" fill="#969696" >20 dependent tasks / one React project</text>
|
|
58
58
|
<text x="588" y="162" font-size="13" fill="#969696" >ESTIMATED API COST</text>
|
|
59
|
-
<text x="585" y="222" font-size="62" fill="#8cdb9f" font-weight="600" letter-spacing="-3">-
|
|
60
|
-
<text x="1092" y="196" font-size="22" fill="#bdbdbd" text-anchor="end">$0.
|
|
61
|
-
<text x="1092" y="225" font-size="22" fill="#8cdb9f" text-anchor="end">→ $0.
|
|
59
|
+
<text x="585" y="222" font-size="62" fill="#8cdb9f" font-weight="600" letter-spacing="-3">-42.1%</text>
|
|
60
|
+
<text x="1092" y="196" font-size="22" fill="#bdbdbd" text-anchor="end">$0.1655</text>
|
|
61
|
+
<text x="1092" y="225" font-size="22" fill="#8cdb9f" text-anchor="end">→ $0.0958</text>
|
|
62
62
|
<text x="588" y="248" font-size="14" fill="#969696" >Original OpenCode → Live Compact</text>
|
|
63
63
|
<rect x="588" y="268" width="504" height="57" fill="#151b17"/>
|
|
64
64
|
<text x="602" y="291" font-size="19" fill="#8cdb9f" >20/20 stages passed in both</text>
|
|
65
65
|
<text x="602" y="313" font-size="13" fill="#969696" >Final browser checks: 59/59 in both</text>
|
|
66
66
|
<text x="588" y="357" font-size="16" fill="#ededed" >Peak context</text>
|
|
67
|
-
<text x="1092" y="357" font-size="14" fill="#8cdb9f" text-anchor="end">-
|
|
67
|
+
<text x="1092" y="357" font-size="14" fill="#8cdb9f" text-anchor="end">-48.3%</text>
|
|
68
68
|
<rect x="588" y="370" width="357" height="11" fill="#696969"/>
|
|
69
|
-
<rect x="588" y="392" width="
|
|
70
|
-
<text x="1092" y="381" font-size="17" fill="#bdbdbd" text-anchor="end">
|
|
71
|
-
<text x="1092" y="403" font-size="17" fill="#8cdb9f" text-anchor="end">
|
|
69
|
+
<rect x="588" y="392" width="184.6715519110603" height="11" fill="#8cdb9f"/>
|
|
70
|
+
<text x="1092" y="381" font-size="17" fill="#bdbdbd" text-anchor="end">203K</text>
|
|
71
|
+
<text x="1092" y="403" font-size="17" fill="#8cdb9f" text-anchor="end">105K</text>
|
|
72
72
|
<text x="588" y="439" font-size="16" fill="#ededed" >Wall-clock time</text>
|
|
73
|
-
<text x="1092" y="439" font-size="14" fill="#8cdb9f" text-anchor="end">-
|
|
73
|
+
<text x="1092" y="439" font-size="14" fill="#8cdb9f" text-anchor="end">-3.9%</text>
|
|
74
74
|
<rect x="588" y="452" width="357" height="11" fill="#696969"/>
|
|
75
|
-
<rect x="588" y="474" width="
|
|
76
|
-
<text x="1092" y="463" font-size="17" fill="#bdbdbd" text-anchor="end">1,
|
|
77
|
-
<text x="1092" y="485" font-size="17" fill="#8cdb9f" text-anchor="end">1,
|
|
75
|
+
<rect x="588" y="474" width="343.04710064744205" height="11" fill="#8cdb9f"/>
|
|
76
|
+
<text x="1092" y="463" font-size="17" fill="#bdbdbd" text-anchor="end">1,361 s</text>
|
|
77
|
+
<text x="1092" y="485" font-size="17" fill="#8cdb9f" text-anchor="end">1,308 s</text>
|
|
78
78
|
<path d="M588 505h504" stroke="#292929"/>
|
|
79
79
|
<text x="588" y="533" font-size="13" fill="#969696" >INPUT / CACHE</text>
|
|
80
80
|
<text x="1092" y="533" font-size="12" fill="#969696" text-anchor="end">Original → Live Compact</text>
|
|
81
81
|
<text x="588" y="565" font-size="16" fill="#969696" >Cached input</text>
|
|
82
|
-
<text x="944" y="565" font-size="18" fill="#bdbdbd" text-anchor="end">
|
|
82
|
+
<text x="944" y="565" font-size="18" fill="#bdbdbd" text-anchor="end">10.08M</text>
|
|
83
83
|
<text x="964" y="565" font-size="17" fill="#696969" >→</text>
|
|
84
|
-
<text x="1092" y="565" font-size="18" fill="#8cdb9f" text-anchor="end">4.
|
|
84
|
+
<text x="1092" y="565" font-size="18" fill="#8cdb9f" text-anchor="end">4.49M</text>
|
|
85
85
|
<text x="588" y="596" font-size="16" fill="#969696" >Non-cached*</text>
|
|
86
|
-
<text x="944" y="596" font-size="18" fill="#bdbdbd" text-anchor="end">0.
|
|
86
|
+
<text x="944" y="596" font-size="18" fill="#bdbdbd" text-anchor="end">0.203M</text>
|
|
87
87
|
<text x="964" y="596" font-size="17" fill="#696969" >→</text>
|
|
88
|
-
<text x="1092" y="596" font-size="18" fill="#
|
|
88
|
+
<text x="1092" y="596" font-size="18" fill="#8cdb9f" text-anchor="end">0.143M</text>
|
|
89
89
|
<text x="588" y="627" font-size="16" fill="#969696" >Cache hit rate</text>
|
|
90
|
-
<text x="944" y="627" font-size="18" fill="#bdbdbd" text-anchor="end">
|
|
90
|
+
<text x="944" y="627" font-size="18" fill="#bdbdbd" text-anchor="end">98.02%</text>
|
|
91
91
|
<text x="964" y="627" font-size="17" fill="#696969" >→</text>
|
|
92
|
-
<text x="1092" y="627" font-size="18" fill="#ededed" text-anchor="end">
|
|
92
|
+
<text x="1092" y="627" font-size="18" fill="#ededed" text-anchor="end">96.92%</text>
|
|
93
93
|
<path d="M588 647h504" stroke="#292929"/>
|
|
94
94
|
<text x="588" y="674" font-size="13" fill="#969696" >COMPACTION</text>
|
|
95
95
|
<text x="588" y="705" font-size="16" fill="#969696" >Native pauses</text>
|
|
96
96
|
<text x="1092" y="705" font-size="18" fill="#ededed" text-anchor="end">0 → 0</text>
|
|
97
97
|
<text x="588" y="736" font-size="16" fill="#969696" >Local cuts</text>
|
|
98
|
-
<text x="1092" y="736" font-size="17" fill="#ededed" text-anchor="end">0 →
|
|
99
|
-
<text x="588" y="767" font-size="16" fill="#969696" >Host
|
|
100
|
-
<text x="1092" y="767" font-size="18" fill="#d2b287" text-anchor="end">0 →
|
|
101
|
-
<text x="588" y="795" font-size="13" fill="#d2b287" >
|
|
98
|
+
<text x="1092" y="736" font-size="17" fill="#ededed" text-anchor="end">0 → 5 / 5 events</text>
|
|
99
|
+
<text x="588" y="767" font-size="16" fill="#969696" >Host event time</text>
|
|
100
|
+
<text x="1092" y="767" font-size="18" fill="#d2b287" text-anchor="end">0 → 487 ms</text>
|
|
101
|
+
<text x="588" y="795" font-size="13" fill="#d2b287" >No native compaction; pause reduction untested.</text>
|
|
102
102
|
<path d="M0 823h1120" stroke="#292929"/>
|
|
103
|
-
<text x="28" y="849" font-size="14" fill="#969696" >
|
|
104
|
-
<text x="28" y="876" font-size="13" fill="#969696" >One pair per suite; costs
|
|
105
|
-
<text x="28" y="897" font-size="13" fill="#969696" >* Non-cached includes writes.
|
|
103
|
+
<text x="28" y="849" font-size="14" fill="#969696" >Aider first attempts: 149/150 → <tspan fill="#8cdb9f">150/150</tspan>; repairs: 1 → <tspan fill="#8cdb9f">0</tspan>. React: 20/20 first attempts in both.</text>
|
|
104
|
+
<text x="28" y="876" font-size="13" fill="#969696" >One pair per suite; costs estimated. Aider: b435cb8; React: d1b707c. Repairs affect cost and time.</text>
|
|
105
|
+
<text x="28" y="897" font-size="13" fill="#969696" >* Non-cached includes writes. Event time excludes outside planning; user-visible waiting was not measured.</text>
|
|
106
106
|
</svg>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" width="1120" height="920" viewBox="0 0 1120 920" role="img" aria-labelledby="title desc" xml:lang="zh-CN">
|
|
2
2
|
<title id="title">OpenCode Live Compact:Aider 与 Web-Bench 并列对比</title>
|
|
3
|
-
<desc id="desc">Aider 两组通过150/150,Live Compact估算费用降低
|
|
3
|
+
<desc id="desc">Aider 两组通过150/150,Live Compact估算费用降低14.3%。Web-Bench两组完成20/20,最终测试59/59,估算费用降低42.1%;原版没有触发原生压缩,暂停收益尚无结论。</desc>
|
|
4
4
|
<style>text{font-family:Consolas,SFMono-Regular,Liberation Mono,Noto Sans SC,Microsoft YaHei,monospace;font-variant-numeric:tabular-nums}</style>
|
|
5
5
|
<rect x="0.5" y="0.5" width="1119" height="919" fill="#0b0b0b" stroke="#292929"/>
|
|
6
6
|
<text x="28" y="34" font-size="18" fill="#ededed" >opencode / live compact</text>
|
|
@@ -10,97 +10,97 @@
|
|
|
10
10
|
<text x="28" y="96" font-size="27" fill="#ededed" font-weight="600">Aider Polyglot</text>
|
|
11
11
|
<text x="28" y="122" font-size="15" fill="#969696" >150 道短题 / 五种编程语言</text>
|
|
12
12
|
<text x="28" y="162" font-size="13" fill="#969696" >估算 API 费用</text>
|
|
13
|
-
<text x="25" y="222" font-size="62" fill="#8cdb9f" font-weight="600" letter-spacing="-3">-
|
|
14
|
-
<text x="532" y="196" font-size="22" fill="#bdbdbd" text-anchor="end">$6.
|
|
15
|
-
<text x="532" y="225" font-size="22" fill="#8cdb9f" text-anchor="end">→ $5.
|
|
13
|
+
<text x="25" y="222" font-size="62" fill="#8cdb9f" font-weight="600" letter-spacing="-3">-14.3%</text>
|
|
14
|
+
<text x="532" y="196" font-size="22" fill="#bdbdbd" text-anchor="end">$6.295</text>
|
|
15
|
+
<text x="532" y="225" font-size="22" fill="#8cdb9f" text-anchor="end">→ $5.397</text>
|
|
16
16
|
<text x="28" y="248" font-size="14" fill="#969696" >原版 OpenCode → Live Compact</text>
|
|
17
17
|
<rect x="28" y="268" width="504" height="57" fill="#151b17"/>
|
|
18
18
|
<text x="42" y="291" font-size="19" fill="#8cdb9f" >两组均通过 150/150 道题</text>
|
|
19
|
-
<text x="42" y="313" font-size="13" fill="#969696"
|
|
19
|
+
<text x="42" y="313" font-size="13" fill="#969696" >首次独立评分:149/150 → <tspan fill="#8cdb9f">150/150</tspan></text>
|
|
20
20
|
<text x="28" y="357" font-size="16" fill="#ededed" >上下文峰值</text>
|
|
21
|
-
<text x="532" y="357" font-size="14" fill="#8cdb9f" text-anchor="end">-
|
|
21
|
+
<text x="532" y="357" font-size="14" fill="#8cdb9f" text-anchor="end">-2.7%</text>
|
|
22
22
|
<rect x="28" y="370" width="357" height="11" fill="#696969"/>
|
|
23
|
-
<rect x="28" y="392" width="
|
|
23
|
+
<rect x="28" y="392" width="347.4273067217017" height="11" fill="#8cdb9f"/>
|
|
24
24
|
<text x="532" y="381" font-size="17" fill="#bdbdbd" text-anchor="end">783K</text>
|
|
25
|
-
<text x="532" y="403" font-size="17" fill="#8cdb9f" text-anchor="end">
|
|
25
|
+
<text x="532" y="403" font-size="17" fill="#8cdb9f" text-anchor="end">762K</text>
|
|
26
26
|
<text x="28" y="439" font-size="16" fill="#ededed" >墙钟时间</text>
|
|
27
|
-
<text x="532" y="439" font-size="14" fill="#8cdb9f" text-anchor="end">-
|
|
27
|
+
<text x="532" y="439" font-size="14" fill="#8cdb9f" text-anchor="end">-34.2%</text>
|
|
28
28
|
<rect x="28" y="452" width="357" height="11" fill="#696969"/>
|
|
29
|
-
<rect x="28" y="474" width="
|
|
30
|
-
<text x="532" y="463" font-size="17" fill="#bdbdbd" text-anchor="end">5,
|
|
31
|
-
<text x="532" y="485" font-size="17" fill="#8cdb9f" text-anchor="end">
|
|
29
|
+
<rect x="28" y="474" width="234.93338833693656" height="11" fill="#8cdb9f"/>
|
|
30
|
+
<text x="532" y="463" font-size="17" fill="#bdbdbd" text-anchor="end">5,526 秒</text>
|
|
31
|
+
<text x="532" y="485" font-size="17" fill="#8cdb9f" text-anchor="end">3,637 秒</text>
|
|
32
32
|
<path d="M28 505h504" stroke="#292929"/>
|
|
33
33
|
<text x="28" y="533" font-size="13" fill="#969696" >输入 / 缓存</text>
|
|
34
34
|
<text x="532" y="533" font-size="12" fill="#969696" text-anchor="end">原版 → Live Compact</text>
|
|
35
35
|
<text x="28" y="565" font-size="16" fill="#969696" >缓存命中</text>
|
|
36
|
-
<text x="384" y="565" font-size="18" fill="#bdbdbd" text-anchor="end">
|
|
36
|
+
<text x="384" y="565" font-size="18" fill="#bdbdbd" text-anchor="end">302.39M</text>
|
|
37
37
|
<text x="404" y="565" font-size="17" fill="#696969" >→</text>
|
|
38
|
-
<text x="532" y="565" font-size="18" fill="#8cdb9f" text-anchor="end">
|
|
38
|
+
<text x="532" y="565" font-size="18" fill="#8cdb9f" text-anchor="end">265.96M</text>
|
|
39
39
|
<text x="28" y="596" font-size="16" fill="#969696" >缓存未命中*</text>
|
|
40
|
-
<text x="384" y="596" font-size="18" fill="#bdbdbd" text-anchor="end">
|
|
40
|
+
<text x="384" y="596" font-size="18" fill="#bdbdbd" text-anchor="end">2.330M</text>
|
|
41
41
|
<text x="404" y="596" font-size="17" fill="#696969" >→</text>
|
|
42
|
-
<text x="532" y="596" font-size="18" fill="#
|
|
42
|
+
<text x="532" y="596" font-size="18" fill="#8cdb9f" text-anchor="end">1.170M</text>
|
|
43
43
|
<text x="28" y="627" font-size="16" fill="#969696" >缓存命中率</text>
|
|
44
|
-
<text x="384" y="627" font-size="18" fill="#bdbdbd" text-anchor="end">99.
|
|
44
|
+
<text x="384" y="627" font-size="18" fill="#bdbdbd" text-anchor="end">99.24%</text>
|
|
45
45
|
<text x="404" y="627" font-size="17" fill="#696969" >→</text>
|
|
46
|
-
<text x="532" y="627" font-size="18" fill="#
|
|
46
|
+
<text x="532" y="627" font-size="18" fill="#8cdb9f" text-anchor="end">99.56%</text>
|
|
47
47
|
<path d="M28 647h504" stroke="#292929"/>
|
|
48
48
|
<text x="28" y="674" font-size="13" fill="#969696" >压缩</text>
|
|
49
49
|
<text x="28" y="705" font-size="16" fill="#969696" >原生暂停</text>
|
|
50
50
|
<text x="532" y="705" font-size="18" fill="#8cdb9f" text-anchor="end">1 → 0</text>
|
|
51
51
|
<text x="28" y="736" font-size="16" fill="#969696" >本地压缩刀数</text>
|
|
52
|
-
<text x="532" y="736" font-size="17" fill="#ededed" text-anchor="end">0 →
|
|
53
|
-
<text x="28" y="767" font-size="16" fill="#969696"
|
|
54
|
-
<text x="532" y="767" font-size="18" fill="#8cdb9f" text-anchor="end">
|
|
55
|
-
<text x="28" y="795" font-size="13" fill="#8cdb9f"
|
|
52
|
+
<text x="532" y="736" font-size="17" fill="#ededed" text-anchor="end">0 → 37 刀 / 35 次替换</text>
|
|
53
|
+
<text x="28" y="767" font-size="16" fill="#969696" >宿主事件耗时</text>
|
|
54
|
+
<text x="532" y="767" font-size="18" fill="#8cdb9f" text-anchor="end">15.11 → 2.51 秒</text>
|
|
55
|
+
<text x="28" y="795" font-size="13" fill="#8cdb9f" >宿主事件耗时减少 83.4%。</text>
|
|
56
56
|
<text x="588" y="96" font-size="27" fill="#ededed" font-weight="600">Web-Bench React</text>
|
|
57
57
|
<text x="588" y="122" font-size="15" fill="#969696" >20 个依赖任务 / 同一个 React 项目</text>
|
|
58
58
|
<text x="588" y="162" font-size="13" fill="#969696" >估算 API 费用</text>
|
|
59
|
-
<text x="585" y="222" font-size="62" fill="#8cdb9f" font-weight="600" letter-spacing="-3">-
|
|
60
|
-
<text x="1092" y="196" font-size="22" fill="#bdbdbd" text-anchor="end">$0.
|
|
61
|
-
<text x="1092" y="225" font-size="22" fill="#8cdb9f" text-anchor="end">→ $0.
|
|
59
|
+
<text x="585" y="222" font-size="62" fill="#8cdb9f" font-weight="600" letter-spacing="-3">-42.1%</text>
|
|
60
|
+
<text x="1092" y="196" font-size="22" fill="#bdbdbd" text-anchor="end">$0.1655</text>
|
|
61
|
+
<text x="1092" y="225" font-size="22" fill="#8cdb9f" text-anchor="end">→ $0.0958</text>
|
|
62
62
|
<text x="588" y="248" font-size="14" fill="#969696" >原版 OpenCode → Live Compact</text>
|
|
63
63
|
<rect x="588" y="268" width="504" height="57" fill="#151b17"/>
|
|
64
64
|
<text x="602" y="291" font-size="19" fill="#8cdb9f" >两组均完成 20/20 个任务</text>
|
|
65
65
|
<text x="602" y="313" font-size="13" fill="#969696" >最终浏览器测试:两组均通过 59/59</text>
|
|
66
66
|
<text x="588" y="357" font-size="16" fill="#ededed" >上下文峰值</text>
|
|
67
|
-
<text x="1092" y="357" font-size="14" fill="#8cdb9f" text-anchor="end">-
|
|
67
|
+
<text x="1092" y="357" font-size="14" fill="#8cdb9f" text-anchor="end">-48.3%</text>
|
|
68
68
|
<rect x="588" y="370" width="357" height="11" fill="#696969"/>
|
|
69
|
-
<rect x="588" y="392" width="
|
|
70
|
-
<text x="1092" y="381" font-size="17" fill="#bdbdbd" text-anchor="end">
|
|
71
|
-
<text x="1092" y="403" font-size="17" fill="#8cdb9f" text-anchor="end">
|
|
69
|
+
<rect x="588" y="392" width="184.6715519110603" height="11" fill="#8cdb9f"/>
|
|
70
|
+
<text x="1092" y="381" font-size="17" fill="#bdbdbd" text-anchor="end">203K</text>
|
|
71
|
+
<text x="1092" y="403" font-size="17" fill="#8cdb9f" text-anchor="end">105K</text>
|
|
72
72
|
<text x="588" y="439" font-size="16" fill="#ededed" >墙钟时间</text>
|
|
73
|
-
<text x="1092" y="439" font-size="14" fill="#8cdb9f" text-anchor="end">-
|
|
73
|
+
<text x="1092" y="439" font-size="14" fill="#8cdb9f" text-anchor="end">-3.9%</text>
|
|
74
74
|
<rect x="588" y="452" width="357" height="11" fill="#696969"/>
|
|
75
|
-
<rect x="588" y="474" width="
|
|
76
|
-
<text x="1092" y="463" font-size="17" fill="#bdbdbd" text-anchor="end">1,
|
|
77
|
-
<text x="1092" y="485" font-size="17" fill="#8cdb9f" text-anchor="end">1,
|
|
75
|
+
<rect x="588" y="474" width="343.04710064744205" height="11" fill="#8cdb9f"/>
|
|
76
|
+
<text x="1092" y="463" font-size="17" fill="#bdbdbd" text-anchor="end">1,361 秒</text>
|
|
77
|
+
<text x="1092" y="485" font-size="17" fill="#8cdb9f" text-anchor="end">1,308 秒</text>
|
|
78
78
|
<path d="M588 505h504" stroke="#292929"/>
|
|
79
79
|
<text x="588" y="533" font-size="13" fill="#969696" >输入 / 缓存</text>
|
|
80
80
|
<text x="1092" y="533" font-size="12" fill="#969696" text-anchor="end">原版 → Live Compact</text>
|
|
81
81
|
<text x="588" y="565" font-size="16" fill="#969696" >缓存命中</text>
|
|
82
|
-
<text x="944" y="565" font-size="18" fill="#bdbdbd" text-anchor="end">
|
|
82
|
+
<text x="944" y="565" font-size="18" fill="#bdbdbd" text-anchor="end">10.08M</text>
|
|
83
83
|
<text x="964" y="565" font-size="17" fill="#696969" >→</text>
|
|
84
|
-
<text x="1092" y="565" font-size="18" fill="#8cdb9f" text-anchor="end">4.
|
|
84
|
+
<text x="1092" y="565" font-size="18" fill="#8cdb9f" text-anchor="end">4.49M</text>
|
|
85
85
|
<text x="588" y="596" font-size="16" fill="#969696" >缓存未命中*</text>
|
|
86
|
-
<text x="944" y="596" font-size="18" fill="#bdbdbd" text-anchor="end">0.
|
|
86
|
+
<text x="944" y="596" font-size="18" fill="#bdbdbd" text-anchor="end">0.203M</text>
|
|
87
87
|
<text x="964" y="596" font-size="17" fill="#696969" >→</text>
|
|
88
|
-
<text x="1092" y="596" font-size="18" fill="#
|
|
88
|
+
<text x="1092" y="596" font-size="18" fill="#8cdb9f" text-anchor="end">0.143M</text>
|
|
89
89
|
<text x="588" y="627" font-size="16" fill="#969696" >缓存命中率</text>
|
|
90
|
-
<text x="944" y="627" font-size="18" fill="#bdbdbd" text-anchor="end">
|
|
90
|
+
<text x="944" y="627" font-size="18" fill="#bdbdbd" text-anchor="end">98.02%</text>
|
|
91
91
|
<text x="964" y="627" font-size="17" fill="#696969" >→</text>
|
|
92
|
-
<text x="1092" y="627" font-size="18" fill="#ededed" text-anchor="end">
|
|
92
|
+
<text x="1092" y="627" font-size="18" fill="#ededed" text-anchor="end">96.92%</text>
|
|
93
93
|
<path d="M588 647h504" stroke="#292929"/>
|
|
94
94
|
<text x="588" y="674" font-size="13" fill="#969696" >压缩</text>
|
|
95
95
|
<text x="588" y="705" font-size="16" fill="#969696" >原生暂停</text>
|
|
96
96
|
<text x="1092" y="705" font-size="18" fill="#ededed" text-anchor="end">0 → 0</text>
|
|
97
97
|
<text x="588" y="736" font-size="16" fill="#969696" >本地压缩刀数</text>
|
|
98
|
-
<text x="1092" y="736" font-size="17" fill="#ededed" text-anchor="end">0 →
|
|
99
|
-
<text x="588" y="767" font-size="16" fill="#969696"
|
|
100
|
-
<text x="1092" y="767" font-size="18" fill="#d2b287" text-anchor="end">0 →
|
|
101
|
-
<text x="588" y="795" font-size="13" fill="#d2b287"
|
|
98
|
+
<text x="1092" y="736" font-size="17" fill="#ededed" text-anchor="end">0 → 5 刀 / 5 次替换</text>
|
|
99
|
+
<text x="588" y="767" font-size="16" fill="#969696" >宿主事件耗时</text>
|
|
100
|
+
<text x="1092" y="767" font-size="18" fill="#d2b287" text-anchor="end">0 → 487 毫秒</text>
|
|
101
|
+
<text x="588" y="795" font-size="13" fill="#d2b287" >两组原生压缩均为 0;暂停收益尚未验证。</text>
|
|
102
102
|
<path d="M0 823h1120" stroke="#292929"/>
|
|
103
|
-
<text x="28" y="849" font-size="14" fill="#969696" >
|
|
104
|
-
<text x="28" y="876" font-size="13" fill="#969696"
|
|
105
|
-
<text x="28" y="897" font-size="13" fill="#969696" >*
|
|
103
|
+
<text x="28" y="849" font-size="14" fill="#969696" >Aider 首次评分:149/150 → <tspan fill="#8cdb9f">150/150</tspan>;修复:1 → <tspan fill="#8cdb9f">0</tspan>。React 两组首次均通过 20/20。</text>
|
|
104
|
+
<text x="28" y="876" font-size="13" fill="#969696" >各一组配对实验,费用为估算。Aider:b435cb8;React:d1b707c。修复影响费用与时间。</text>
|
|
105
|
+
<text x="28" y="897" font-size="13" fill="#969696" >* 未命中包含缓存写入。事件耗时不含事件外规划;本次未测量用户实际等待时间。</text>
|
|
106
106
|
</svg>
|