Skip to content

Commit 80d5d61

Browse files
committed
benchmark results
1 parent cd8aa0c commit 80d5d61

File tree

4 files changed

+93
-14
lines changed

4 files changed

+93
-14
lines changed
Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
11
## WebApiClientCore.Benchmarks 
2-
```
32

4-
BenchmarkDotNet v0.13.12, Windows 10 (10.0.19045.4412/22H2/2022Update)
5-
Intel Core i3-4150 CPU 3.50GHz (Haswell), 1 CPU, 4 logical and 2 physical cores
6-
.NET SDK 9.0.100-preview.4.24267.66
7-
[Host] : .NET 6.0.29 (6.0.2924.17105), X64 RyuJIT AVX2
8-
9-
Job=InProcess Toolchain=InProcessEmitToolchain
10-
11-
```
12-
| Method | Mean | Error | StdDev | Ratio | RatioSD | Gen0 | Allocated | Alloc Ratio |
13-
|-------------------------- |----------:|----------:|----------:|------:|--------:|-------:|----------:|------------:|
14-
| HttpClient_GetAsync | 3.169 μs | 0.0427 μs | 0.0357 μs | 1.00 | 0.00 | 1.4381 | 2.2 KB | 1.00 |
15-
| WebApiClientCore_GetAsync | 9.481 μs | 0.1110 μs | 0.1520 μs | 3.02 | 0.06 | 2.9907 | 4.59 KB | 2.08 |
16-
| Refit_GetAsync | 20.601 μs | 0.1449 μs | 0.1210 μs | 6.50 | 0.10 | 3.6926 | 5.67 KB | 2.57 |
3+
See benchmark [results](results).
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!DOCTYPE html>
2+
<html lang='en'>
3+
<head>
4+
<meta charset='utf-8' />
5+
<title>WebApiClientCore.Benchmarks.Requests.GetBenchmark-20240603-111450</title>
6+
7+
<style type="text/css">
8+
table { border-collapse: collapse; display: block; width: 100%; overflow: auto; }
9+
td, th { padding: 6px 13px; border: 1px solid #ddd; text-align: right; }
10+
tr { background-color: #fff; border-top: 1px solid #ccc; }
11+
tr:nth-child(even) { background: #f8f8f8; }
12+
</style>
13+
</head>
14+
<body>
15+
<pre><code>
16+
BenchmarkDotNet v0.13.12, Windows 11 (10.0.22631.3593/23H2/2023Update/SunValley3)
17+
Intel Core i7-8565U CPU 1.80GHz (Whiskey Lake), 1 CPU, 8 logical and 4 physical cores
18+
[Host] : .NET 6.0.29, X64 NativeAOT AVX2
19+
</code></pre>
20+
<pre><code>Job=InProcess Toolchain=InProcessEmitToolchain
21+
</code></pre>
22+
23+
<table>
24+
<thead><tr><th>Method </th><th>Mean</th><th>Error</th><th>StdDev</th><th>Ratio</th><th>RatioSD</th><th>Gen0</th><th>Allocated</th><th>Alloc Ratio</th>
25+
</tr>
26+
</thead><tbody><tr><td>HttpClient_GetAsync</td><td>3.201 &mu;s</td><td>0.0624 &mu;s</td><td>0.0811 &mu;s</td><td>1.00</td><td>0.00</td><td>0.5379</td><td>2.2 KB</td><td>1.00</td>
27+
</tr><tr><td>WebApiClientCore_GetAsync</td><td>8.726 &mu;s</td><td>0.1179 &mu;s</td><td>0.1103 &mu;s</td><td>2.71</td><td>0.10</td><td>1.1139</td><td>4.59 KB</td><td>2.08</td>
28+
</tr><tr><td>Refit_GetAsync</td><td>17.237 &mu;s</td><td>0.2066 &mu;s</td><td>0.1933 &mu;s</td><td>5.34</td><td>0.17</td><td>1.3733</td><td>5.67 KB</td><td>2.57</td>
29+
</tr></tbody></table>
30+
</body>
31+
</html>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!DOCTYPE html>
2+
<html lang='en'>
3+
<head>
4+
<meta charset='utf-8' />
5+
<title>WebApiClientCore.Benchmarks.Requests.PostJsonBenchmark-20240603-111552</title>
6+
7+
<style type="text/css">
8+
table { border-collapse: collapse; display: block; width: 100%; overflow: auto; }
9+
td, th { padding: 6px 13px; border: 1px solid #ddd; text-align: right; }
10+
tr { background-color: #fff; border-top: 1px solid #ccc; }
11+
tr:nth-child(even) { background: #f8f8f8; }
12+
</style>
13+
</head>
14+
<body>
15+
<pre><code>
16+
BenchmarkDotNet v0.13.12, Windows 11 (10.0.22631.3593/23H2/2023Update/SunValley3)
17+
Intel Core i7-8565U CPU 1.80GHz (Whiskey Lake), 1 CPU, 8 logical and 4 physical cores
18+
[Host] : .NET 6.0.29, X64 NativeAOT AVX2
19+
</code></pre>
20+
<pre><code>Job=InProcess Toolchain=InProcessEmitToolchain
21+
</code></pre>
22+
23+
<table>
24+
<thead><tr><th>Method </th><th>Mean</th><th>Error</th><th>StdDev</th><th>Ratio</th><th>RatioSD</th><th>Gen0</th><th>Allocated</th><th>Alloc Ratio</th>
25+
</tr>
26+
</thead><tbody><tr><td>HttpClient_PostJsonAsync</td><td>4.372 &mu;s</td><td>0.0680 &mu;s</td><td>0.0568 &mu;s</td><td>1.00</td><td>0.00</td><td>0.6409</td><td>2.64 KB</td><td>1.00</td>
27+
</tr><tr><td>WebApiClientCore_PostJsonAsync</td><td>10.299 &mu;s</td><td>0.1485 &mu;s</td><td>0.1389 &mu;s</td><td>2.35</td><td>0.04</td><td>1.1902</td><td>4.9 KB</td><td>1.86</td>
28+
</tr><tr><td>Refit_PostJsonAsync</td><td>21.006 &mu;s</td><td>0.4003 &mu;s</td><td>0.7320 &mu;s</td><td>4.84</td><td>0.19</td><td>1.5869</td><td>6.53 KB</td><td>2.47</td>
29+
</tr></tbody></table>
30+
</body>
31+
</html>
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<!DOCTYPE html>
2+
<html lang='en'>
3+
<head>
4+
<meta charset='utf-8' />
5+
<title>WebApiClientCore.Benchmarks.Requests.PutFormBenchmark-20240603-111709</title>
6+
7+
<style type="text/css">
8+
table { border-collapse: collapse; display: block; width: 100%; overflow: auto; }
9+
td, th { padding: 6px 13px; border: 1px solid #ddd; text-align: right; }
10+
tr { background-color: #fff; border-top: 1px solid #ccc; }
11+
tr:nth-child(even) { background: #f8f8f8; }
12+
</style>
13+
</head>
14+
<body>
15+
<pre><code>
16+
BenchmarkDotNet v0.13.12, Windows 11 (10.0.22631.3593/23H2/2023Update/SunValley3)
17+
Intel Core i7-8565U CPU 1.80GHz (Whiskey Lake), 1 CPU, 8 logical and 4 physical cores
18+
[Host] : .NET 6.0.29, X64 NativeAOT AVX2
19+
</code></pre>
20+
<pre><code>Job=InProcess Toolchain=InProcessEmitToolchain
21+
</code></pre>
22+
23+
<table>
24+
<thead><tr><th>Method </th><th>Mean</th><th>Error</th><th>StdDev</th><th>Ratio</th><th>RatioSD</th><th>Gen0</th><th>Allocated</th><th>Alloc Ratio</th>
25+
</tr>
26+
</thead><tbody><tr><td>WebApiClientCore_PutFormAsync</td><td>15.09 &mu;s</td><td>0.290 &mu;s</td><td>0.705 &mu;s</td><td>1.00</td><td>0.00</td><td>1.4038</td><td>5.77 KB</td><td>1.00</td>
27+
</tr><tr><td>Refit_PutFormAsync</td><td>27.61 &mu;s</td><td>0.544 &mu;s</td><td>1.333 &mu;s</td><td>1.83</td><td>0.12</td><td>1.8311</td><td>7.54 KB</td><td>1.31</td>
28+
</tr></tbody></table>
29+
</body>
30+
</html>

0 commit comments

Comments
 (0)