Skip to content

Commit 7d7f678

Browse files
committed
Merge branch 'master' of github.com:TechEmpower/FrameworkBenchmarks
2 parents a6bca34 + 8d81c9b commit 7d7f678

File tree

149 files changed

+2323
-579
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+2323
-579
lines changed

frameworks/C++/ffead-cpp/benchmark_config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@
198198
"display_name": "ffead-cpp [pg-raw-async-prof-pool-m]",
199199
"notes": "async memory profiled",
200200
"versus": "",
201-
"tags": []
201+
"tags": ["broken"]
202202
},
203203
"postgresql-raw-async-clibpqb-profiled": {
204204
"db_url": "/t4/d",
@@ -301,7 +301,7 @@
301301
"display_name": "ffead-cpp [pg-raw-async-qw-prof-pool-m]",
302302
"notes": "async memory profiled",
303303
"versus": "",
304-
"tags": []
304+
"tags": ["broken"]
305305
}
306306
}]
307307
}

frameworks/C/h2o/CMakeLists.txt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ find_path(PQ_INCLUDE postgresql/libpq-fe.h REQUIRED)
1919
find_path(YAJL_INCLUDE yajl/yajl_gen.h REQUIRED)
2020
find_program(BPFTOOL_BIN bpftool REQUIRED)
2121
find_program(CLANG_BIN clang REQUIRED)
22-
include_directories(src ${CMAKE_BINARY_DIR}/generated-headers ${BPF_INCLUDE} ${H2O_INCLUDE})
23-
include_directories(${MUSTACHE_C_INCLUDE} ${NUMA_INCLUDE} ${OPENSSL_INCLUDE} ${PQ_INCLUDE})
24-
include_directories(${YAJL_INCLUDE})
22+
include_directories(src ${CMAKE_BINARY_DIR} ${BPF_INCLUDE} ${H2O_INCLUDE} ${MUSTACHE_C_INCLUDE})
23+
include_directories(${NUMA_INCLUDE} ${OPENSSL_INCLUDE} ${PQ_INCLUDE} ${YAJL_INCLUDE})
2524
set(CMAKE_C_STANDARD 11)
2625
set(CMAKE_C_STANDARD_REQUIRED ON)
2726
add_compile_definitions(H2O_USE_LIBUV=0)
@@ -32,7 +31,7 @@ set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -D_FORTIFY_SOURCE=2")
3231
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O3")
3332
set(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} -O3")
3433
add_custom_command(
35-
OUTPUT ${CMAKE_BINARY_DIR}/generated-headers/socket_load_balancer.h
34+
OUTPUT ${CMAKE_BINARY_DIR}/socket_load_balancer.h
3635
COMMAND ${CLANG_BIN}
3736
-c
3837
-DNDEBUG
@@ -47,12 +46,12 @@ add_custom_command(
4746
${WARNING_OPTIONS}
4847
${CMAKE_CURRENT_SOURCE_DIR}/src/bpf/socket_load_balancer.c
4948
COMMAND ${BPFTOOL_BIN} gen skeleton ${CMAKE_BINARY_DIR}/socket_load_balancer.o >
50-
${CMAKE_BINARY_DIR}/generated-headers/socket_load_balancer.h
49+
${CMAKE_BINARY_DIR}/socket_load_balancer.h
5150
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/src/bpf/socket_load_balancer.c
5251
VERBATIM)
5352
add_custom_target(
5453
generated_headers
55-
DEPENDS ${CMAKE_BINARY_DIR}/generated-headers/socket_load_balancer.h)
54+
DEPENDS ${CMAKE_BINARY_DIR}/socket_load_balancer.h)
5655
file(GLOB_RECURSE HANDLER_SOURCES "src/handlers/*.c")
5756
file(GLOB SOURCES "src/*.c")
5857
add_executable(${PROJECT_NAME} ${HANDLER_SOURCES} ${SOURCES})

frameworks/C/h2o/h2o.dockerfile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ARG UBUNTU_VERSION=25.10
22

33
ARG H2O_APP_PREFIX=/opt/h2o-app
44

5-
FROM "ubuntu:${UBUNTU_VERSION}" AS compile
5+
FROM "buildpack-deps:${UBUNTU_VERSION}" AS compile
66

