add plot for difficulty variant tests

pull/4/head
stoffu 4 years ago
parent 71734f62a6
commit 7825b04b46
No known key found for this signature in database
GPG Key ID: 41DAB8343A9EC012

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>CryptoNote difficulty lag/cut removal tests</title>
<title>CryptoNote difficulty variant tests</title>
<style>
#chartdiv {
@ -19,18 +19,18 @@
<script src="https://www.amcharts.com/lib/3/themes/light.js"></script>
<link rel="stylesheet" href="https://www.amcharts.com/lib/3/plugins/export/export.css" type="text/css" media="all" />
<script src="data-lagcut-w.js"></script>
<script src="data-lagcut-wo.js"></script>
<script src="data-v1.js"></script>
<script src="data-v9.js"></script>
<script>
const N = chartData_w.length;
const N = chartData_v1.length;
var chartData = [];
for (var i = 0; i < N; ++i) {
var entry = {};
entry.height = i;
entry.block_time_old = chartData_w[i][0];
entry.difficulty_old = chartData_w[i][1];
entry.block_time_new = chartData_wo[i][0];
entry.difficulty_new = chartData_wo[i][1];
entry.block_time_v1 = chartData_v1[i][0];
entry.difficulty_v1 = chartData_v1[i][1];
entry.block_time_v9 = chartData_v9[i][0];
entry.difficulty_v9 = chartData_v9[i][1];
chartData.push(entry);
}
var chart = AmCharts.makeChart("chartdiv", {
@ -61,17 +61,17 @@
}],
"mouseWheelZoomEnabled": true,
"graphs": [{
"id": "g_block_time_old",
"id": "g_block_time_v1",
"valueAxis": "va_time",
"lineColor": "#faa",
"lineThickness": 2,
"balloonText": "bt (old): <b>[[value]]</b>s",
"balloonText": "blktime (v1): <b>[[value]]</b>s",
"bullet": "round",
"bulletBorderAlpha": 1,
"bulletColor": "#FFFFFF",
"hideBulletsCount": 50,
"title": "Block time (old)",
"valueField": "block_time_old",
"title": "Block time (v1)",
"valueField": "block_time_v1",
"useLineColorForBulletBorder": true,
// "balloonColor": "white",
"balloon":{
@ -80,34 +80,34 @@
"cornerRadius": 10,
}
},{
"id": "g_difficulty_old",
"id": "g_difficulty_v1",
"valueAxis": "va_diff",
"lineColor": "#922",
"lineThickness": 1,
"showBalloon" : true,
"balloonText": "d (old): <b>[[value]]</b>",
"balloonText": "diff (v1): <b>[[value]]</b>",
"bullet": "round",
"bulletBorderAlpha": 1,
"bulletColor": "#FFFFFF",
"hideBulletsCount": 50,
"title": "Difficulty (old)",
"valueField": "difficulty_old",
"title": "Difficulty (v1)",
"valueField": "difficulty_v1",
"useLineColorForBulletBorder": true,
"balloon":{
"cornerRadius": 10,
}
},{
"id": "g_block_time_new",
"id": "g_block_time_v9",
"valueAxis": "va_time",
"lineColor": "#aaf",
"lineThickness": 2,
"balloonText": "bt (new): <b>[[value]]</b>s",
"balloonText": "blktime (v9): <b>[[value]]</b>s",
"bullet": "round",
"bulletBorderAlpha": 1,
"bulletColor": "#FFFFFF",
"hideBulletsCount": 50,
"title": "Block time (new)",
"valueField": "block_time_new",
"title": "Block time (v9)",
"valueField": "block_time_v9",
"useLineColorForBulletBorder": true,
// "balloonColor": "white",
"balloon":{
@ -116,18 +116,18 @@
"cornerRadius": 10,
}
},{
"id": "g_difficulty_new",
"id": "g_difficulty_v9",
"valueAxis": "va_diff",
"lineColor": "#229",
"lineThickness": 1,
"showBalloon" : true,
"balloonText": "d (new): <b>[[value]]</b>",
"balloonText": "diff (v9): <b>[[value]]</b>",
"bullet": "round",
"bulletBorderAlpha": 1,
"bulletColor": "#FFFFFF",
"hideBulletsCount": 50,
"title": "Difficulty (new)",
"valueField": "difficulty_new",
"title": "Difficulty (v9)",
"valueField": "difficulty_v9",
"useLineColorForBulletBorder": true,
"balloon":{
"cornerRadius": 10,
@ -163,7 +163,7 @@
</script>
</head>
<body>
<h1>CryptoNote difficulty lag/cut removal tests</h1>
<h1>CryptoNote difficulty variant tests</h1>
<div id="chartdiv"></div>
<p><input type="checkbox" id="pan" onclick="togglePan()">Enable panning</p>
</body>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save