File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env node
2
2
3
- var Benchmark = require ( "benchmark" ) ,
3
+ let Benchmark = require ( "benchmark" ) ,
4
4
sprintf = require ( "sprintf" ) . sprintf ;
5
5
6
- var Graph = require ( "graphlib" ) . Graph ,
6
+ let Graph = require ( "graphlib" ) . Graph ,
7
7
rank = require ( "../lib/rank" ) ,
8
8
layout = require ( ".." ) . layout ;
9
9
10
10
function runBenchmark ( name , fn ) {
11
- var options = { } ;
11
+ let options = { } ;
12
12
options . onComplete = function ( bench ) {
13
- var target = bench . target ,
13
+ let target = bench . target ,
14
14
hz = target . hz ,
15
15
stats = target . stats ,
16
16
rme = stats . rme ,
@@ -34,7 +34,7 @@ function runBenchmark(name, fn) {
34
34
new Benchmark ( name , fn , options ) . run ( ) ;
35
35
}
36
36
37
- var g = new Graph ( )
37
+ let g = new Graph ( )
38
38
. setGraph ( { } )
39
39
. setDefaultNodeLabel ( function ( ) { return { width : 1 , height : 1 } ; } )
40
40
. setDefaultEdgeLabel ( function ( ) { return { minlen : 1 , weight : 1 } ; } )
You can’t perform that action at this time.
0 commit comments