|
|
@@ -86,8 +86,15 @@ namespace JT809.Protocol.Benchmark |
|
|
|
{ |
|
|
|
public JT809SerializerContextConfig() |
|
|
|
{ |
|
|
|
Add(Job.Default.WithGcServer(true).With(Runtime.Clr).With(Platform.AnyCpu)); |
|
|
|
Add(Job.Default.WithGcServer(true).With(CsProjCoreToolchain.NetCoreApp21).With(Platform.AnyCpu)); |
|
|
|
Add(Job.Default.With(new GcMode() |
|
|
|
{ |
|
|
|
Force = false // 不要在每次迭代之后强制GC收集 |
|
|
|
}).With(Runtime.Clr).With(Platform.AnyCpu)); |
|
|
|
|
|
|
|
Add(Job.Default.With(new GcMode() |
|
|
|
{ |
|
|
|
Force = false // 不要在每次迭代之后强制GC收集 |
|
|
|
}).With(CsProjCoreToolchain.NetCoreApp21).With(Platform.AnyCpu)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |