Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 65a4184

Browse files
committed
fixed ReadIntProperty benchmark code
1 parent 76d86eb commit 65a4184

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/perf_tests/BaselineComparisonConfig.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ public BaselineComparisonConfig()
1818

1919
string deploymentRoot = BenchmarkTests.DeploymentRoot;
2020

21-
this.Add(Job.Default
21+
var baseJob = Job.Default;
22+
this.Add(baseJob
2223
.WithEnvironmentVariable(EnvironmentVariableName,
2324
Path.Combine(deploymentRoot, "baseline", "Python.Runtime.dll"))
2425
.AsBaseline());
25-
this.Add(Job.Default
26+
this.Add(baseJob
2627
.WithEnvironmentVariable(EnvironmentVariableName,
2728
Path.Combine(deploymentRoot, "new", "Python.Runtime.dll")));
2829
}

src/perf_tests/PythonCallingNetBenchmark.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public void ReadIntProperty()
2121
s = 0
2222
for i in range(1000000):
2323
s += a.IntProperty
24-
");
24+
", locals: locals.Handle);
2525
}
2626
}
2727
}

0 commit comments

Comments
 (0)