File tree Expand file tree Collapse file tree 1 file changed +34
-1
lines changed
test/JavaScriptEngineSwitcher.Benchmarks Expand file tree Collapse file tree 1 file changed +34
-1
lines changed Original file line number Diff line number Diff line change @@ -206,18 +206,51 @@ public void Jurassic(bool withPrecompilation)
206
206
Func < IJsEngine > createJsEngine = ( ) => new JurassicJsEngine ( ) ;
207
207
TransliterateStrings ( createJsEngine , withPrecompilation ) ;
208
208
}
209
+ #if NET46
210
+
211
+ [ Benchmark ]
212
+ public void MsieClassic ( )
213
+ {
214
+ Func < IJsEngine > createJsEngine = ( ) => new MsieJsEngine ( new MsieSettings
215
+ {
216
+ EngineMode = JsEngineMode . Classic
217
+ } ) ;
218
+ TransliterateStrings ( createJsEngine , false ) ;
219
+ }
209
220
221
+ [ Benchmark ]
222
+ public void MsieChakraActiveScript ( )
223
+ {
224
+ Func < IJsEngine > createJsEngine = ( ) => new MsieJsEngine ( new MsieSettings
225
+ {
226
+ EngineMode = JsEngineMode . ChakraActiveScript
227
+ } ) ;
228
+ TransliterateStrings ( createJsEngine , false ) ;
229
+ }
230
+ #endif
210
231
[ Benchmark ]
211
232
[ Arguments ( false ) ]
212
233
[ Arguments ( true ) ]
213
- public void Msie ( bool withPrecompilation )
234
+ public void MsieChakraIeJsRt ( bool withPrecompilation )
214
235
{
215
236
Func < IJsEngine > createJsEngine = ( ) => new MsieJsEngine ( new MsieSettings {
216
237
EngineMode = JsEngineMode . ChakraIeJsRt
217
238
} ) ;
218
239
TransliterateStrings ( createJsEngine , withPrecompilation ) ;
219
240
}
220
241
242
+ [ Benchmark ]
243
+ [ Arguments ( false ) ]
244
+ [ Arguments ( true ) ]
245
+ public void MsieChakraEdgeJsRt ( bool withPrecompilation )
246
+ {
247
+ Func < IJsEngine > createJsEngine = ( ) => new MsieJsEngine ( new MsieSettings
248
+ {
249
+ EngineMode = JsEngineMode . ChakraEdgeJsRt
250
+ } ) ;
251
+ TransliterateStrings ( createJsEngine , withPrecompilation ) ;
252
+ }
253
+
221
254
[ Benchmark ]
222
255
public void NiL ( )
223
256
{
You can’t perform that action at this time.
0 commit comments