Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created July 26, 2016 03:53
Show Gist options
  • Save Whateverable/6cc3cb6c6b806f118c78f593b386544f to your computer and use it in GitHub Desktop.
Save Whateverable/6cc3cb6c6b806f118c78f593b386544f to your computer and use it in GitHub Desktop.
benchabletest
<!DOCTYPE HTML>
<html>
<head>
<title>Gnuplot Canvas Graph</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<!--[if IE]><script type="text/javascript" src="excanvas.js"></script><![endif]-->
<script src="/usr/share/gnuplot/gnuplot/4.6/js/canvasmath.js"></script>
<script src="/usr/share/gnuplot/gnuplot/4.6/js/gnuplot_common.js"></script>
<script src="/usr/share/gnuplot/gnuplot/4.6/js/gnuplot_mouse.js"></script>
<script type="text/javascript"> gnuplot.help_URL = "/usr/share/gnuplot/gnuplot/4.6/js//canvas_help.html"; </script>
<script type="text/javascript">
var canvas, ctx;
gnuplot.grid_lines = true;
gnuplot.zoomed = false;
gnuplot.active_plot_name = "gnuplot_canvas";
function gnuplot_canvas() {
canvas = document.getElementById("gnuplot_canvas");
ctx = canvas.getContext("2d");
// Gnuplot version 4.6.6
// short forms of commands provided by gnuplot_common.js
function DT (dt) {gnuplot.dashtype(dt);};
function DS (x,y) {gnuplot.dashstart(x,y);};
function DL (x,y) {gnuplot.dashstep(x,y);};
function M (x,y) {if (gnuplot.pattern.length > 0) DS(x,y); else gnuplot.M(x,y);};
function L (x,y) {if (gnuplot.pattern.length > 0) DL(x,y); else gnuplot.L(x,y);};
function Dot (x,y) {gnuplot.Dot(x/10.,y/10.);};
function Pt (N,x,y,w) {gnuplot.Pt(N,x/10.,y/10.,w/10.);};
function R (x,y,w,h) {gnuplot.R(x,y,w,h);};
function T (x,y,fontsize,justify,string) {gnuplot.T(x,y,fontsize,justify,string);};
function TR (x,y,angle,fontsize,justify,string) {gnuplot.TR(x,y,angle,fontsize,justify,string);};
function bp (x,y) {gnuplot.bp(x,y);};
function cfp () {gnuplot.cfp();};
function cfsp() {gnuplot.cfsp();};
ctx.lineCap = "butt"; ctx.lineJoin = "miter";
CanvasTextFunctions.enable(ctx);
ctx.strokeStyle = "rgb(215,215,215)";
ctx.lineWidth = 1;
ctx.lineWidth = 1;
ctx.strokeStyle = "rgb(000,000,000)";
ctx.beginPath();
M(620,3480);
L(720,3480);
M(11758,3480);
L(11658,3480);
ctx.stroke();
ctx.closePath();
T(540,3530,10.0,"Right"," 0");
ctx.beginPath();
M(620,2890);
L(720,2890);
M(11758,2890);
L(11658,2890);
ctx.stroke();
ctx.closePath();
T(540,2940,10.0,"Right"," 0.2");
ctx.beginPath();
M(620,2300);
L(720,2300);
M(11758,2300);
L(11658,2300);
ctx.stroke();
ctx.closePath();
T(540,2350,10.0,"Right"," 0.4");
ctx.beginPath();
M(620,1710);
L(720,1710);
M(11758,1710);
L(11658,1710);
ctx.stroke();
ctx.closePath();
T(540,1760,10.0,"Right"," 0.6");
ctx.beginPath();
M(620,1120);
L(720,1120);
M(11758,1120);
L(11658,1120);
ctx.stroke();
ctx.closePath();
T(540,1170,10.0,"Right"," 0.8");
ctx.beginPath();
M(620,530);
L(720,530);
M(11758,530);
L(11658,530);
ctx.stroke();
ctx.closePath();
T(540,580,10.0,"Right"," 1");
ctx.beginPath();
M(620,3480);
L(620,3380);
M(620,301);
L(620,401);
ctx.stroke();
ctx.closePath();
T(620,3630,10.0,"Center","2016.06");
T(620,3730,10.0,"Center","0.88,0.9347,0.03");
ctx.beginPath();
M(1363,3480);
L(1363,3380);
M(1363,301);
L(1363,401);
ctx.stroke();
ctx.closePath();
T(1363,3630,10.0,"Center","c3bb416");
T(1363,3730,10.0,"Center","0.86,0.8658,0");
ctx.beginPath();
M(2105,3480);
L(2105,3380);
M(2105,301);
L(2105,401);
ctx.stroke();
ctx.closePath();
T(2105,3630,10.0,"Center","ff63582");
T(2105,3730,10.0,"Center","0.87,0.8686,0");
ctx.beginPath();
M(2848,3480);
L(2848,3380);
M(2848,301);
L(2848,401);
ctx.stroke();
ctx.closePath();
T(2848,3630,10.0,"Center","6d824ec");
T(2848,3730,10.0,"Center","0.86,0.8656,0");
ctx.beginPath();
M(3590,3480);
L(3590,3380);
M(3590,301);
L(3590,401);
ctx.stroke();
ctx.closePath();
T(3590,3630,10.0,"Center","4b257a3");
T(3590,3730,10.0,"Center","0.86,0.8658,0");
ctx.beginPath();
M(4333,3480);
L(4333,3380);
M(4333,301);
L(4333,401);
ctx.stroke();
ctx.closePath();
T(4333,3630,10.0,"Center","abfe06a");
T(4333,3730,10.0,"Center","0.86,0.8690,0");
ctx.beginPath();
M(5075,3480);
L(5075,3380);
M(5075,301);
L(5075,401);
ctx.stroke();
ctx.closePath();
T(5075,3630,10.0,"Center","e4daf8a");
T(5075,3730,10.0,"Center","0.86,0.8720,0");
ctx.beginPath();
M(5818,3480);
L(5818,3380);
M(5818,301);
L(5818,401);
ctx.stroke();
ctx.closePath();
T(5818,3630,10.0,"Center","90d4072");
T(5818,3730,10.0,"Center","0.39,0.3945,0");
ctx.beginPath();
M(6560,3480);
L(6560,3380);
M(6560,301);
L(6560,401);
ctx.stroke();
ctx.closePath();
ctx.beginPath();
M(7303,3480);
L(7303,3380);
M(7303,301);
L(7303,401);
ctx.stroke();
ctx.closePath();
ctx.beginPath();
M(8045,3480);
L(8045,3380);
M(8045,301);
L(8045,401);
ctx.stroke();
ctx.closePath();
ctx.beginPath();
M(8788,3480);
L(8788,3380);
M(8788,301);
L(8788,401);
ctx.stroke();
ctx.closePath();
ctx.beginPath();
M(9530,3480);
L(9530,3380);
M(9530,301);
L(9530,401);
ctx.stroke();
ctx.closePath();
ctx.beginPath();
M(10273,3480);
L(10273,3380);
M(10273,301);
L(10273,401);
ctx.stroke();
ctx.closePath();
ctx.beginPath();
M(11015,3480);
L(11015,3380);
M(11015,301);
L(11015,401);
ctx.stroke();
ctx.closePath();
ctx.beginPath();
M(11758,3480);
L(11758,3380);
M(11758,301);
L(11758,401);
ctx.stroke();
ctx.closePath();
ctx.beginPath();
M(620,301);
L(620,3480);
L(11758,3480);
L(11758,301);
L(620,301);
ctx.closePath();
ctx.stroke();
TR(90,1941,270,10.0,"Center","Seconds");
if (typeof(gnuplot.hide_gp_plot_1) == "undefined"|| !gnuplot.hide_gp_plot_1) {
ctx.strokeStyle = "rgb(255,000,000)";
ctx.beginPath();
M(620,951);
L(1363,966);
L(2105,939);
L(2848,937);
L(3590,944);
L(4333,948);
L(5075,951);
L(5818,2338);
L(6560,2334);
L(7303,959);
L(8045,949);
L(8788,944);
L(9530,2552);
L(10273,2538);
L(11015,2534);
L(11758,2538);
ctx.stroke();
ctx.closePath();
Pt(0,620,951,60.0);
Pt(0,1363,966,60.0);
Pt(0,2105,939,60.0);
Pt(0,2848,937,60.0);
Pt(0,3590,944,60.0);
Pt(0,4333,948,60.0);
Pt(0,5075,951,60.0);
Pt(0,5818,2338,60.0);
Pt(0,6560,2334,60.0);
Pt(0,7303,959,60.0);
Pt(0,8045,949,60.0);
Pt(0,8788,944,60.0);
Pt(0,9530,2552,60.0);
Pt(0,10273,2538,60.0);
Pt(0,11015,2534,60.0);
Pt(0,11758,2538,60.0);
} // End gp_plot_1
ctx.lineWidth = 1;
ctx.strokeStyle = "rgb(000,000,000)";
ctx.beginPath();
M(620,301);
L(620,3480);
L(11758,3480);
L(11758,301);
L(620,301);
ctx.closePath();
ctx.stroke();
// plot boundaries and axis scaling information for mousing
gnuplot.plot_term_xmax = 600;
gnuplot.plot_term_ymax = 400;
gnuplot.plot_xmin = 62.0;
gnuplot.plot_xmax = 1175.8;
gnuplot.plot_ybot = 348.0;
gnuplot.plot_ytop = 30.1;
gnuplot.plot_width = 1113.8;
gnuplot.plot_height = 317.9;
gnuplot.plot_axis_xmin = 0;
gnuplot.plot_axis_xmax = 15;
gnuplot.plot_axis_ymin = 0;
gnuplot.plot_axis_ymax = 1.0775;
gnuplot.plot_axis_x2min = "none"
gnuplot.plot_axis_y2min = "none"
gnuplot.plot_logaxis_x = 0;
gnuplot.plot_logaxis_y = 0;
gnuplot.plot_axis_width = gnuplot.plot_axis_xmax - gnuplot.plot_axis_xmin;
gnuplot.plot_axis_height = gnuplot.plot_axis_ymax - gnuplot.plot_axis_ymin;
gnuplot.plot_timeaxis_x = "";
}
</script>
<link type="text/css" href="/usr/share/gnuplot/gnuplot/4.6/js/gnuplot_mouse.css" rel="stylesheet">
</head>
<body onload="gnuplot_canvas(); gnuplot.init();" oncontextmenu="return false;">
<div class="gnuplot">
<table class="mbleft"><tr><td class="mousebox">
<table class="mousebox" border=0>
<tr><td class="mousebox">
<table class="mousebox" id="gnuplot_mousebox" border=0>
<tr><td class="mbh"></td></tr>
<tr><td class="mbh">
<table class="mousebox">
<tr>
<td class="icon"></td>
<td class="icon" onclick=gnuplot.toggle_grid><img src="/usr/share/gnuplot/gnuplot/4.6/js/grid.png" id="gnuplot_grid_icon" class="icon-image" alt="#" title="toggle grid"></td>
<td class="icon" onclick=gnuplot.unzoom><img src="/usr/share/gnuplot/gnuplot/4.6/js/previouszoom.png" id="gnuplot_unzoom_icon" class="icon-image" alt="unzoom" title="unzoom"></td>
<td class="icon" onclick=gnuplot.rezoom><img src="/usr/share/gnuplot/gnuplot/4.6/js/nextzoom.png" id="gnuplot_rezoom_icon" class="icon-image" alt="rezoom" title="rezoom"></td>
<td class="icon" onclick=gnuplot.toggle_zoom_text><img src="/usr/share/gnuplot/gnuplot/4.6/js/textzoom.png" id="gnuplot_textzoom_icon" class="icon-image" alt="zoom text" title="zoom text with plot"></td>
<td class="icon" onclick=gnuplot.popup_help()><img src="/usr/share/gnuplot/gnuplot/4.6/js/help.png" id="gnuplot_help_icon" class="icon-image" alt="?" title="help"></td>
</tr>
<tr>
<td class="icon" onclick=gnuplot.toggle_plot("gp_plot_1")>1</td>
<td class="icon" > </td>
<td class="icon" > </td>
<td class="icon" > </td>
<td class="icon" > </td>
<td class="icon" > </td>
</tr>
</table>
</td></tr>
</table></td></tr><tr><td class="mousebox">
<table class="mousebox" id="gnuplot_mousebox" border=1>
<tr> <td class="mb0">x&nbsp;</td> <td class="mb1"><span id="gnuplot_canvas_x">&nbsp;</span></td> </tr>
<tr> <td class="mb0">y&nbsp;</td> <td class="mb1"><span id="gnuplot_canvas_y">&nbsp;</span></td> </tr>
</table></td></tr>
</table>
</td><td>
<table class="plot">
<tr><td>
<canvas id="gnuplot_canvas" width="600" height="400" tabindex="0">
Sorry, your browser seems not to support the HTML 5 canvas element
</canvas>
</td></tr>
</table>
</td></tr></table>
</div>
</body>
</html>
2016.06,2016.07 my ($a, $b, $c, $d, $e) = ^$_ for ^10000;my $s = $a + $b + $c + $d + $e
¦«2016.06»:0.8573
¦«c3bb416»:0.8521
¦«ff63582»:0.8613
¦«6d824ec»:0.8620
¦«4b257a3»:0.8596
¦«abfe06a»:0.8581
¦«e4daf8a»:0.8572
¦«90d4072»:0.3872
¦«23d75ed»:0.3884
¦«5dad919»:0.8546
¦«ab85ab5»:0.8580
¦«20ba0ec»:0.8595
¦«03bd34e»:0.3144
¦«23daf3b»:0.3193
¦«a557a13»:0.3208
¦«2016.07»:0.3193
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment