Skip to content

Commit

Permalink
[wasm] Disable legacy interop measurements (dotnet#81027)
Browse files Browse the repository at this point in the history
Temporarily as they currently don't work
  • Loading branch information
radekdoulik authored Jan 23, 2023
1 parent 5fda6fd commit e926cf5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/mono/sample/wasm/browser-bench/JSInterop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ class JSInteropTask : BenchTask
public JSInteropTask()
{
measurements = new Measurement[] {
new LegacyExportIntMeasurement(),
// new LegacyExportIntMeasurement(),
new JSExportIntMeasurement(),
new LegacyExportStringMeasurement(),
// new LegacyExportStringMeasurement(),
new JSExportStringMeasurement(),
new JSImportIntMeasurement(),
new JSImportStringMeasurement(),
Expand Down
8 changes: 4 additions & 4 deletions src/mono/sample/wasm/browser-bench/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ class MainApp {
setTasks = exports.Sample.Test.SetTasks;
getFullJsonResults = exports.Sample.Test.GetFullJsonResults;

legacyExportTargetInt = BINDING.bind_static_method("[Wasm.Browser.Bench.Sample]Sample.ImportsExportsHelper:LegacyExportTargetInt");
jsExportTargetInt = exports.Sample.ImportsExportsHelper.JSExportTargetInt;
legacyExportTargetString = BINDING.bind_static_method("[Wasm.Browser.Bench.Sample]Sample.ImportsExportsHelper:LegacyExportTargetString");
jsExportTargetString = exports.Sample.ImportsExportsHelper.JSExportTargetString;
// legacyExportTargetInt = BINDING.bind_static_method("[Wasm.Browser.Bench.Sample]Sample.ImportsExportsHelper:LegacyExportTargetInt");
// jsExportTargetInt = exports.Sample.ImportsExportsHelper.JSExportTargetInt;
// legacyExportTargetString = BINDING.bind_static_method("[Wasm.Browser.Bench.Sample]Sample.ImportsExportsHelper:LegacyExportTargetString");
// jsExportTargetString = exports.Sample.ImportsExportsHelper.JSExportTargetString;

setModuleImports("main.js", {
Sample: {
Expand Down

0 comments on commit e926cf5

Please sign in to comment.