Skip to content

Commit bc5c4d9

Browse files
authored
update version to decrease send count. (#10434)
* add new test : CSharp/akazawayun.pro * modify config and code * add content-type * update url * update package version * add 3 new tests: db、queries、updates 1. add 3 new tests: db、queries、updates; 2. split code to multi files; * - * use generated sql instead const string. * update version * fix bug of db query * set port to 8080 * 升级 akazawayun.pro 框架版本到 14 * i forget to update the port change... * test self whether work fine.. * update nuget version * why pr failed... * 不小心多提交了别人的框架...改回 * akazawayun fix bug * remove db test there is some error in mysql * confirmed there is bug in mysql.data 9.5.0 还是用8080端口吧- -b, 都用8080, 改其他的对比测时不方便 * downgrade mysql.data back to 9.4.0 * fix bug of akazawayun.pro * update version of akazawayun.pro * update version * add platform test * update nupkg version * update version * update version. * fix debug * update version. * update version. * update version to decrease send count.
1 parent d180bfa commit bc5c4d9

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

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.1024-p" />
18+
<PackageReference Include="AkazawaYun.PRO" Version="1.14.25.1024-pnv" />
1919
</ItemGroup>
2020

2121
</Project>

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,27 @@ namespace AkazawaYun.Benchmark.Platform;
55
class MyBenchmarkReceptor : akaWebReceptorBenchmark
66
{
77
readonly JsonModel JsonModel;
8-
8+
readonly ReadOnlyMemory<byte> OnlyUsedForTestNonAllocJson;
99

1010
public MyBenchmarkReceptor()
1111
{
1212
JsonModel = new()
1313
{
1414
message = "Hello, World!"
1515
};
16+
akaJson.Text2Json(JsonModel, out OnlyUsedForTestNonAllocJson);
1617
}
1718

1819

19-
public override ValueTask SendPlaintext(IHttpContext http)
20-
{
21-
return base.SendPlaintext(http);
22-
}
2320
public override async ValueTask SendJson(IHttpContext http)
2421
{
2522
await http.Slient.Send(DataJson_OnlyHeader);
26-
akaJson.Text2Json(JsonModel, out ReadOnlyMemory<byte> json);
27-
await http.Slient.Send(json);
23+
24+
//akaJson.Text2Json(JsonModel, out ReadOnlyMemory<byte> json);
25+
//await http.Slient.Send(json);
26+
27+
// [WARN_2025.12.21] this code is temporaryly not creating new json for every request, only for test if use fixed json data to simulate non-alloc new byte-array !!!
28+
await http.Slient.Send(OnlyUsedForTestNonAllocJson);
2829
}
2930
public override ValueTask SendDb(IHttpContext http)
3031
{

0 commit comments

Comments
 (0)