0
Help us understand the problem. What are the problem?

posted at

updated at

Node.js実行時間を測る

手軽に計測

node.js

// 開始
var start = performance.now();

for(var i = 0; i < 10000; i++){
  for(var j = 0; j < 10000; j++);
}

// 終了
var end = performance.now();

console.log( `実行時間 = ${end - start} ミリ秒` );

Register as a new user and use Qiita more conveniently

  1. You can follow users and tags
  2. you can stock useful information
  3. You can make editorial suggestions for articles
What you can do with signing up
0
Help us understand the problem. What are the problem?