LoginSignup
0
0

More than 1 year has passed since last update.

Node.js実行時間を測る

Last updated at Posted at 2022-04-02

手軽に計測

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} ミリ秒` );

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0