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