Files
bun.sh/bench/expect-to-equal/README.md
dave caruso 57a06745a4 Progress for Next.js (#4468)
* L

* ipc

* asdfghjkl

* dfghjk

* it works!

* types

* patches for next.js

* sdfghj

* wsdfgn,./

* this

* yolo

* okay loser

* asdfghjk

* add some more APIs

* MESS

* sdfghjkl

* remove native events from streams

* stuff

* remove lazy(primordials) test

* debugging

* okay

* less fake extensions object

* fix `Buffer.toString()` args logic

* fix deserialize

* make tests work

* add test for `Buffer.toString` args

* Update server.zig

* remove test

* update test

* Update spawn-streaming-stdin.test.ts

* fix linux build

* Update fs.test.ts

* cli message improvements

* dfshaj

* Fix fs.watch bug maybe?

* remove

---------

Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
2023-09-07 04:58:44 -07:00

783 B

expect-to-equal

To install dependencies:

bun install

To run in Bun:

# so it doesn't run the vitest one
bun test expect-to-equal.test.js

To run in Jest:

# If you remove the import the performance doesn't change much
NODE_OPTIONS="--experimental-vm-modules" ./node_modules/.bin/jest expect-to-equal.test.js

To run in Vitest:

./node_modules/.bin/vitest --run expect-to-equal.vitest.test.js

Output on my machine (M1):

bun:test (bun v0.3.0):

[36.40ms] expect().toEqual() x 10000

jest (node v18.11.0)

expect().toEqual() x 10000: 5053 ms

vitest (node v18.11.0)

expect().toEqual() x 10000: 401.08ms

This project was created using bun init in bun v0.3.0. Bun is a fast all-in-one JavaScript runtime.