2.0.4 • Published 5 years ago
@hibiscus/performance v2.0.4
performance 测试函数执行耗时
用法
export class Test {
constructor() {
this.run1();
}
@performance()
run1() {
...
}
@performance()
run2() {
...
}
}
>>> console <<<
->【run1】函数执行完成共耗时:123ms
->【run2】函数执行完成共耗时:345ms