Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jderochervlk/rescript-perf
Comparing performance of compiled ReScript code to other libraries and styles of code
https://github.com/jderochervlk/rescript-perf
Last synced: 9 days ago
JSON representation
Comparing performance of compiled ReScript code to other libraries and styles of code
- Host: GitHub
- URL: https://github.com/jderochervlk/rescript-perf
- Owner: jderochervlk
- Created: 2024-01-22T14:59:27.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-01-27T14:46:23.000Z (11 months ago)
- Last Synced: 2024-01-27T15:47:20.913Z (11 months ago)
- Language: JavaScript
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rescript-perf
To install dependencies:
```bash
bun install
```To run:
```bash
bun start
```## results
### Large objects
```
ReScript#caml_obj x 74,128 ops/sec ±3.56% (89 runs sampled)
lodash#isEqual x 85,058 ops/sec ±5.28% (80 runs sampled)
deep-equal#deep-equal x 8,725 ops/sec ±4.42% (84 runs sampled)
immutable#equals x 665 ops/sec ±6.22% (77 runs sampled)
fast-deep-equal#deep-equal x 90,871 ops/sec ±5.19% (80 runs sampled)
Fastest is fast-deep-equal#deep-equal
```
### Small objects
```
ReScript#caml_obj x 1,688,417 ops/sec ±61.01% (63 runs sampled)
lodash#isEqual x 792,134 ops/sec ±8.46% (71 runs sampled)
deep-equal#deep-equal x 10,203 ops/sec ±4.64% (80 runs sampled)
immutable#equals x 406,771 ops/sec ±8.89% (67 runs sampled)
fast-deep-equal#deep-equal x 2,570,114 ops/sec ±5.96% (69 runs sampled)
Fastest is fast-deep-equal#deep-equal,ReScript#caml_obj
```