Skip to content

LynnKirby/buffer-to-string

Repository files navigation

buffer-to-string

Running benchmarks

# Hereby installed globally
pnpm install -g hereby
hereby bench-RUNTIME

# Hereby installed locally
pnpm hereby bench-RUNTIME

# With string length
hereby bench-RUNTIME --length=100_000

Where RUNTIME is one of:

  • node - Node.js
  • deno - Deno
  • graal - GraalJS
  • hermes - Hermes
  • quickjs - QuickJS

Deno setup

  1. Install Deno.
  2. Set the DENO environment variable to the deno binary or add it to your PATH.
  3. Run with hereby bench-deno.

GraalJS setup

  1. Download and extract the GraalVM JDK.
  2. Set the GRAALVM_HOME environment variable to the GraalVM JDK directory.
  3. Install the Node.js component with $GRAALVM_HOME/bin/gu install nodejs.
  4. Run with hereby bench-graal.

Hermes setup

  1. Download and extract Hermes.
  2. Set the HERMES environment variable to the hermes binary or add it to your PATH.
  3. Run with hereby bench-hermes.

QuickJS setup

  1. Download and extract QuickJS.
  2. Set the QUICKJS environment variable to the qjs binary or add it to your PATH.
  3. Run with hereby bench-quickjs.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published