JsonExporters: add information about namespaces, resolves #246

This commit is contained in:
Andrey Akinshin 2016-08-20 13:52:28 +03:00
Родитель a8b4e7bdd4
Коммит e6a4aec0ca
3 изменённых файлов: 62 добавлений и 58 удалений

Просмотреть файл

@ -1,3 +1,4 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/PLACE_METHOD_ATTRIBUTE_ON_SAME_LINE/@EntryValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/SPACE_WITHIN_SINGLE_LINE_ARRAY_INITIALIZER_BRACES/@EntryValue">True</s:Boolean>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=GC/@EntryIndexedValue">GC</s:String></wpf:ResourceDictionary>

Просмотреть файл

@ -86,6 +86,7 @@ Example of `IntroJsonExport-report-brief.json`:
"Benchmarks":[
{
"ShortInfo":"IntroJsonExport_Sleep10",
"Namespace":"BenchmarkDotNet.Samples.Intro",
"Type":"IntroJsonExport",
"Method":"Sleep10",
"MethodTitle":"Sleep10",
@ -104,45 +105,46 @@ Example of `IntroJsonExport-report-brief.json`:
},
"Statistics":{
"N":20,
"Min":10287928.031875,
"LowerFence":10229901.2459375,
"Q1":10352130.9040625,
"Median":10393069.119375,
"Mean":10390116.844234375,
"Q3":10433617.3428125,
"UpperFence":10555847.000937503,
"Max":10473396.5165625,
"InterquartileRange":81486.438750000671,
"Min":10265993.7209375,
"LowerFence":10255329.082734371,
"Q1":10337369.528437499,
"Median":10360382.6953125,
"Mean":10362283.085796878,
"Q3":10392063.158906251,
"UpperFence":10474103.60460938,
"Max":10436008.3209375,
"InterquartileRange":54693.630468752235,
"Outliers":[
],
"StandardError":12514.907849226243,
"Variance":3132458369.4924932,
"StandardDeviation":55968.36936603114,
"Skewness":-0.26688070240057665,
"Kurtosis":1.87502014055259,
"StandardError":10219.304338928456,
"Variance":2088683623.4328396,
"StandardDeviation":45702.118369205156,
"Skewness":-0.1242777170069375,
"Kurtosis":2.31980277935226,
"ConfidenceInterval":{
"Mean":10390116.844234375,
"Error":12514.907849226243,
"Mean":10362283.085796878,
"Error":10219.304338928456,
"Level":6,
"Margin":24529.219384483436,
"Lower":10365587.624849891,
"Upper":10414646.063618859
"Margin":20029.836504299772,
"Lower":10342253.249292579,
"Upper":10382312.922301177
},
"Percentiles":{
"P0":10287928.031875,
"P25":10354961.078906249,
"P50":10393069.119375,
"P67":10423662.05225,
"P80":10439024.7445,
"P85":10447944.260171875,
"P90":10461577.210718751,
"P95":10465571.164984375,
"P100":10473396.5165625
"P0":10265993.7209375,
"P25":10338555.905625,
"P50":10360382.6953125,
"P67":10373496.555659376,
"P80":10400703.4841875,
"P85":10417280.326718749,
"P90":10424125.595812501,
"P95":10435620.51609375,
"P100":10436008.3209375
}
}
},{
"ShortInfo":"IntroJsonExport_Sleep20",
"Namespace":"BenchmarkDotNet.Samples.Intro",
"Type":"IntroJsonExport",
"Method":"Sleep20",
"MethodTitle":"Sleep20",
@ -161,41 +163,41 @@ Example of `IntroJsonExport-report-brief.json`:
},
"Statistics":{
"N":20,
"Min":20263046.11125,
"LowerFence":20185645.475625,
"Q1":20313096.286875002,
"Median":20336976.9121875,
"Mean":20351602.702031251,
"Q3":20398063.494375,
"UpperFence":20525514.305625,
"Max":20464617.251875,
"InterquartileRange":84967.207499999553,
"Min":20258672.37,
"LowerFence":20206333.269843742,
"Q1":20325342.761249997,
"Median":20362636.192500003,
"Mean":20360791.931687497,
"Q3":20404682.4221875,
"UpperFence":20523691.913593754,
"Max":20422396.073125,
"InterquartileRange":79339.66093750298,
"Outliers":[
],
"StandardError":11991.004261727438,
"Variance":2875683664.0953112,
"StandardDeviation":53625.401295424461,
"Skewness":0.15925629564588534,
"Kurtosis":2.0971344882863447,
"StandardError":10728.817907277158,
"Variance":2302150673.7502208,
"StandardDeviation":47980.732317777525,
"Skewness":-0.50826238372439869,
"Kurtosis":2.11050327966268,
"ConfidenceInterval":{
"Mean":20351602.702031251,
"Error":11991.004261727438,
"Mean":20360791.931687497,
"Error":10728.817907277158,
"Level":6,
"Margin":23502.368352985777,
"Lower":20328100.333678264,
"Upper":20375105.070384238
"Margin":21028.48309826323,
"Lower":20339763.448589232,
"Upper":20381820.414785761
},
"Percentiles":{
"P0":20263046.11125,
"P25":20313438.8965625,
"P50":20336976.9121875,
"P67":20388224.909718752,
"P80":20400439.8935,
"P85":20405415.752406247,
"P90":20409280.681625,
"P95":20413094.583750002,
"P100":20464617.251875
"P0":20258672.37,
"P25":20327638.975312497,
"P50":20362636.192500003,
"P67":20391669.3762875,
"P80":20406370.68625,
"P85":20412542.034406248,
"P90":20414412.5376875,
"P95":20416606.697718751,
"P100":20422396.073125
}
}
}

Просмотреть файл

@ -46,10 +46,11 @@ namespace BenchmarkDotNet.Exporters.Json
var benchmarks = summary.Reports.Select(r =>
{
var data = new Dictionary<string, object>
var data = new Dictionary<string, object>
{
// We don't need Benchmark.ShortInfo, that info is available via Benchmark.Parameters below
{ "ShortInfo", r.Benchmark.ShortInfo },
{ "Namespace", r.Benchmark.Target.Type.Namespace },
{ "Type", r.Benchmark.Target.Type.Name },
{ "Method", r.Benchmark.Target.Method.Name },
{ "MethodTitle", r.Benchmark.Target.MethodTitle },
@ -84,4 +85,4 @@ namespace BenchmarkDotNet.Exporters.Json
}));
}
}
}
}