浏览代码

修改配置

tags/v1.3.0
SmallChi 6 年前
父节点
当前提交
993cd89c67
共有 1 个文件被更改,包括 9 次插入2 次删除
  1. +9
    -2
      src/JT809.Protocol.Benchmark/JT809SerializerContext.cs

+ 9
- 2
src/JT809.Protocol.Benchmark/JT809SerializerContext.cs 查看文件

@@ -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));
}
}
}

正在加载...
取消
保存