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

Object.values is faster than fast.values #96

Open
baptistemanson opened this issue Jan 3, 2020 · 0 comments
Open

Object.values is faster than fast.values #96

baptistemanson opened this issue Jan 3, 2020 · 0 comments

Comments

@baptistemanson
Copy link

The new function Object.values is x2 faster than fast.values on v8.

    ✓  Native Object.keys().map() x 5,834,570 ops/sec ±0.29% (97 runs sampled)
    ✓  Native Object.values()) x 23,794,424 ops/sec ±0.29% (99 runs sampled)
    ✓  fast.values() x 11,353,450 ops/sec ±0.65% (94 runs sampled)
    ✓  underscore.values() x 5,779,038 ops/sec ±0.46% (94 runs sampled)
    ✓  lodash.values() x 3,933,563 ops/sec ±1.49% (96 runs sampled)

Maybe we could shim it in fast.js like Object.keys?

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