Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Benchmarkings/AspNetColdBootAot/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Net;
using System.Net.Sockets;
using System.Runtime.CompilerServices;
using System.Text;

internal static class Boot
{
Expand All @@ -28,8 +29,9 @@ public static async Task Main(string[] args)
var ipAdress = IPAddress.Parse("127.0.0.1");
await sock.ConnectAsync(new IPEndPoint(ipAdress, 5000));
sock.Send("GET / HTTP/1.1\r\nHost: S\r\n\r\n"u8);
var buffer = new byte[128];
var buffer = new byte[512];
var receivedBytesCount = await sock.ReceiveAsync(buffer);
Console.WriteLine(Encoding.UTF8.GetString(buffer, 0, receivedBytesCount));

var elapsed = Stopwatch.GetElapsedTime(Boot.StartTs);
Console.WriteLine($"Process-start → first response: {elapsed.TotalMilliseconds:F3} ms");
Expand Down
2 changes: 1 addition & 1 deletion URocket/URocket.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<TargetFrameworks>net9.0;net10.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
Expand Down