GoogleChromeLabs / GoogleChromeLabs/jsbi

Why is it slower than native BigInt?

Open
#53 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
962
Forks
70
PR merge metrics
No merged PRs in 30d

Description

Some benchmarks like the one at https://peterolson.github.io/BigInteger.js/benchmark/#:~:text=Multiplication:%20400%20digits
shows that the native BigInt is 10 times faster.
This is very interesting why... because modern js engines are very good.
Is it possible to have the same speed with js library?

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the linked BigInteger.js multiplication benchmark with JSBI and native BigInt, then inspect the JSBI implementation for the operations measured. Compare results across the benchmark cases and document whether a practical speed improvement is possible; completion would require benchmark evidence and a clearly scoped optimization target.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
performance
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.