Skip to content

Conversation

@DrewScoggins
Copy link
Member

No description provided.

}

[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.

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