This repository was archived by the owner on Sep 11, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-8
lines changed
Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 33using BenchmarkDotNet . Jobs ;
44using BenchmarkDotNet . Toolchains . InProcess . NoEmit ;
55using SourcepawnCondenser ;
6+ using static SPCode . Utils . SPSyntaxTidy . SPSyntaxTidy ;
67
78namespace SPCodeBenchmarks ;
89
@@ -24,8 +25,11 @@ public Config()
2425 [ Benchmark ]
2526 public void Condense ( )
2627 {
28+ var text = File . ReadAllText ( "sourcepawn/nativevotes.inc" ) ;
29+
2730 var condenser =
28- new Condenser ( File . ReadAllText ( "sourcepawn/nativevotes.inc" ) , "test" ) ; // The biggest thing I found
31+ new Condenser ( text , "test" ) ; // The biggest thing I found
32+
2933 condenser . Condense ( ) ;
3034 }
3135}
Original file line number Diff line number Diff line change 22
33 <PropertyGroup >
44 <OutputType >Exe</OutputType >
5- <TargetFramework >net6.0 </TargetFramework >
5+ <TargetFramework >net48 </TargetFramework >
66 <ImplicitUsings >enable</ImplicitUsings >
77 <Nullable >enable</Nullable >
8+ <LangVersion >latest</LangVersion >
89 </PropertyGroup >
910
10- <ItemGroup >
11- <PackageReference Include =" BenchmarkDotNet" >
12- <Version >0.13.2</Version >
13- </PackageReference >
14- </ItemGroup >
15-
1611 <ItemGroup >
1712 <ProjectReference Include =" ..\SourcepawnCondenser\SourcepawnCondenser\SourcepawnCondenser.csproj" />
13+ <ProjectReference Include =" ..\SPCode.csproj" />
1814 </ItemGroup >
1915
2016 <ItemGroup >
2117 <Content Include =" sourcepawn\**" >
2218 <CopyToOutputDirectory >Always</CopyToOutputDirectory >
2319 </Content >
2420 </ItemGroup >
21+
22+ <ItemGroup >
23+ <PackageReference Include =" BenchmarkDotNet" >
24+ <Version >0.13.2</Version >
25+ </PackageReference >
26+ </ItemGroup >
2527
2628
2729</Project >
You can’t perform that action at this time.
0 commit comments