Skip to content

Commit 83d9187

Browse files
authored
update spectator-js perf test
1 parent 596d720 commit 83d9187

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/spectator/lang/nodejs/perf-test.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const tags = {"location": "udp", "version": "correct-horse-battery-staple"};
1616
const max_duration = 2 * 60;
1717
const start = performance.now();
1818

19-
function elapsed(start) {
19+
function elapsed() {
2020
return ((performance.now() - start) / 1000).toFixed(2);
2121
}
2222

@@ -32,7 +32,7 @@ while (true) {
3232
await registry.counter("spectator-js.publish", tags).increment();
3333
if (iteration % 500000 === 0) {
3434
console.log("iterations", iteration, "elapsed", elapsed());
35-
if (elapsed(start) > max_duration) {
35+
if (elapsed() > max_duration) {
3636
break;
3737
}
3838
}

0 commit comments

Comments
 (0)