Commit fe8ae98
authored
[wasm] Improve exception handling measurements (#52846)
Add conditional throw to the leaf methods to avoid optimizing out the
exception handling code in `TryCatch` measurement.
Add new `NoExceptionHandling` measurement to measure case when no
exception handling is involved.
Example measurement, chrome/amd64:
| measurement | AOT | interp |
|-:|-:|-:|
| Exceptions, NoExceptionHandling | 0.0164us | 0.0558us |
| Exceptions, TryCatch | 0.1400us | 0.0592us |
| Exceptions, TryCatchThrow | 0.0064ms | 0.0028ms |
| Exceptions, TryCatchFilter | 0.4415us | 0.0645us |
| Exceptions, TryCatchFilterInline | 0.1263us | 0.0527us |
| Json, non-ASCII text serialize | 1.4475ms | 8.6952ms |
| Json, non-ASCII text deserialize | 6.5332ms | 12.2220ms |
| Json, small serialize | 0.2020ms | 0.2362ms |
| Json, small deserialize | 0.2293ms | 0.3614ms |
| Json, large serialize | 53.3021ms | 68.0000ms |
| Json, large deserialize | 61.5176ms | 100.0377ms |1 parent 24544e0 commit fe8ae98
1 file changed
Lines changed: 45 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
44 | 65 | | |
45 | 66 | | |
46 | 67 | | |
47 | 68 | | |
| 69 | + | |
| 70 | + | |
48 | 71 | | |
49 | 72 | | |
50 | 73 | | |
| |||
58 | 81 | | |
59 | 82 | | |
60 | 83 | | |
| 84 | + | |
| 85 | + | |
61 | 86 | | |
62 | 87 | | |
63 | 88 | | |
64 | 89 | | |
65 | 90 | | |
66 | 91 | | |
| 92 | + | |
| 93 | + | |
67 | 94 | | |
68 | 95 | | |
69 | 96 | | |
| |||
78 | 105 | | |
79 | 106 | | |
80 | 107 | | |
81 | | - | |
| 108 | + | |
| 109 | + | |
82 | 110 | | |
83 | 111 | | |
84 | 112 | | |
85 | 113 | | |
86 | 114 | | |
87 | 115 | | |
| 116 | + | |
| 117 | + | |
88 | 118 | | |
89 | 119 | | |
90 | 120 | | |
| |||
99 | 129 | | |
100 | 130 | | |
101 | 131 | | |
| 132 | + | |
| 133 | + | |
102 | 134 | | |
103 | 135 | | |
104 | 136 | | |
105 | 137 | | |
106 | 138 | | |
107 | 139 | | |
| 140 | + | |
| 141 | + | |
108 | 142 | | |
109 | 143 | | |
110 | 144 | | |
| |||
119 | 153 | | |
120 | 154 | | |
121 | 155 | | |
| 156 | + | |
| 157 | + | |
122 | 158 | | |
123 | 159 | | |
124 | 160 | | |
125 | 161 | | |
126 | 162 | | |
127 | 163 | | |
| 164 | + | |
| 165 | + | |
128 | 166 | | |
129 | 167 | | |
130 | 168 | | |
| |||
142 | 180 | | |
143 | 181 | | |
144 | 182 | | |
145 | | - | |
| 183 | + | |
| 184 | + | |
146 | 185 | | |
147 | 186 | | |
148 | 187 | | |
149 | 188 | | |
150 | 189 | | |
151 | 190 | | |
| 191 | + | |
| 192 | + | |
152 | 193 | | |
153 | 194 | | |
154 | 195 | | |
| |||
163 | 204 | | |
164 | 205 | | |
165 | 206 | | |
166 | | - | |
| 207 | + | |
| 208 | + | |
167 | 209 | | |
168 | 210 | | |
169 | 211 | | |
| |||
0 commit comments