Skip to content

Commit ed9a80b

Browse files
Martin Boje CarpentierMartinCarpentier
authored andcommitted
No filter
1 parent 5626549 commit ed9a80b

14 files changed

Lines changed: 77 additions & 21 deletions

.github/workflows/continous-benchmark.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
6.0.x
2323
# Run benchmark with `go test -bench` and stores the output to a file
2424
- name: Run benchmark
25-
run: dotnet run --project ./GeoJSON.Text.Test.Benchmark/GeoJSON.Text.Test.Benchmark.csproj --framework net6 --runtimes net60 -c Release -- --job short --filter
25+
run: dotnet run --project ./GeoJSON.Text.Test.Benchmark/GeoJSON.Text.Test.Benchmark.csproj --framework net6 --runtimes net60 -c Release -- --job short -f *SerializeAndDeserialize*
2626
# Download previous benchmark result from cache (if exists)
2727
- name: Download previous benchmark data
2828
uses: actions/cache@v1
@@ -36,8 +36,12 @@ jobs:
3636
# What benchmark tool the output.txt came from
3737
tool: 'benchmarkdotnet'
3838
# Where the output from the benchmark tool is stored
39-
output-file-path: 'src/BenchmarkDotNet.Artifacts/results/GeoJSON.Text.Test.Benchmark.Serialize.SerializeFeatureCollectionLinestring-report-full-compressed.json'
40-
# Workflow will fail when an alert happens
41-
fail-on-alert: true
39+
output-file-path: 'src/BenchmarkDotNet.Artifacts/results/GeoJSON.Text.Test.Benchmark.SerializeAndDeserialize-report-full-compressed.json'
40+
# Where the previous data file is stored
41+
external-data-json-path: ./cache/benchmark-data.json
42+
# Will comment on pull request when an alert happens
43+
comment-always: true
44+
# GitHub API token to make a commit comment
45+
github-token: ${{ secrets.GITHUB_TOKEN }}
4246
# Upload the updated cache file for the next job by actions/cache
4347
# Run `github-action-benchmark` action

src/GeoJSON.Text.Test.Benchmark/Deserialize/DeserializeFeatureCollectionLinestring_1000.json renamed to src/GeoJSON.Text.Test.Benchmark/FeatureCollectionLinestring_1000.json

File renamed without changes.

src/GeoJSON.Text.Test.Benchmark/Deserialize/DeserializeFeatureCollectionLinestring_10000.json renamed to src/GeoJSON.Text.Test.Benchmark/FeatureCollectionLinestring_10000.json

File renamed without changes.

src/GeoJSON.Text.Test.Benchmark/Deserialize/DeserializeFeatureCollectionLinestring_100000.json renamed to src/GeoJSON.Text.Test.Benchmark/FeatureCollectionLinestring_100000.json

File renamed without changes.

src/GeoJSON.Text.Test.Benchmark/Deserialize/DeserializeFeatureLinestring.json renamed to src/GeoJSON.Text.Test.Benchmark/FeatureLinestring.json

File renamed without changes.

src/GeoJSON.Text.Test.Benchmark/GeoJSON.Text.Test.Benchmark.csproj

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,21 @@
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<None Remove="Deserialize\DeserializeFeatureCollectionLinestring_1000.json" />
13-
<None Remove="Deserialize\DeserializeFeatureCollectionLinestring_10000.json" />
14-
<None Remove="Deserialize\DeserializeFeatureCollectionLinestring_100000.json" />
12+
<None Remove="FeatureCollectionLinestring_1000.json" />
13+
<None Remove="GeoJsonNetVsSystemText\Deserialize\DeserializeFeatureCollectionLinestring_1000.json" />
14+
<None Remove="GeoJsonNetVsSystemText\Deserialize\DeserializeFeatureCollectionLinestring_10000.json" />
15+
<None Remove="GeoJsonNetVsSystemText\Deserialize\DeserializeFeatureCollectionLinestring_100000.json" />
1516
<None Remove="FeatureTests_Can_Serialize_LineString_Feature.json" />
1617
</ItemGroup>
1718

1819
<ItemGroup>
19-
<EmbeddedResource Include="Deserialize\DeserializeFeatureCollectionLinestring_100000.json" />
20+
<EmbeddedResource Include="FeatureCollectionLinestring_1000.json" />
21+
<EmbeddedResource Include="FeatureCollectionLinestring_100000.json" />
2022
</ItemGroup>
2123

2224
<ItemGroup>
23-
<EmbeddedResource Include="Deserialize\DeserializeFeatureCollectionLinestring_1000.json" />
24-
<EmbeddedResource Include="Deserialize\DeserializeFeatureCollectionLinestring_10000.json" />
25-
<EmbeddedResource Include="Deserialize\DeserializeFeatureLinestring.json" />
25+
<EmbeddedResource Include="FeatureCollectionLinestring_10000.json" />
26+
<EmbeddedResource Include="FeatureLinestring.json" />
2627
</ItemGroup>
2728

2829
<ItemGroup>

src/GeoJSON.Text.Test.Benchmark/Deserialize/DeserializeFeatureCollectionLinestring.cs renamed to src/GeoJSON.Text.Test.Benchmark/GeoJsonNetVsSystemText/Deserialize/DeserializeFeatureCollectionLinestring.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class DeserializeFeatureCollectionLinestring
1414
[GlobalSetup]
1515
public void Setup()
1616
{
17-
fileContents = JsonEmbeddedFileReader.GetExpectedJson($"DeserializeFeatureCollectionLinestring_{N}");
17+
fileContents = JsonEmbeddedFileReader.GetExpectedJson($"FeatureCollectionLinestring_{N}");
1818
}
1919

2020
[Benchmark]

src/GeoJSON.Text.Test.Benchmark/Deserialize/DeserializeFeatureLinestring.cs renamed to src/GeoJSON.Text.Test.Benchmark/GeoJsonNetVsSystemText/Deserialize/DeserializeFeatureLinestring.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class DeserializeFeatureLinestring
1212
[GlobalSetup]
1313
public void Setup()
1414
{
15-
fileContents = JsonEmbeddedFileReader.GetExpectedJson("DeserializeFeatureLinestring");
15+
fileContents = JsonEmbeddedFileReader.GetExpectedJson("FeatureLinestring");
1616
}
1717

1818
[Benchmark]

src/GeoJSON.Text.Test.Benchmark/Serialize/SerializeFeatureCollectionLinestring.cs renamed to src/GeoJSON.Text.Test.Benchmark/GeoJsonNetVsSystemText/Serialize/SerializeFeatureCollectionLinestring.cs

File renamed without changes.

src/GeoJSON.Text.Test.Benchmark/Serialize/SerializeFeatureLinestring.cs renamed to src/GeoJSON.Text.Test.Benchmark/GeoJsonNetVsSystemText/Serialize/SerializeFeatureLinestring.cs

File renamed without changes.

0 commit comments

Comments
 (0)