77
RUN echo "[timing] Installing system packages: $(date)"
88
ARG DEBIAN_FRONTEND=noninteractive
@@ -24,15 +24,12 @@ RUN apt-get install \
2424
libnuma-dev \
2525
libpq-dev \
2626
libssl-dev \
27-
libstdc++-15-dev \
2827
libtool \
2928
liburing-dev \
3029
libuv1-dev \
31-
libwslay-dev \
3230
libyajl-dev \
3331
libz-dev \
3432
make \
35-
ninja-build \
3633
pkg-config \
3734
ruby \
3835
systemtap-sdt-dev
@@ -47,7 +44,6 @@ RUN curl -LSs "https://github.com/h2o/h2o/archive/${H2O_VERSION}.tar.gz" | \
4744
-B build \
4845
-DCMAKE_C_FLAGS="-flto=auto -march=native -mtune=native" \
4946
-DWITH_MRUBY=on \
50-
-G Ninja \
5147
-S . && \
5248
cmake --build build -j && \
5349
cmake --install build
@@ -72,7 +68,6 @@ RUN cmake \
7268
-DCMAKE_BUILD_TYPE=Release \
7369
-DCMAKE_C_FLAGS="-march=native -mtune=native" \
7470
-DCMAKE_INSTALL_PREFIX="${H2O_APP_PREFIX}" \
75-
-G Ninja \
7671
-S .. && \
7772
cmake --build . -j && \
7873
cmake --install .

frameworks/CSharp/akazawayun.pro/src/AkazawaYun.Benchmark.Platform/AkazawaYun.Benchmark.Platform.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</PropertyGroup>
1616

1717
<ItemGroup>
18-
<PackageReference Include="AkazawaYun.PRO" Version="1.14.25.1105" />
18+
<PackageReference Include="AkazawaYun.PRO" Version="1.14.25.1027-p" />
1919
</ItemGroup>
2020

2121
</Project>

frameworks/CSharp/akazawayun.pro/src/AkazawaYun.Benchmark.Platform/MyBenchmarkReceptor.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
using AkazawaYun.PRO7;
2-
using System.Text;
32

43
namespace AkazawaYun.Benchmark.Platform;
54

65
class MyBenchmarkReceptor : akzWebReceptorBenchmark
76
{
87
readonly JsonModel JsonModel;
9-
readonly ReadOnlyMemory<byte> JsonContentLength;
108

119

1210
public MyBenchmarkReceptor()
@@ -15,8 +13,6 @@ public MyBenchmarkReceptor()
1513
{
1614
message = "Hello, World!"
1715
};
18-
akzJson.Text2Json(JsonModel, out ReadOnlyMemory<byte> json);
19-
JsonContentLength = Encoding.UTF8.GetBytes($"{json.Length}\r\n\r\n");
2016
}
2117

2218

@@ -26,8 +22,7 @@ public override ValueTask SendPlaintext(IHttpContext http)
2622
}
2723
public override async ValueTask SendJson(IHttpContext http)
2824
{
29-
await http.Slient.Send(DataJson_OnlyHeaderExceptContentLength);
30-
await http.Slient.Send(JsonContentLength);
25+
await http.Slient.Send(DataJson_OnlyHeader);
3126
akzJson.Text2Json(JsonModel, out ReadOnlyMemory<byte> json);
3227
await http.Slient.Send(json);
3328
}

