Skip to content

Commit

Permalink
Merge pull request #374 from RohitPaul0007/patch-16
Browse files Browse the repository at this point in the history
Update bench.js
  • Loading branch information
rustedgrail authored Sep 11, 2023
2 parents df40ccc + f1b7682 commit fbe66c8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/bench.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#!/usr/bin/env node

var Benchmark = require("benchmark"),
let Benchmark = require("benchmark"),
sprintf = require("sprintf").sprintf;

var Graph = require("graphlib").Graph,
let Graph = require("graphlib").Graph,
rank = require("../lib/rank"),
layout = require("..").layout;

function runBenchmark(name, fn) {
var options = {};
let options = {};
options.onComplete = function(bench) {
var target = bench.target,
let target = bench.target,
hz = target.hz,
stats = target.stats,
rme = stats.rme,
Expand All @@ -34,7 +34,7 @@ function runBenchmark(name, fn) {
new Benchmark(name, fn, options).run();
}

var g = new Graph()
let g = new Graph()
.setGraph({})
.setDefaultNodeLabel(function() { return { width: 1, height: 1}; })
.setDefaultEdgeLabel(function() { return { minlen: 1, weight: 1 }; })
Expand Down

0 comments on commit fbe66c8

Please sign in to comment.