Skip to content

Add NoWASM label #1451

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 14, 2020
Merged

Add NoWASM label #1451

merged 1 commit into from
Aug 14, 2020

Conversation

DrewScoggins
Copy link
Member

No description provided.

@@ -66,6 +66,7 @@ public int Read()
}

[Benchmark]
[BenchmarkCategory(Categories.NoWASM)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are file operations not supported in general on WASM or just the async ones?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

File operations do not seem to be allowed on WASM. From what I was able to glean from reading you need to hit a web endpoint if you want to access files.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So maybe that would be something we could do long term, but for now we can just turn them off.

@@ -17,6 +17,7 @@ public class Perf_CancellationToken
public void RegisterAndUnregister_Serial() => _token.Register(() => { }).Dispose();

[Benchmark(OperationsPerInvoke = 1_000_000)]
[BenchmarkCategory(Categories.NoWASM)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the multi-threaded tests, we could introduce a multithreaded category and use it to exclude the benchmarks when affinitizing to a single core. Sth like:

--filter * --category-exclusion-filter multithreaded --affinity X

And the full WASM filter would be:

--filter * --category-exclusion-filter nowasm multithreaded

Copy link
Member

@adamsitnik adamsitnik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@adamsitnik
Copy link
Member

btw @buyaa-n is currently working on an analyzer that is going to print warnings for os|platform specific APIs. When it's ready we could use it here to verify if our "nowasm" category is complete

@DrewScoggins DrewScoggins merged commit d6ff958 into dotnet:master Aug 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants