gcc -shared -O3 -o libadd.so test.c
clang -shared -O3 -o libadd.dylib test.c
build | |
*.json |
{ | |
"name": "foo", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"foo": "/bin/ls -lah && /bin/ls -lah && /bin/ls -lah" | |
}, | |
"author": "", | |
"license": "ISC" |
deno compile --allow-env --allow-read --allow-write --allow-net --allow-ffi --unstable-ffi sql.ts |
run
sudo nice -n 20 taskset --cpu-list 7 ./x86_64-linux-poop "/bin/true" "/usr/local/bin/luajit-2.1.0-beta3 hello.lua" "./qjs-linux-x86_64 hello.js" "./llrt hello.js" "./hermes hello2.js" "./lo_static" "./lo hello.js" "/home/andrew/.bun/bin/bun hello.js" "/home/andrew/.node/20/bin/node hello.js" "/home/andrew/.deno/bin/deno run hello.js"
results
Benchmark 1 (8786 runs): /bin/true
curl -L -o audio_encoder.js https://raw.githubusercontent.com/cstoquer/audio-encoder/master/dist/audioEncoder.js
import { fetch } from 'lib/fetch.js' | |
import { Loop } from 'lib/loop.js' | |
import { write_flags, write_mode } from 'lib/fs.js' | |
const loop = new Loop() | |
const { assert, core } = lo | |
const { open, close, write } = core | |
const disposition_rx = /attachment; filename=(.+)/ |
Requirement: We assume that have macOS or Linux. Windows is not supported.
Run the bash script script.sh
(e.g., type bash script.sh
). It will install nvm
and bun
in your user account, if needed.
The benchmark simply reads the current README.md file, as quickly as possible.
Download and build just-js and required libraries and run the server
curl -L -o just.tar.gz https://github.com/just-js/just/archive/current.tar.gz
mkdir -p just && tar -zxvf just.tar.gz -C just --strip-components 1
make -C just runtime
sudo make -C just install install-debug
export JUST_HOME=$(pwd)/just
export JUST_TARGET=$JUST_HOME
make -C just/modules/http library