150ms delay in performing a HTTPS versus HTTP get request in Node

后端 未结 1 1929
栀梦
栀梦 2020-12-22 05:08

I don\'t know much about how the https module in node.js works so if any of you can answer this question then that would be great.

I have noticed in a small app I ma

相关标签:
1条回答
  • 2020-12-22 05:37

    You are using console.timeEnd('Begin') multiple times in your code

    As of node v6.0.0, timeEnd() deletes the timer to avoid leaking it

    So when you call console.timeEnd('Begin') first, it deletes the timer & on second call of console.timeEnd('Begin') it can not find the reference to same

    You can create multiple labels if you want 2 timers for different issues, but make sure you just write timeEnd() only once for every time()

    0 讨论(0)
提交回复
热议问题