-
Notifications
You must be signed in to change notification settings - Fork 24
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
Investigate performance of 'compare' command for O(100K) utterances #138
Comments
The bottleneck for the `compare` command is the exceptions thrown by NUnit for `Assert.Pass` and `Assert.Fail`. Running the tests in parallel will leverage more threads to run the tests. Another thing we can look into if we want to improve this further is to remove the calls to `Assert.Pass` and `Assert.Fail` and instead use expected outputs for unit tests, to remove the need for exception handling. For now, this parallel approach dramatically increases throughput for compare tests. Fixes microsoft#138
The main bottleneck for compare tests is the exceptions that are thrown for |
The bottleneck for the `compare` command is the exceptions thrown by NUnit for `Assert.Pass` and `Assert.Fail`. Running the tests in parallel will leverage more threads to run the tests. Another thing we can look into if we want to improve this further is to remove the calls to `Assert.Pass` and `Assert.Fail` and instead use expected outputs for unit tests, to remove the need for exception handling. For now, this parallel approach dramatically increases throughput for compare tests. Fixes #138
~100K utterances seems to be taking ~30 seconds for
dotnet nlu compare -e tests100k.json -a tests100k.json -m
. We should analyze the perf and see if there are any obvious ways to speedup the comparison.The text was updated successfully, but these errors were encountered: