сколько реквестов секунду или минуту?
нет ни одного коре и часто нода
а на дотнете не смогу и это при том что на ноде и го я не программировал, а в шарпей глубоко погружался в свое время.
читал доки по первым двум
а последний усиленно изучал
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Hosting;
CreateHostBuilder(args).Build().Run();
static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.Configure(app =>
{
app.UseRouting();
app.UseEndpoints(endpoints =>
{
endpoints.MapGet("/", async context =>
{
await context.Response.WriteAsync("Hello World!");
});
});
});
});
vabka@DESKTOP-7AFIA69:/mnt/c/Users/Vabka$ time ab -n 1000000 -c 100 http://localhost:5000/
This is ApacheBench, Version 2.3 <$Revision: 1843412 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Completed 100000 requests
Completed 200000 requests
Completed 300000 requests
Completed 400000 requests
Completed 500000 requests
Completed 600000 requests
Completed 700000 requests
Completed 800000 requests
Completed 900000 requests
Completed 1000000 requests
Finished 1000000 requests
Server Software: Kestrel
Server Hostname: localhost
Server Port: 5000
Document Path: /
Document Length: 12 bytes
Concurrency Level: 100
Time taken for tests: 75.804 seconds
Complete requests: 1000000
Failed requests: 0
Total transferred: 104000000 bytes
HTML transferred: 12000000 bytes
Requests per second: 13191.89 [#/sec] (mean)
Time per request: 7.580 [ms] (mean)
Time per request: 0.076 [ms] (mean, across all concurrent requests)
Transfer rate: 1339.80 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 3 0.8 3 13
Processing: 1 4 1.1 4 44
Waiting: 0 3 1.0 3 43
Total: 2 8 1.2 8 46
Percentage of the requests served within a certain time (ms)
50% 8
66% 8
75% 8
80% 8
90% 9
95% 9
98% 10
99% 10
100% 46 (longest request)
real 1m16.619s
user 0m6.539s
sys 1m8.533s
vabka@DESKTOP-7AFIA69:/mnt/c/Users/Vabka$ time ab -n 1000000 -c 1000 http://localhost:5000/
This is ApacheBench, Version 2.3 <$Revision: 1843412 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Completed 100000 requests
Completed 200000 requests
Completed 300000 requests
Completed 400000 requests
Completed 500000 requests
Completed 600000 requests
Completed 700000 requests
Completed 800000 requests
Completed 900000 requests
Completed 1000000 requests
Finished 1000000 requests
Server Software: Kestrel
Server Hostname: localhost
Server Port: 5000
Document Path: /
Document Length: 12 bytes
Concurrency Level: 1000
Time taken for tests: 64.200 seconds
Complete requests: 1000000
Failed requests: 0
Total transferred: 104000000 bytes
HTML transferred: 12000000 bytes
Requests per second: 15576.32 [#/sec] (mean)
Time per request: 64.200 [ms] (mean)
Time per request: 0.064 [ms] (mean, across all concurrent requests)
Transfer rate: 1581.97 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 44 179.1 14 3179
Processing: 1 20 12.4 18 451
Waiting: 1 15 10.6 13 447
Total: 4 64 181.1 34 3215
Percentage of the requests served within a certain time (ms)
50% 34
66% 46
75% 52
80% 55
90% 62
95% 67
98% 1053
99% 1089
100% 3215 (longest request)
real 1m5.021s
user 0m6.980s
sys 0m55.571s
vabka@DESKTOP-7AFIA69:/mnt/e/src/WebApplication/WebApplication/publish$ neofetch
.-/+oossssoo+/-. vabka@DESKTOP-7AFIA69
`:+ssssssssssssssssss+:` ---------------------
-+ssssssssssssssssssyyssss+- OS: Ubuntu 20.04.2 LTS on Windows 10 x86_64
.ossssssssssssssssssdMMMNysssso. Kernel: 4.19.104-microsoft-standard
/ssssssssssshdmmNNmmyNMMMMhssssss/ Uptime: 35 mins
+ssssssssshmydMMMMMMMNddddyssssssss+ Packages: 688 (dpkg)
/sssssssshNMMMyhhyyyyhmNMMMNhssssssss/ Shell: bash 5.0.17
.ssssssssdMMMNhsssssssssshNMMMdssssssss. Terminal: /dev/pts/0
+sssshhhyNMMNyssssssssssssyNMMMysssssss+ CPU: AMD Ryzen 5 2600 (12) @ 3.400GHz
ossyNMMMNyMMhsssssssssssssshmmmhssssssso Memory: 102MiB / 25624MiB
ossyNMMMNyMMhsssssssssssssshmmmhssssssso
+sssshhhyNMMNyssssssssssssyNMMMysssssss+
.ssssssssdMMMNhsssssssssshNMMMdssssssss.
/sssssssshNMMMyhhyyyyhdNMMMNhssssssss/
+sssssssssdmydMMMMMMMMddddyssssssss+
/ssssssssssshdmNNNNmyNMMMMhssssss/
.ossssssssssssssssssdMMMNysssso.
-+sssssssssssssssssyyyssss+-
`:+ssssssssssssssssss+:`
.-/+oossssoo+/-.