$ bun test.js
bun_1.3.9 addon-rust time 11618 rate 4303448 rate/core 4260839 ns/iter 232.37 rss 87433216 usr 100.00 sys 1.00 tot 101.00
bun_1.3.9 addon-rust time 11579 rate 4318019 rate/core 4318019 ns/iter 231.58 rss 87961600 usr 100.00 sys 0.00 tot 100.00
bun_1.3.9 addon-rust time 11668 rate 4285064 rate/core 4285064 ns/iter 233.36 rss 88092672 usr 100.00 sys 0.00 tot 100.00
bun_1.3.9 addon-rust time 11549 rate 4329047 rate/core 4286185 ns/iter 230.99 rss 88092672 usr 100.00 sys 1.00 tot 101.00
bun_1.3.9 addon-rust time 11559 rate 4325584 rate/core 4325584 ns/iter 231.18 rss 88092672 usr 100.00 sys 0.00 tot 100.00
bun_1.3.9 addon-rust time 11513 rate 4342626 rate/core 4342626 ns/iter 230.27 rss 88092672 usr 100.00 sys 0.00 tot 100.00
bun_1.3.9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # TON is moving to clang-21 for very pragmatic reasons — not because it's fashionable, | |
| # but because it materially improves what we ship. | |
| # We use clang-21 because we want the best C++ the language currently offers, | |
| # stronger safety guarantees, better diagnostics, better generated code, and a toolchain that won't rot under us. | |
| # Important! Remember, at this time no TON fullnodes or validators should be running on Ubuntu 20.04. | |
| # This guide shows how to install clang-21 on Ubuntu 22.04 and 24.04 only. | |
| # Ubuntu 22.04 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| node-main | |
| node-ffi | |
| bun | |
| deno | |
| lo | |
| *.so |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function is_a_tty (fd = 1) { | |
| if (globalThis.Deno) return Deno.isatty(fd) | |
| if (globalThis.lo) return lo.core.isatty(fd) | |
| if (fd === 1) return process.stdout.isTTY | |
| if (fd === 2) return process.stderr.isTTY | |
| return process.stdin.isTTY | |
| } | |
| const isatty = is_a_tty() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Bench } from 'lib/bench.mjs' | |
| import { Assembler, Compiler, Registers } from 'lib/asm.js' | |
| import { bind } from 'lib/ffi.js' | |
| const { ptr, core, utf8_encode_into } = lo | |
| const { dlopen, dlsym } = core | |
| const { rdi, rsi, rdx, rcx, r8, r9, rsp, rax } = Registers | |
| function bind_parse (read_buf) { | |
| asm.reset() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| clang -I. -c -o bundle.o bundle.c | |
| clang -c -o builtins.o builtins.S | |
| clang -static -s -O3 -o build/fire bundle.o builtins.o |
path type inode size modified perm ver dev uid gid links suid sgid stky
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
. dir 1 0 2026-02-28T21:20:27.000Z rwxrwxr-x 8.1 0.0 0 0 0 0 0 0
dev dir 2 0 2026-02-28T21:20:27.000Z rwxrwxr-x 8.1 0.0 0 0 0 0 0 0
dev/null chr 3 0 2026-02-28T21:20:27.000Z rw-rw-r-- 8.1 1.3 0 0 0 0 0 0
dev/zero chr 4 0 2026-02-28T21:20:27.000Z rw-rw-r-- 8.1 1.5- Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
- #100~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC x86_64 GNU/Linux
$ node async-bench.js
node_v24.13.1 sync time time 1537 rate 19514068 rate/core 19514068 ns/iter 51.24 rss 58302464 usr 100.00 sys 0.00 tot 100.00
node_v24.13.1 sync time time 1514 rate 19814339 rate/core 19814339 ns/iter 50.46 rss 58937344 usr 100.00 sys 0.00 tot 100.00
node_v24.13.1 sync time time 1473 rate 20361091 rate/core 20361091 ns/iter 49.11 rss 58937344 usr 100.00 sys 0.00 tot 100.00
node_v24.13.1 sync time time 1451 rate 20674993 rate/core 20883832 ns/iter 48.36 rss 58937344 usr 99.00 sys 0.00 tot 99.00
node_v24.13.1 sync time time 1479 rate 20270737 rate/core 20270737 ns/iter 49.33 rss 58937344 usr 100.00 sys 0.00 tot 100.00
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function getDatabase (name = 'ConversationsDatabase') { | |
| const req = window.indexedDB.open(name) | |
| return new Promise((resolve, reject) => { | |
| req.onsuccess = e => resolve(req.result) | |
| req.onerror = req.onabort = reject | |
| }) | |
| } | |
| function getAllKeys (db, collection = 'conversations') { | |
| const req = db.transaction([collection], 'readonly').objectStore(collection).getAllKeys() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM scratch | |
| ADD sea /sea | |
| CMD ["/sea"] |
NewerOlder