Skip to content

Commit 860529d

Browse files
author
Martin Boje Carpentier
committed
Updated run params
1 parent af6d9a2 commit 860529d

4 files changed

Lines changed: 11 additions & 12 deletions

File tree

.github/workflows/continous-benchmark.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
key: ${{ runner.os }}-benchmark
3232
# Run `github-action-benchmark` action
3333
- name: Store benchmark result for serialize feature collection
34-
uses: rhysd/github-action-benchmark@v1
34+
uses: Happypig375/github-action-benchmark@v1
3535
with:
3636
# What benchmark tool the output.txt came from
3737
tool: 'benchmarkdotnet'
@@ -42,7 +42,7 @@ jobs:
4242
# Upload the updated cache file for the next job by actions/cache
4343
# Run `github-action-benchmark` action
4444
- name: Store benchmark result for deserialize feature collection
45-
uses: rhysd/github-action-benchmark@v1
45+
uses: Happypig375/github-action-benchmark@v1
4646
with:
4747
# What benchmark tool the output.txt came from
4848
tool: 'benchmarkdotnet'

src/GeoJSON.Text.Test.Benchmark/Deserialize/DeserializeFeatureCollectionLinestring.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@
44
namespace GeoJSON.Text.Test.Benchmark.Deserialize
55
{
66
[Config(typeof(TestConfig))]
7-
[MemoryDiagnoser]
87
public class DeserializeFeatureCollectionLinestring
98
{
109
string fileContents = "";
1110

12-
[Params(1000, 10000/*, 100000*/)]
11+
[Params(10000)]
1312
public int N;
1413

1514
[GlobalSetup]

src/GeoJSON.Text.Test.Benchmark/Program.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ public class Program
99
{
1010
public static void Main(string[] args)
1111
{
12-
// Serialize
13-
var summary1 = BenchmarkRunner.Run<SerializeFeatureCollectionLinestring>();
14-
var summary2 = BenchmarkRunner.Run<SerializeFeatureLinestring>();
15-
16-
// Deserialize
17-
var summary3 = BenchmarkRunner.Run<DeserializeFeatureLinestring>();
18-
var summary4 = BenchmarkRunner.Run<DeserializeFeatureCollectionLinestring>();
12+
var switcher = new BenchmarkSwitcher(new[] {
13+
typeof(SerializeFeatureCollectionLinestring),
14+
typeof(SerializeFeatureLinestring),
15+
typeof(DeserializeFeatureLinestring),
16+
typeof(DeserializeFeatureCollectionLinestring),
17+
});
18+
switcher.Run(args);
1919
}
2020
}
2121
}

src/GeoJSON.Text.Test.Benchmark/Serialize/SerializeFeatureCollectionLinestring.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class SerializeFeatureCollectionLinestring
1313
// GeoJson.Text
1414
private Text.Feature.FeatureCollection featureCollectionGeoJsonTEXT = new Text.Feature.FeatureCollection();
1515

16-
[Params(1000, 10000)]
16+
[Params(10000)]
1717
public int N;
1818

1919
[GlobalSetup]

0 commit comments

Comments
 (0)