Skip to content

Commit 2bceacf

Browse files
committed
fixed namespaces and ignores
1 parent f6fc863 commit 2bceacf

2 files changed

Lines changed: 13 additions & 6 deletions

File tree

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,8 @@ docs/api
8080

8181
# Rider
8282
.idea/
83-
.idea_modules/
83+
.idea_modules/
84+
85+
# Benchmarkdotnet
86+
87+
benchmarks/ModelContextProtocol.Benchmarks/BenchmarkDotNet.Artifacts/

benchmarks/ModelContextProtocol.Benchmarks/JsonRpcMessageDeserializationBenchmarks.cs renamed to benchmarks/ModelContextProtocol.Benchmarks/JsonRpcMessageSerializationBenchmarks.cs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
1-
using BenchmarkDotNet.Attributes;
2-
using ModelContextProtocol;
3-
using ModelContextProtocol.Protocol;
41
using System.Text.Json;
52
using System.Text.Json.Nodes;
3+
using BenchmarkDotNet.Attributes;
4+
using ModelContextProtocol.Protocol;
5+
6+
namespace ModelContextProtocol.Benchmarks;
67

7-
public class JsonRpcMessageDeserializationBenchmarks
8+
[MemoryDiagnoser]
9+
public class JsonRpcMessageSerializationBenchmarks
810
{
911
private byte[] _requestJson = null!;
1012
private byte[] _notificationJson = null!;
1113
private byte[] _responseJson = null!;
1214
private byte[] _errorJson = null!;
15+
1316
private JsonSerializerOptions _options = null!;
1417

1518
[GlobalSetup]
@@ -66,4 +69,4 @@ public JsonRpcMessage DeserializeResponse() =>
6669
[Benchmark]
6770
public JsonRpcMessage DeserializeError() =>
6871
JsonSerializer.Deserialize<JsonRpcMessage>(_errorJson, _options)!;
69-
}
72+
}

0 commit comments

Comments
 (0)