这是indexloc提供的服务,不要输入任何密码
Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,13 @@ messages per second on a laptop or 60 and 30 messages per second on a smartphone
per CPU core (with Web Workers you can do these operations in parallel),
which is good enough for most applications.

### Performance in Jest

When using tweetnacl-js in tests with [Jest](jestjs.io), the
[extraGlobals](https://jestjs.io/docs/configuration#extraglobals-arraystring)
configuration variable should include `Math`.
This avoids a significant performance penalty from the test vm environment.


Contributors
------------
Expand Down