@@ -26,7 +26,7 @@ function load_json(filename, callback) {
2626}
2727
2828function normalize ( x , unit_scale ) {
29- scale = 1 / unit_scale ;
29+ scale = 100 / ( x [ 0 ] * unit_scale ) ;
3030 // scale = 100 / x[0];
3131 // scale = 100 / x[x.length - 1];
3232 return x . map ( xi => scale * xi ) ;
@@ -50,7 +50,7 @@ function plot_latency_chart(data, unit_scale, y_label) {
5050 var layout = {
5151 margin : { b : 40 , t : 20 } ,
5252 hovermode : 'closest' ,
53- yaxis : { title : y_label , type : 'log' } ,
53+ yaxis : { title : y_label } ,
5454 legend : { "orientation" : "h" }
5555 }
5656 Plotly . plot ( chart , series , layout ) ;
@@ -69,7 +69,7 @@ function plot_chart(data, chart_key, unit_scale, y_label) {
6969 var layout = {
7070 margin : { b : 40 , t : 20 } ,
7171 hovermode : 'closest' ,
72- yaxis : { title : y_label , type : 'log' } ,
72+ yaxis : { title : y_label } ,
7373 legend : { "orientation" : "h" }
7474 }
7575 Plotly . plot ( chart , series , layout ) ;
@@ -109,11 +109,11 @@ function plot_summary_chart(data, series_info) {
109109 return
110110 } ) ;
111111 load_json ( "data.json" , function ( data ) {
112- charts . push ( plot_latency_chart ( data , 1e9 , "Wall time (seconds) " ) ) ;
113- charts . push ( plot_chart ( data , 'time_min' , 1e9 , "Wall time (seconds)" ) ) ;
114- charts . push ( plot_chart ( data , 'gc_min' , 1e9 , "Wall time (seconds)" ) ) ;
112+ charts . push ( plot_latency_chart ( data , 1 , "Wall time" ) ) ;
113+ charts . push ( plot_chart ( data , 'time_min' , 1 , "Wall time (seconds)" ) ) ;
114+ charts . push ( plot_chart ( data , 'gc_min' , 1 , "Wall time (seconds)" ) ) ;
115115 charts . push ( plot_chart ( data , 'allocs' , 1 , "Total allocations" ) ) ;
116- charts . push ( plot_chart ( data , 'memory' , 1024 * 1024 , "Memory allocated (MiB)" ) ) ;
116+ charts . push ( plot_chart ( data , 'memory' , 1 , "Memory allocated (MiB)" ) ) ;
117117 return
118118 } ) ;
119119 /* =========================================================================
0 commit comments