Skip to content

Commit 23fd3d4

Browse files
committed
Add Oceans to d3.geo.path benchmark.
1 parent 39bc371 commit 23fd3d4

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

test/data/ocean.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

test/geo/path-benchmark

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@ for (var i = 0, k = 0; i < n; i++, k++) {
5050

5151
console.log("World countries: " + formatNumber((Date.now() - then) / k) + "ms/op.");
5252

53+
o = JSON.parse(fs.readFileSync("./test/data/ocean.json"));
54+
then = Date.now();
55+
56+
for (var i = 0, k = 0; i < n; i++, k++) {
57+
path(o);
58+
}
59+
60+
console.log("Ocean: " + formatNumber((Date.now() - then) / k) + "ms/op.");
61+
5362
o = graticule();
5463
then = Date.now();
5564

0 commit comments

Comments
 (0)