remove additional logging from load test
This commit is contained in:
@@ -40,7 +40,6 @@ async Task<List<ILoadTest>> GetLoadEndpoints(int count)
|
|||||||
var loads = new List<ILoadTest>();
|
var loads = new List<ILoadTest>();
|
||||||
for (int i = 0; i < count; i++)
|
for (int i = 0; i < count; i++)
|
||||||
{
|
{
|
||||||
Console.WriteLine($"Initializing {i}");
|
|
||||||
var builder = Host.CreateApplicationBuilder(new HostApplicationBuilderSettings { DisableDefaults = true });
|
var builder = Host.CreateApplicationBuilder(new HostApplicationBuilderSettings { DisableDefaults = true });
|
||||||
builder.Services.AddSingleton<IContextualSerializationToolKit, CborSerializationToolkit>();
|
builder.Services.AddSingleton<IContextualSerializationToolKit, CborSerializationToolkit>();
|
||||||
builder.Services.AddSingleton<IEndPointContext, EndPointContext>();
|
builder.Services.AddSingleton<IEndPointContext, EndPointContext>();
|
||||||
@@ -74,13 +73,11 @@ async Task<List<ILoadTest>> GetLoadEndpoints(int count)
|
|||||||
|
|
||||||
var app = builder.Build();
|
var app = builder.Build();
|
||||||
|
|
||||||
Console.WriteLine($"Connecting {i}");
|
|
||||||
var frontendBridge = app.Services.GetService<IFrontendBridge>()!;
|
var frontendBridge = app.Services.GetService<IFrontendBridge>()!;
|
||||||
await frontendBridge.Connect();
|
await frontendBridge.Connect();
|
||||||
// _ = app.Services.GetService<IRequestExtractor>()!.StartExtraction();
|
// _ = app.Services.GetService<IRequestExtractor>()!.StartExtraction();
|
||||||
// _ = app.Services.GetService<IUntrustedInteractionModule>().Start(serverEndPoint);
|
// _ = app.Services.GetService<IUntrustedInteractionModule>().Start(serverEndPoint);
|
||||||
var context = app.Services.GetService<IInstanceRepository>();
|
var context = app.Services.GetService<IInstanceRepository>();
|
||||||
Console.WriteLine($"Connected {i}");
|
|
||||||
|
|
||||||
var singletonObject =
|
var singletonObject =
|
||||||
context.GetSingletonObject<ILoadTest>(
|
context.GetSingletonObject<ILoadTest>(
|
||||||
@@ -113,7 +110,6 @@ async Task<int> Requests(CancellationToken token, int id, ILoadTest load)
|
|||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
Console.WriteLine(id);
|
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|||||||
Reference in New Issue
Block a user