Elastic.CommonSchema.BenchmarkDotNetExporter 8.11.1
前缀已预留
dotnet add package Elastic.CommonSchema.BenchmarkDotNetExporter --version 8.11.1
NuGet\Install-Package Elastic.CommonSchema.BenchmarkDotNetExporter -Version 8.11.1
该命令旨在在Visual Studio的包管理器控制台中使用,因为它使用NuGet模块的Install-Package版本。
<PackageReference Include="Elastic.CommonSchema.BenchmarkDotNetExporter" Version="8.11.1" />
对于支持PackageReference的项目,将此XML节点复制到项目文件中以引用该包。
paket add Elastic.CommonSchema.BenchmarkDotNetExporter --version 8.11.1
NuGet团队不提供对此客户端的支持。请联系其维护者以获取支持。
#r "nuget: Elastic.CommonSchema.BenchmarkDotNetExporter, 8.11.1"
#r指令可用于F#交互式和Polyglot Notebooks。将其复制到交互式工具或脚本源代码中引用该包。
// Install Elastic.CommonSchema.BenchmarkDotNetExporter as a Cake Addin #addin nuget:?package=Elastic.CommonSchema.BenchmarkDotNetExporter&version=8.11.1 // Install Elastic.CommonSchema.BenchmarkDotNetExporter as a Cake Tool #tool nuget:?package=Elastic.CommonSchema.BenchmarkDotNetExporter&version=8.11.1
NuGet团队不提供对此客户端的支持。请联系其维护者以获取支持。
Elastic BenchmarkDotnet 导出器
一个用于BenchmarkDotnet的导出器,可以将基准测试结果输出直接索引到Elasticsearch中。
软件包
.NET程序集以Elastic.CommonSchema.BenchmarkDotNetExporter包名发布到NuGet。
如何启用
var options = new ElasticsearchBenchmarkExporterOptions(url)
{
GitBranch = "externally-provided-branch",
GitCommitMessage = "externally provided git commit message",
GitRepositoryIdentifier = "repository"
};
var exporter = new ElasticsearchBenchmarkExporter(options);
var config = CreateDefaultConfig().With(exporter);
BenchmarkRunner.Run(typeof(Md5VsSha256), config);
上面的代码段使用提供的ElasticsearchBenchmarkExporterOptions
配置了ElasticsearchBenchmarkExporter
。将导出器配置为使用以下方式使用Elastic Cloud:
var options = new ElasticsearchBenchmarkExporterOptions(url)
{
CloudId = "CLOUD_ID_HERE"
};
基准测试运行后的Elasticsearch搜索示例_source
{
"_index":"benchmark-dotnet-2020-01-01",
"_type":"_doc",
"_id":"pfFAh28B14pBZI_VO098",
"_score":1.0,
"_source":{
"agent":{
"git":{
"branch_name":"externally-provided-branch",
"commit_message":"externally provided git commit message",
"repository":"repository"
},
"language":{
"jit_info":"RyuJIT",
"dot_net_sdk_version":"3.0.101",
"benchmark_dot_net_caption":"BenchmarkDotNet",
"has_ryu_jit":true,
"build_configuration":"RELEASE",
"benchmark_dot_net_version":"0.12.0",
"version":".NET Core 3.0.1 (CoreCLR 4.700.19.47502, CoreFX 4.700.19.51008)"
},
"type":"Elastic.CommonSchema.BenchmarkDotNetExporter",
"version":"1.0.0+7cedae2aaa06092ea253155279b835cee6160b3a"
},
"os":{
"name":"Linux",
"version":"ubuntu 18.10",
"platform":"unix"
},
"message":null,
"benchmark":{
"q1":3632.625,
"lower_outliers":[],
"q3":5047.625,
"confidence_interval":{
"margin":14613.282591693971,
"level":12,
"mean":4123.291666666667,
"lower":-10489.990925027305,
"n":3,
"standard_error":462.4594877151704
},
"percentiles":{
"p0":3632.625,
"p67":4151.345,
"p25":3661.125,
"p100":5047.625,
"p90":4776.025000000001,
"p80":4504.425,
"p50":3689.625,
"p85":4640.225,
"p95":4911.825
},
"memory":{
"bytes_allocated_per_operation":112,
"total_operations":4,
"gen2_collections":0,
"gen1_collections":0,
"gen0_collections":0
},
"max":5047.625,
"interquartile_range":1415,
"all_outliers":[],
"upper_fence":7170.125,
"standard_deviation":801.0033291649501,
"kurtosis":0.6666666666666661,
"n":3,
"standard_error":462.4594877151704,
"min":3632.625,
"median":3689.625,
"upper_outliers":[],
"variance":641606.3333333333,
"mean":4123.291666666667,
"lower_fence":1510.125,
"skewness":0.3827086238595402
},
"@timestamp":"2020-01-08T22:22:10.7917398+00:00",
"host":{
"hardware_timer_kind":"Unknown",
"physical_processor_count":1,
"logical_core_count":12,
"in_docker":false,
"processor_name":"Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz",
"chronometer_frequency_hertz":1000000000,
"has_attached_debugger":false,
"physical_core_count":6,
"architecture":"X64"
},
"log.level":null,
"event":{
"duration":1385324200,
"measurement_stages":[
{
"operations":2,
"iteration_mode":"Overhead",
"iteration_stage":"Jitting"
},
{
"operations":2,
"iteration_mode":"Workload",
"iteration_stage":"Jitting"
},
{
"operations":4,
"iteration_mode":"Overhead",
"iteration_stage":"Warmup"
},
{
"operations":4,
"iteration_mode":"Overhead",
"iteration_stage":"Actual"
},
{
"operations":4,
"iteration_mode":"Workload",
"iteration_stage":"Warmup"
},
{
"operations":4,
"iteration_mode":"Workload",
"iteration_stage":"Actual"
},
{
"operations":4,
"iteration_mode":"Workload",
"iteration_stage":"Result"
}
],
"job_config":{
"run_time":".NET Core 3.0",
"jit":"Default",
"launch":{
"unroll_factor":2,
"max_iteration_count":0,
"launch_count":1,
"iteration_count":3,
"run_strategy":"Throughput",
"iteration_time_in_milliseconds":0,
"warm_count":3,
"max_warmup_iteration_count":0,
"invocation_count":4,
"min_warmup_iteration_count":0,
"min_iteration_count":0
},
"id":"ShortRun",
"gc":{
"heap_affinitize_mask":0,
"server":false,
"no_affinitize":false,
"allow_very_large_objects":false,
"retain_vm":false,
"cpu_groups":false,
"concurrent":false,
"heap_count":0,
"force":false
},
"platform":"AnyCpu"
},
"original":"Md5VsSha256.Sha256: ShortRun(Runtime=.NET Core 3.0, InvocationCount=4, IterationCount=3, LaunchCount=1, UnrollFactor=2, WarmupCount=3) [N=1000]",
"method":"Elastic.CommonSchema.BenchmarkDotNetExporter.IntegrationTests.Md5VsSha256.Sha256(N: 1000)",
"module":"Elastic.CommonSchema.BenchmarkDotNetExporter.IntegrationTests",
"description":"Sha256",
"action":"Sha256",
"category":"Elastic.CommonSchema.BenchmarkDotNetExporter.IntegrationTests.Md5VsSha256-20200108-232208",
"type":"Md5VsSha256",
"parameters":"N=1000",
"repetitions":{
"measured":4,
"warmup":4
}
}
}
}
版权和许可
此软件的版权(c)归Elasticsearch BV所有,版权所有,2014-2020。
这是免费软件,许可协议为:Apache许可证版本2.0。
产品 | 版本 兼容的和额外计算的目标框架版本。 |
---|---|
.NET | |
.NET Core | |
.NET Standard | |
.NET Framework | net461 已计算。 net462 已计算。 net463 已计算。 net47 已计算。 net471 已计算。 net472 已计算。 net48 已计算。 net481 已计算。 |
MonoAndroid | monoandroid 已计算。 |
MonoMac | monomac 已计算。 |
MonoTouch | monotouch 已计算。 |
Tizen | tizen40 已计算。 tizen60 已计算。 |
Xamarin.iOS | xamarinios 已计算。 |
Xamarin.Mac | xamarinmac 已计算。 |
Xamarin.TVOS | xamarintvos 已计算。 |
Xamarin.WatchOS | xamarinwatchos 已计算。 |
-
.NETStandard 2.0
- BenchmarkDotNet (>= 0.13.1)
- Elastic.Ingest.Elasticsearch.CommonSchema (>= 8.11.1)
-
.NETStandard 2.1
- BenchmarkDotNet (>= 0.13.1)
- Elastic.Ingest.Elasticsearch.CommonSchema (>= 8.11.1)
NuGet 包
此包没有被任何 NuGet 包使用。
GitHub 代码库 (1)
显示依赖 Elastic.CommonSchema.BenchmarkDotNetExporter 的前 1 个最流行 GitHub 代码库
代码库 | 星标 |
---|---|
elastic/apm-agent-dotnet
|
版本 | 下载 | 最后更新时间 |
---|---|---|
8.11.1 | 136 | 6/10/2024 |
8.11.0 | 109 | 4/10/2024 |
8.6.1 | 496 | 8/3/2023 |
8.6.0 | 180 | 5/9/2023 |
8.4.0-alpha4 | 167 | 3/28/2023 |
8.4.0-alpha3 | 150 | 3/15/2023 |
8.4.0-alpha2 | 164 | 3/1/2023 |
8.4.0-alpha1 | 159 | 2/20/2023 |
1.6.0-alpha1 | 2,278 | 6/2/2021 |
1.5.3 | 7,987 | 6/1/2021 |
1.5.1 | 980 | 6/3/2020 |
1.5.0 | 131,868 | 3/30/2020 |
1.4.4 | 538 | 3/25/2020 |
1.4.3 | 568 | 3/16/2020 |
1.4.2 | 530 | 3/6/2020 |
1.4.1 | 526 | 2/26/2020 |
1.4.0 | 522 | 1/29/2020 |