Skip to content

[js] 第406天 你是如何比较js函数的执行速度的? #2425

Open
@haizhilin2013

Description

@haizhilin2013
Collaborator

第406天 你是如何比较js函数的执行速度的?

3+1官网

我也要出题

Activity

zhaofeipeter

zhaofeipeter commented on Jul 25, 2020

@zhaofeipeter

采用chrome performance api

bozaigao

bozaigao commented on Sep 22, 2020

@bozaigao

console.time(flag);
console.timeEnd(flag);

cool-delete

cool-delete commented on Sep 22, 2020

@cool-delete

performance api比较精准的
console.time(flag);
也行 搭配timelog 多次测量

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    jsJavaScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @haizhilin2013@bozaigao@cool-delete@zhaofeipeter

        Issue actions

          [js] 第406天 你是如何比较js函数的执行速度的? · Issue #2425 · haizlin/fe-interview