-
Notifications
You must be signed in to change notification settings - Fork 199
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
Add benchmarks #7963
Add benchmarks #7963
Conversation
@dotnet/razor-compiler for review please. |
src/Compiler/perf/Microsoft.AspNetCore.Razor.Microbenchmarks.Generator/Benchmarks.cs
Show resolved
Hide resolved
src/Compiler/perf/Microsoft.AspNetCore.Razor.Microbenchmarks.Generator/ParamsAllExceptDebug.cs
Outdated
Show resolved
Hide resolved
src/Compiler/perf/Microsoft.AspNetCore.Razor.Microbenchmarks.Generator/Program.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done review pass (commit 2)
src/Compiler/perf/Microsoft.AspNetCore.Razor.Microbenchmarks.Generator/ProjectSetup.cs
Outdated
Show resolved
Hide resolved
src/Compiler/perf/Microsoft.AspNetCore.Razor.Microbenchmarks.Generator/ProjectSetup.cs
Outdated
Show resolved
Hide resolved
src/Compiler/perf/Microsoft.AspNetCore.Razor.Microbenchmarks.Generator/ProjectSetup.cs
Outdated
Show resolved
Hide resolved
src/Compiler/perf/Microsoft.AspNetCore.Razor.Microbenchmarks.Generator/ProjectSetup.cs
Outdated
Show resolved
Hide resolved
src/Compiler/perf/Microsoft.AspNetCore.Razor.Microbenchmarks.Generator/ProjectSetup.cs
Outdated
Show resolved
Hide resolved
{ | ||
private string _targetPath; | ||
|
||
private AnalyzerConfigOptions _baseOptions; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private AnalyzerConfigOptions _baseOptions; | |
private readonly AnalyzerConfigOptions _baseOptions; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This wasn't addressed.
@@ -184,5 +184,7 @@ | |||
<SystemTextJsonVersion>6.0.0</SystemTextJsonVersion> | |||
<XunitAssertVersion>$(XunitVersion)</XunitAssertVersion> | |||
<XunitExtensibilityExecutionVersion>$(XunitVersion)</XunitExtensibilityExecutionVersion> | |||
<!-- Benchmarks --> | |||
<Benchmarks_BaselineSourceGeneratorsVersion>7.0.0-preview.5.22528.1</Benchmarks_BaselineSourceGeneratorsVersion> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this an existing pattern in arcade that we're feeding into or a new one we're craeting?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have a sort of pattern where we have things like Tooling_
it's not an official arcede-ism, but these are manually updated anyway, so arcade doesn't know about them
<PackageReference Include="Microsoft.Build.Locator" /> | ||
</ItemGroup> | ||
|
||
<!-- Reference the local source generator when building in Release (or Debug) --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't get the "or Debug" part here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it means "when building in Release or Debug, but not in Release_Nuget"
src/Compiler/perf/Microsoft.AspNetCore.Razor.Microbenchmarks.Generator/Benchmarks.cs
Outdated
Show resolved
Hide resolved
....Razor.Microbenchmarks.Generator/Microsoft.AspNetCore.Razor.Microbenchmarks.Generator.csproj
Outdated
Show resolved
Hide resolved
- Add new benchmark project - Add sample app that can be benchmarked
Rebased on main, addressed feedback. @dotnet/razor-compiler for review please. |
@chsienki can you please clarify which commits need to be reviewed? I would ask that you please do not rebase during code review, as it breaks the ability to diff review. This is critical, especially with PRs that have 2000 lines of diff. |
@333fred it's just the last two commits which address PR feedback |
</ItemGroup> | ||
|
||
</Project> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spaces?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@333fred What do you mean by spaces? The gap between the last item group and the closing project element follows the style of the rest of the repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done review pass (commit 5)
You can pretty much ignore everything under
SampleApp
it's just a basic razor app with extra (simple) pages added underPages/Generated
to simulate a larger project.