Skip to content

Commit b9d74bd

Browse files
committed
Update v2 benchmark results
1 parent e8740be commit b9d74bd

4 files changed

Lines changed: 184 additions & 18 deletions

File tree

bench/Cargo.lock

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bench/programs/helloworld/pinocchio/Cargo.lock

Lines changed: 45 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bench/results.json

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,126 @@
44
"results": [
55
{
66
"commit": "current",
7+
"programs": {
8+
"hello_world": {
9+
"binary_size_bytes": 124800,
10+
"compute_units": {
11+
"init": 5855
12+
}
13+
},
14+
"hello_world_pinocchio": {
15+
"binary_size_bytes": 8168,
16+
"compute_units": {
17+
"init": 1686
18+
}
19+
},
20+
"hello_world_quasar": {
21+
"binary_size_bytes": 6960,
22+
"compute_units": {
23+
"init": 1412
24+
}
25+
},
26+
"hello_world_steel": {
27+
"binary_size_bytes": 77600,
28+
"compute_units": {
29+
"init": 4867
30+
}
31+
},
32+
"hello_world_v2": {
33+
"binary_size_bytes": 6496,
34+
"compute_units": {
35+
"init": 1395
36+
}
37+
},
38+
"multisig_v1": {
39+
"binary_size_bytes": 170096,
40+
"compute_units": {
41+
"create": 12031,
42+
"deposit": 4872,
43+
"execute_transfer": 7446,
44+
"set_label": 4324
45+
}
46+
},
47+
"multisig_v2": {
48+
"binary_size_bytes": 31224,
49+
"compute_units": {
50+
"create": 3039,
51+
"deposit": 1627,
52+
"execute_transfer": 2182,
53+
"set_label": 475
54+
}
55+
},
56+
"nested_v1": {
57+
"binary_size_bytes": 157336,
58+
"compute_units": {
59+
"increment": 4751,
60+
"initialize": 19842,
61+
"reset": 4752
62+
}
63+
},
64+
"nested_v2": {
65+
"binary_size_bytes": 13264,
66+
"compute_units": {
67+
"increment": 477,
68+
"initialize": 2872,
69+
"reset": 476
70+
}
71+
},
72+
"prop_amm_v1": {
73+
"binary_size_bytes": 140456,
74+
"compute_units": {
75+
"initialize": 4314,
76+
"rotate_authority": 1340,
77+
"update": 1310
78+
}
79+
},
80+
"prop_amm_v2": {
81+
"binary_size_bytes": 8344,
82+
"compute_units": {
83+
"initialize": 1379,
84+
"rotate_authority": 91,
85+
"update": 26
86+
}
87+
},
88+
"vault_pinocchio": {
89+
"binary_size_bytes": 5072,
90+
"compute_units": {
91+
"deposit": 1229,
92+
"withdraw": 57
93+
}
94+
},
95+
"vault_quasar": {
96+
"binary_size_bytes": 6080,
97+
"compute_units": {
98+
"deposit": 1889,
99+
"withdraw": 396
100+
}
101+
},
102+
"vault_steel": {
103+
"binary_size_bytes": 65160,
104+
"compute_units": {
105+
"deposit": 2452,
106+
"withdraw": 530
107+
}
108+
},
109+
"vault_v1": {
110+
"binary_size_bytes": 107544,
111+
"compute_units": {
112+
"deposit": 5707,
113+
"withdraw": 2478
114+
}
115+
},
116+
"vault_v2": {
117+
"binary_size_bytes": 5424,
118+
"compute_units": {
119+
"deposit": 1905,
120+
"withdraw": 393
121+
}
122+
}
123+
}
124+
},
125+
{
126+
"commit": "2e135c69743b54245a5ddebe6b3f840d53a3032a",
7127
"programs": {
8128
"hello_world": {
9129
"binary_size_bytes": 124624,

docs-v2/src/lib/landing-benchmarks.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -29,51 +29,51 @@ export const programs: ProgramBenchmark[] = [
2929
id: 'helloworld',
3030
label: 'helloworld',
3131
detail: 'Single-instruction counter',
32-
binary: [124_624, 6_440],
33-
instructions: [{ label: 'init', detail: 'Counter initialization', older: 5_855, v2: 1_381 }],
32+
binary: [124_800, 6_496],
33+
instructions: [{ label: 'init', detail: 'Counter initialization', older: 5_855, v2: 1_395 }],
3434
}),
3535
programBenchmark({
3636
id: 'prop-amm',
3737
label: 'prop-amm',
3838
detail: 'Oracle feed with asm fast-path',
39-
binary: [140_280, 8_592],
39+
binary: [140_456, 8_344],
4040
instructions: [
41-
{ label: 'initialize', detail: 'Oracle setup', older: 4_314, v2: 1_375 },
42-
{ label: 'rotate_authority', detail: 'Authority rotation', older: 1_340, v2: 84 },
41+
{ label: 'initialize', detail: 'Oracle setup', older: 4_314, v2: 1_379 },
42+
{ label: 'rotate_authority', detail: 'Authority rotation', older: 1_340, v2: 91 },
4343
{ label: 'update', detail: 'Asm fast path', older: 1_310, v2: 26 },
4444
],
4545
}),
4646
programBenchmark({
4747
id: 'vault',
4848
label: 'vault',
4949
detail: 'Single-depositor SOL vault',
50-
binary: [107_368, 5_384],
50+
binary: [107_544, 5_424],
5151
instructions: [
52-
{ label: 'deposit', detail: 'System transfer CPI', older: 5_707, v2: 1_899 },
53-
{ label: 'withdraw', detail: 'Lamport withdrawal', older: 2_478, v2: 389 },
52+
{ label: 'deposit', detail: 'System transfer CPI', older: 5_707, v2: 1_905 },
53+
{ label: 'withdraw', detail: 'Lamport withdrawal', older: 2_478, v2: 393 },
5454
],
5555
}),
5656
programBenchmark({
5757
id: 'nested',
5858
label: 'nested',
5959
detail: 'Shared validation via Nested<T>',
60-
binary: [157_160, 12_424],
60+
binary: [157_336, 13_264],
6161
instructions: [
62-
{ label: 'initialize', detail: 'Shared validation setup', older: 19_842, v2: 2_716 },
63-
{ label: 'increment', detail: 'Nested validation path', older: 4_751, v2: 474 },
64-
{ label: 'reset', detail: 'Nested reset path', older: 4_752, v2: 473 },
62+
{ label: 'initialize', detail: 'Shared validation setup', older: 19_842, v2: 2_872 },
63+
{ label: 'increment', detail: 'Nested validation path', older: 4_751, v2: 477 },
64+
{ label: 'reset', detail: 'Nested reset path', older: 4_752, v2: 476 },
6565
],
6666
}),
6767
programBenchmark({
6868
id: 'multisig',
6969
label: 'multisig',
7070
detail: 'Four-instruction SOL multisig',
71-
binary: [169_920, 30_976],
71+
binary: [170_096, 31_224],
7272
instructions: [
73-
{ label: 'create', detail: 'Config creation', older: 12_031, v2: 3_016 },
74-
{ label: 'deposit', detail: 'Vault funding', older: 4_872, v2: 1_613 },
75-
{ label: 'set_label', detail: 'Inline PodVec update', older: 4_324, v2: 469 },
76-
{ label: 'execute_transfer', detail: 'Threshold transfer', older: 7_446, v2: 2_170 },
73+
{ label: 'create', detail: 'Config creation', older: 12_031, v2: 3_039 },
74+
{ label: 'deposit', detail: 'Vault funding', older: 4_872, v2: 1_627 },
75+
{ label: 'set_label', detail: 'Inline PodVec update', older: 4_324, v2: 475 },
76+
{ label: 'execute_transfer', detail: 'Threshold transfer', older: 7_446, v2: 2_182 },
7777
],
7878
}),
7979
]

0 commit comments

Comments
 (0)