https://github.com/cyanchanges/js-simple-bench
Simple JavaScript Benchmarks, Engines/Runtimes, not represent real-world scenario.
https://github.com/cyanchanges/js-simple-bench
Last synced: about 2 months ago
JSON representation
Simple JavaScript Benchmarks, Engines/Runtimes, not represent real-world scenario.
- Host: GitHub
- URL: https://github.com/cyanchanges/js-simple-bench
- Owner: CyanChanges
- Created: 2025-02-15T14:00:56.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-24T15:23:17.000Z (over 1 year ago)
- Last Synced: 2025-07-05T19:34:19.726Z (11 months ago)
- Language: TypeScript
- Homepage:
- Size: 9.85 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Benchmarks
> [!WARNING]
> These benchmarks may not represent a real-world scenario.
>
**Great thanks to [@Reve](https://github.com/aquapi) and others in the Bun Discord that helping me create this benchmark.**
Simple JavaScript Benchmarks.
For Engines (V8, JavaScriptCore), and Runtimes (Deno, Bun, Node.js)
## Requirements
Have `bun` or `deno` installed,
Have Rust toolchains ready (`cargo`)
## Prepare
** Bun **
```shell
bun run compile
```
** Deno **
```shell
deno task compile
```
## Benchmarks
### **Engines Benchmark (Inside)**
**V8** VS **JavaScriptCore**
```shell
bun run bench:engines
# todo: Deno support
```
### **Engines Benchmark (Inside)**
**V8** VS **JavaScriptCore**
```shell
# Deno
deno task bench:engines:out
# Bun
bun run bench:engines:out
```
### **Runtimes Benchmark**
**Deno** VS **Bun** VS **Node.js**
```shell
# Deno
deno task bench:runtimes
# Bun
bun run bench:runtimes
```
#### Benchmark node:crypto hasher
```shell
# Deno
deno task bench:runtimes:hash
# Bun
bun run bench:runtimes:hash
```