Turso is an in-process SQL database written in Rust that is compatible with SQLite and also accepts PostgreSQL syntax through an experimental frontend. It is for applications and organizations that need an embeddable database engine with support for multiple languages, platforms, and database features. The catalogue entries are skills and instructions for working with Turso.
Borrowing it
Nothing to install: this file belongs to tursodatabase/turso. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/tursodatabase/turso/main/.claude/skills/memory-benchmark/SKILL.mdgit clone --depth 1 https://github.com/tursodatabase/tursoWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/tursodatabase/turso/memory-benchmark)<a href="https://agentmods.dev/skills/tursodatabase/turso/memory-benchmark"><img src="https://agentmods.dev/badge/skills/tursodatabase/turso/memory-benchmark/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/tursodatabase/turso/memory-benchmark"><img src="https://agentmods.dev/badge/skills/tursodatabase/turso/memory-benchmark.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- Snyk pass
- NVIDIA SkillSpector warn
SkillSpector: 2 findings, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high Rogue Agent · line 3 Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.Fix: Prevent the skill from modifying its own code, SKILL.md, or configuration files. Treat skill files as read-only at runtime.
- high Rogue Agent · line 310 Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.Fix: Prevent the skill from modifying its own code, SKILL.md, or configuration files. Treat skill files as read-only at runtime.
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00120 | $0.05653 |
| Opus 5.5 | $0.00048 | $0.02261 |
| Sonnet 5.5 | $0.00024 | $0.01131 |
| Haiku 4.5 | $0.00012 | $0.00565 |
Grade A, and why
memory-benchmark scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 434 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Memory Benchmarking & Analysis
The perf/memory crate benchmarks memory usage of SQL workloads under WAL and MVCC journal modes. It uses dhat as the global allocator to track every heap allocation, and memory-stats for process-level RSS snapshots.
It also contains a stack-report helper binary for stack-usage investigations.
That binary runs a SQL payload with the stacker feature enabled and captures
turso_stack tracing events in-process, aggregating structured tracing fields
instead of parsing stderr log text.
Location
- Benchmark crate:
perf/memory/ - CodSpeed bench crate:
perf/memory/codspeed/(CI allocation regression tracking) - Analysis script:
perf/memory/analyze-dhat.py - dhat output:
dhat-heap.json(written to CWD after each run)
The crate is split into a library and binaries. The workload engine lives in
memory_benchmark::workload (run_workload, WorkloadConfig,
WorkloadObserver, the JournalMode/WorkloadProfile enums and
create_profile); the memory-benchmark bin is a thin CLI over it that adds
dhat/RSS measurement. Randomized profiles (read-heavy, mixed) use a fixed
RNG seed (profile::WORKLOAD_RNG_SEED) so workloads are identical across runs.
MVCC Memory Per Row
The mvcc-row-memory binary measures the heap that one MVCC transaction keeps
for each row it writes: one INSERT, UPDATE or DELETE over every row of
t(id INTEGER PRIMARY KEY, v BLOB). update and delete change rows that a
checkpoint already wrote to the B-tree. Use it to measure changes to MvStore
data structures (version chains, write sets, tombstones).
cargo run -p memory-benchmark --bin mvcc-row-memory -- \
--statement insert|update|delete --rows 100000 --payload-bytes 100 \
--mode mvcc|wal --dhat-file /tmp/rows.json
python3 perf/memory/analyze-dhat.py /tmp/rows.json --sort-by eb --top 10
The JSON report has uncommitted_bytes_per_row (before COMMIT),
statement_peak_bytes_per_row, commit_peak_bytes_per_row,
committed_bytes_per_row (after COMMIT, with automatic checkpoints and GC
off) and statement_allocations_per_row. The byte values are requested bytes,
so a debug build gives the same numbers as an optimized build. The dhat file's
"At exit" values are the live allocations at the committed measurement. See
perf/memory/README.md for details.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday Changed · +23 lines c2d0adf00ca7
- 1mo ago Changed · +2 lines e78e7a784324
- 1mo ago Changed · +90 lines 4d6cfbee6009
- 1mo ago First seen · 319 lines · 120 tokens per session scan A ecf7fbbdbe9c
memory-benchmark is a skill published in the GitHub repository tursodatabase/turso (25,079 stars, last pushed today), licensed MIT. It adds 120 tokens to every session and 5,653 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
chdb-datastore
Use when the user has tabular data (pandas DataFrame, parquet, csv, Arrow, json) and wants to filter, group, aggregate, join, or speed up slow pandas. Provides chDB DataStore — same pandas API, ClickHouse engine underneath. Also handles reading from S3, MySQL, PostgreSQL, MongoDB, ClickHouse Cloud, Iceberg, Delta Lake…
chdb-sql
Use when the user wants to run SQL — especially analytical SQL — on local files (parquet/csv/json), URLs, S3 paths, or remote databases (Postgres, MySQL, MongoDB, ClickHouse Cloud, Iceberg, Delta Lake) without setting up a server. Provides chDB — embedded ClickHouse SQL in Python with 1000+ functions, Session for…
duckdb
Use when analytical SQL must run in-process with no server: Parquet/CSV/JSON/Arrow queried in place, OLAP embedded in an app or notebook, a slow pandas groupby on multi-GB data, or S3/lakehouse data read without downloading. NOT a multi-user analytics server (that is clickhouse-analytics), NOT an app's transactional…
accounting-software-selection
Scores shortlisted accounting packages against 57 evidence-backed fields, emitted as CSV, SQL, JSON Schema or Notion on request. Use for choosing accounting software.
360-feedback-system
360 feedback register: reviewer, subject, review cycle, visibility, due date and score, as CSV, SQL, JSON Schema or Notion on request. Use for 360 reviews or peer feedback cycles.
admin-access-register
Admin account register: system, main and backup admin, seats, plan, 2FA, shared logins and access-review dates, as CSV, SQL, JSON Schema or Notion on request. Use for access reviews.