Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A possible performance problem of calling sort function with long array #2532

Open
ayuan0828 opened this issue Mar 17, 2023 · 0 comments
Open

Comments

@ayuan0828
Copy link

Version: 2.7.0

Description:

When I run the following test case, I found that duktape is much slower than other js engines,such as quickjs or mujs. I want to know what causes such a big performance difference?

Testcase:

a = [];
a.length = 0xfffff;
a.sort();

Time of duktape:

24781ms

Time of quickjs:

72ms

Time of mujs:

166ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant