Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
feast107 committed May 31, 2023
1 parent c2c94b1 commit b381daf
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Antelcat.AspNetCore.DependencyInjection.Autowired" Version="7.0.0" />
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="7.0.5" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Antelcat.AspNetCore.DependencyInjection.Autowired\Antelcat.AspNetCore.DependencyInjection.Autowired.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Antelcat.DependencyInjection.Autowired\Antelcat.DependencyInjection.Autowired.csproj" />
<ProjectReference Include="..\Antelcat.AspNetCore.DependencyInjection.Autowired\Antelcat.AspNetCore.DependencyInjection.Autowired.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void TestAutofac()
watch.Start();
while (times-- > 0) test();
watch.Stop();
Console.WriteLine($"Autofac resolve cost {watch.ElapsedTicks}");
Console.WriteLine($"Autofac resolve {Times} times cost {watch.ElapsedTicks} ticks");
}

[Test]
Expand All @@ -63,7 +63,7 @@ public void TestNative()
watch.Start();
while (times-- > 0) CurrentTest.Item1();
watch.Stop();
Console.WriteLine($"Native resolve cost {watch.ElapsedTicks}");
Console.WriteLine($"Native resolve {Times} times cost {watch.ElapsedTicks} ticks");
}

[Test]
Expand All @@ -75,7 +75,7 @@ public void TestAutowired()
watch.Start();
while (times-- > 0) CurrentTest.Item2();
watch.Stop();
Console.WriteLine($"Autowired resolve cost {watch.ElapsedTicks}");
Console.WriteLine($"Autowired resolve {Times} times cost {watch.ElapsedTicks} ticks");
}

[Test]
Expand Down

0 comments on commit b381daf

Please sign in to comment.