frameworks/CSharp/akazawayun.pro/src/AkazawaYun.Benchmark.Platform/Program.cs

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,16 @@ namespace AkazawaYun.Benchmark.Platform;
55
class Program
66
{
77
static readonly akzWebBuilder builder;
8-
const int port = 8080;
98

109
static Program()
1110
{
1211
akzLog.War("AkazawaYun.PRO 平台压力测试特供版 ver2025.11.3, 只支持 /plaintext 和 /json");
13-
akzJson.Config(null, AotJsonContext.Default);
14-
builder = akzWebBuilder.Shared.SetPort(port).SetDev(true)
15-
.Add<akzXmlSummary, akzXmlSummary>(() => null)
16-
.Add<IWebReceptor, MyBenchmarkReceptor>(() => new MyBenchmarkReceptor())
17-
.Add<IWebListener, akzHttpListenerVIBenchmark>(() => new(port))
18-
.Build();
12+
akzJson.Config(AotJsonContext.Default);
13+
builder = akzWebBuilder.Shared.Build(new MyBenchmarkReceptor());
1914
}
2015
static async Task Main()
2116
{
2217
await builder.Launch();
23-
24-
Console.WriteLine("[API SELF-TEST]");
25-
string url = $"http://localhost:{port}/plaintext";
26-
Console.WriteLine(" REQ URL :" + url);
27-
string res = await akzHttpClient.Shared.Get(url).FetchString();
28-
Console.WriteLine(" RES LEN :" + res.Length);
29-
Console.WriteLine(" RES BODY:" + res);
30-
Console.WriteLine("[OK, I WORK FINE]");
31-
32-
akzLog.Default = akzLog.Output.NoneButWar;
3318
await Task.Delay(-1);
3419
}
3520
}

frameworks/CSharp/akazawayun.pro/src/AkazawaYun.Benchmark.WebApi/AkazawaYun.Benchmark.WebApi.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</PropertyGroup>
1616

1717
<ItemGroup>
18-
<PackageReference Include="AkazawaYun.PRO" Version="1.14.25.1105" />
18+
<PackageReference Include="AkazawaYun.PRO" Version="1.14.25.1110" />
1919
<PackageReference Include="MySql.Data" Version="9.4.0" />
2020
</ItemGroup>
2121

frameworks/CSharp/aspnetcore-mono/benchmark_config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"database_os": "Linux",
4141
"display_name": "ASP.NET Core [Platform, Mono, Pg]",
4242
"notes": "",
43+
"tags": ["broken"],
4344
"versus": "aspcore-ado-pg"
4445
},
4546
"mw": {
@@ -123,4 +124,4 @@
123124
"versus": "aspcore-mono-pg"
124125
}
125126
}]
126-
}
127+
}
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
2+
33
<PropertyGroup>
4-
5-
<TargetFramework>net5.0</TargetFramework>
6-
<LangVersion>9.0</LangVersion>
7-
4+
5+
<TargetFramework>net9.0</TargetFramework>
6+
<LangVersion>13.0</LangVersion>
7+
88
<AssemblyTitle>EmbedIO Benchmarks</AssemblyTitle>
99
<Description>Test suite to be executed with TechEmpower FrameworkBenchmarks.</Description>
10-
11-
<StartupObject>Benchmarks.Program</StartupObject>
10+
11+
<StartupObject>Benchmarks.Program</StartupObject>
1212
<OutputType>Exe</OutputType>
13-
13+
1414
<ServerGarbageCollection>true</ServerGarbageCollection>
1515
<TieredCompilation>false</TieredCompilation>
16-
16+
1717
</PropertyGroup>
18-
18+
1919
<ItemGroup>
20-
<PackageReference Include="EmbedIO" Version="3.4.3" />
20+
<PackageReference Include="EmbedIO" Version="3.5.2" />
2121
</ItemGroup>
22-
23-
</Project>
22+
23+
</Project>

frameworks/CSharp/embedio/Benchmarks/Program.cs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
using EmbedIO;
2-
using Swan.Logging;
3-
using System;
1+
using System;
42
using System.Text;
53
using System.Threading;
64
using System.Threading.Tasks;
75

6+
using EmbedIO;
7+
8+
using Swan.Logging;
9+
810
namespace Benchmarks
911
{
1012

@@ -21,7 +23,7 @@ public class JsonResult
2123

2224
public static class Program
2325
{
24-
private static readonly ManualResetEvent _WaitEvent = new ManualResetEvent(false);
26+
private static readonly ManualResetEvent WaitEvent = new(false);
2527

2628
public static async Task<int> Main(string[] args)
2729
{
@@ -60,12 +62,12 @@ public static async Task<int> Main(string[] args)
6062
{
6163
AppDomain.CurrentDomain.ProcessExit += (_, __) =>
6264
{
63-
_WaitEvent.Set();
65+
WaitEvent.Set();
6466
};
6567

6668
await server.RunAsync();
6769

68-
_WaitEvent.WaitOne();
70+
WaitEvent.WaitOne();
6971

7072
return 0;
7173
}

0 commit comments

Comments
 (0)