Skip to content

Commit f7d77e2

Browse files
committed
Add local script for running updates
1 parent 1392f00 commit f7d77e2

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/AI.Benchmarks/Program.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using AI.Benchmarks;
22
using BenchmarkDotNet.Columns;
33
using BenchmarkDotNet.Configs;
4-
using BenchmarkDotNet.Exporters.Json;
54
using BenchmarkDotNet.Reports;
65
using BenchmarkDotNet.Running;
76

@@ -11,7 +10,7 @@
1110
.WithArtifactsPath(Path.Combine(ThisAssembly.Project.MSBuildProjectDirectory, "BenchmarkDotNet.Artifacts"))
1211
#else
1312
.Create(DefaultConfig.Instance)
14-
.AddExporter(JsonExporter.Full)
13+
.AddExporter(BenchmarkDotNet.Exporters.Json.JsonExporter.Full)
1514
#endif
1615
.AddColumn(new ProviderColumn())
1716
.AddColumn(new ModelColumn()),

update.ps1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
git pull && `
2+
pushd .\src\AI.Benchmarks && `
3+
dotnet run -c Release && `
4+
popd && `
5+
add *.json && `
6+
add *.md && `
7+
commit -m "🖉 Update AI benchmarks" && `
8+
git push || write-host 'Failed to update benchmarks'

0 commit comments

Comments
 (0)