An open API service indexing awesome lists of open source software.

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.

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
```