Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,050 changes: 1,050 additions & 0 deletions .agent/benchmarks/sqlite-realworld-smoke/disabled-full-latest/results.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
SQLite real-world benchmark

Server SQLite time only. Setup time, sleep delay, wake/cold-start time, and client RTT are not included.

| workload | category | size | server_ms | get_pages | fetched_pages | cache_hits | cache_misses | rows/ops | pages |
| --- | --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
| small-rowid-point | canary | 0.25 MiB | 255.3 | 20 | 244 | 0 | 20 | 50 | 166 |
| small-schema-read | canary | 0.25 MiB | 5.3 | 4 | 4 | 0 | 4 | 128 | 166 |
| small-range-scan | canary | 0.25 MiB | 880.8 | 133 | 2051 | 0 | 133 | 128 | 166 |
| rowid-range-forward | read | 2.00 MiB | 10817.3 | 1035 | 17179 | 0 | 1035 | 1024 | 1231 |
| rowid-range-backward | read | 2.00 MiB | 4523.6 | 1035 | 1035 | 0 | 1035 | 1024 | 1231 |
| secondary-index-covering-range | read | 2.00 MiB | 21.3 | 11 | 11 | 0 | 11 | 1024 | 1063 |
| secondary-index-scattered-table | read | 2.00 MiB | 7778.9 | 1038 | 3241 | 0 | 1038 | 1024 | 1063 |
| aggregate-status | read | 2.00 MiB | 14175.7 | 1037 | 16733 | 0 | 1037 | 1024 | 1231 |
| aggregate-time-bucket | read | 2.00 MiB | 10989.9 | 1030 | 17172 | 0 | 1030 | 1024 | 1231 |
| aggregate-tenant-time-range | read | 1.00 MiB | 226.4 | 39 | 111 | 0 | 39 | 16 | 623 |
| feed-order-by-limit | read | 1.00 MiB | 2656.3 | 519 | 519 | 0 | 519 | 512 | 623 |
| feed-pagination-adjacent | read | 1.00 MiB | 263.4 | 106 | 106 | 0 | 106 | 100 | 623 |
| join-order-items | read | 2.00 MiB | 80.9 | 32 | 38 | 0 | 32 | 2048 | 1231 |
| random-point-lookups | read | 2.00 MiB | 7718.5 | 1011 | 3304 | 0 | 1011 | 1000 | 1231 |
| hot-index-cold-table | read | 2.00 MiB | 41.3 | 16 | 26 | 0 | 16 | 8 | 1063 |
| ledger-without-rowid-range | read | 2.00 MiB | 458.6 | 94 | 176 | 0 | 94 | 564 | 176 |
| write-batch-after-wake | write | 1.00 MiB | 402.4 | 15 | 17 | 0 | 15 | 1000 | 1642 |
| update-hot-partition | write | 1.00 MiB | 6902.0 | 516 | 8498 | 0 | 516 | 64 | 623 |
| delete-churn-range-read | write | 1.00 MiB | 7040.2 | 526 | 8398 | 0 | 526 | 448 | 623 |
| migration-create-indexes-large | migration | 2.00 MiB | 14959.5 | 1030 | 17230 | 0 | 1030 | | 1059 |
| migration-create-indexes-skewed-large | migration | 2.00 MiB | 32741.9 | 2054 | 34577 | 0 | 2054 | | 1055 |
| migration-table-rebuild-large | migration | 2.00 MiB | 30746.7 | 2057 | 34767 | 0 | 2057 | | 2070 |
| migration-add-column-large | migration | 2.00 MiB | 4.2 | 3 | 3 | 0 | 3 | | 1044 |
| migration-ddl-small | canary | 0.00 MiB | 22.8 | 3 | 3 | 0 | 3 | | 19 |
228 changes: 228 additions & 0 deletions .agent/benchmarks/sqlite-realworld-smoke/disabled-latest/results.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,228 @@
{
"schemaVersion": 1,
"startedAt": "2026-04-29T10:18:23.224Z",
"finishedAt": "2026-04-29T10:19:02.894Z",
"config": {
"endpoint": "http://127.0.0.1:7520",
"profile": "smoke",
"selectedWorkloads": [
"rowid-range-forward",
"secondary-index-scattered-table",
"random-point-lookups",
"migration-add-column-large"
],
"sizes": {
"smallBytes": 262144,
"mediumBytes": 1048576,
"cacheFitBytes": 1048576,
"cacheOverflowBytes": 2097152,
"largeBytes": 2097152,
"rowBytes": 2048
},
"metricsToken": "dev-metrics",
"wakeDelayMs": 1000,
"postSetupWaitMs": 0,
"startLocalEnvoy": true,
"disableStorageCompaction": false,
"sqliteOptimizationsDisabled": true,
"sqliteOptimizationEnv": {
"RIVETKIT_SQLITE_OPT_READ_AHEAD": "false",
"RIVETKIT_SQLITE_OPT_CACHE_HIT_PREDICTOR_TRAINING": "false",
"RIVETKIT_SQLITE_OPT_RECENT_PAGE_HINTS": "false",
"RIVETKIT_SQLITE_OPT_ADAPTIVE_READ_AHEAD": "false",
"RIVETKIT_SQLITE_OPT_PRELOAD_HINT_FLUSH": "false",
"RIVETKIT_SQLITE_OPT_STARTUP_PRELOAD_FIRST_PAGES": "false",
"RIVETKIT_SQLITE_OPT_PRELOAD_HINTS_ON_OPEN": "false",
"RIVETKIT_SQLITE_OPT_PRELOAD_HINT_HOT_PAGES": "false",
"RIVETKIT_SQLITE_OPT_PRELOAD_HINT_EARLY_PAGES": "false",
"RIVETKIT_SQLITE_OPT_PRELOAD_HINT_SCAN_RANGES": "false",
"RIVETKIT_SQLITE_OPT_DEDUP_GET_PAGES_META": "false",
"RIVETKIT_SQLITE_OPT_CACHE_GET_PAGES_VALIDATION": "false",
"RIVETKIT_SQLITE_OPT_RANGE_READS": "false",
"RIVETKIT_SQLITE_OPT_BATCH_CHUNK_READS": "false",
"RIVETKIT_SQLITE_OPT_DECODED_LTX_CACHE": "false",
"RIVETKIT_SQLITE_OPT_VFS_CACHE_FETCHED_PAGES": "false",
"RIVETKIT_SQLITE_OPT_VFS_CACHE_PREFETCHED_PAGES": "false",
"RIVETKIT_SQLITE_OPT_VFS_CACHE_STARTUP_PRELOADED_PAGES": "false",
"RIVETKIT_SQLITE_OPT_VFS_SCAN_RESISTANT_CACHE": "false",
"RIVETKIT_SQLITE_OPT_STARTUP_PRELOAD_MAX_BYTES": "0",
"RIVETKIT_SQLITE_OPT_STARTUP_PRELOAD_FIRST_PAGE_COUNT": "0",
"RIVETKIT_SQLITE_OPT_VFS_PAGE_CACHE_CAPACITY_PAGES": "1",
"RIVETKIT_SQLITE_OPT_VFS_PROTECTED_CACHE_PAGES": "0"
},
"cacheSizing": {
"sqlitePageSizeBytes": 4096,
"startupPreloadMaxBytes": 0,
"vfsPageCacheCapacityPages": 1,
"vfsPageCacheCapacityBytes": 4096,
"largeBytesExceedsConfiguredVfsCache": true
}
},
"cacheConfigProbe": {
"sqliteCacheSizePragma": -2000,
"sqlitePageSize": 4096,
"pageCount": 16
},
"results": [
{
"workload": "rowid-range-forward",
"description": "Large append-like INTEGER PRIMARY KEY forward range scan.",
"category": "read",
"sizeClass": "large",
"targetBytes": 2097152,
"actorKey": [
"sqlite-realworld-bench",
"sqlite-realworld-1777457901653-7c6244b2",
"rowid-range-forward"
],
"actorId": "9qhpr92yuo3cyli6hwbsfvj2kjcl00",
"setup": {
"rows": 1024,
"targetBytes": 2097152,
"rowBytes": 2048,
"setupMs": 614.354797,
"pageCount": 1230
},
"main": {
"ms": 14946.551086000001,
"workload": "rowid-range-forward",
"rows": 1024,
"bytes": 2097152,
"pageCount": 1231
},
"vfsMetrics": {
"resolvePagesTotal": 1032,
"resolvePagesRequestedTotal": 1032,
"resolvePagesCacheHitsTotal": -3,
"resolvePagesCacheMissesTotal": 1035,
"getPagesTotal": 1035,
"pagesFetchedTotal": 17179,
"prefetchPagesTotal": 16144,
"bytesFetchedTotal": 70365184,
"prefetchBytesTotal": 66125824,
"getPagesDurationSecondsSum": 14.822318194999998,
"getPagesDurationSecondsCount": 1035
}
},
{
"workload": "secondary-index-scattered-table",
"description": "Large secondary-index range that visits table rows in scattered rowid order.",
"category": "read",
"sizeClass": "large",
"targetBytes": 2097152,
"actorKey": [
"sqlite-realworld-bench",
"sqlite-realworld-1777457901653-7c6244b2",
"secondary-index-scattered-table"
],
"actorId": "dpzhx6td3elrkg4w33bpnshfh9dl00",
"setup": {
"rows": 1024,
"targetBytes": 2097152,
"rowBytes": 2048,
"setupMs": 461.5752219999995,
"pageCount": 1062
},
"main": {
"ms": 8251.848477,
"workload": "secondary-index-scattered-table",
"rows": 1024,
"bytes": 2097152,
"pageCount": 1063
},
"vfsMetrics": {
"resolvePagesTotal": 1035,
"resolvePagesRequestedTotal": 1035,
"resolvePagesCacheHitsTotal": -3,
"resolvePagesCacheMissesTotal": 1038,
"getPagesTotal": 1038,
"pagesFetchedTotal": 3514,
"prefetchPagesTotal": 2476,
"bytesFetchedTotal": 14393344,
"prefetchBytesTotal": 10141696,
"getPagesDurationSecondsSum": 8.176378407,
"getPagesDurationSecondsCount": 1038
}
},
{
"workload": "random-point-lookups",
"description": "Deterministic random primary-key point lookups across a large table.",
"category": "read",
"sizeClass": "large",
"targetBytes": 2097152,
"actorKey": [
"sqlite-realworld-bench",
"sqlite-realworld-1777457901653-7c6244b2",
"random-point-lookups"
],
"actorId": "dh1qdiyzkl40znrz5wr8zuevkkcl00",
"setup": {
"rows": 1024,
"targetBytes": 2097152,
"rowBytes": 2048,
"setupMs": 582.4261729999998,
"pageCount": 1230
},
"main": {
"ms": 8725.889302,
"workload": "random-point-lookups",
"ops": 1000,
"bytes": 2048000,
"pageCount": 1231
},
"vfsMetrics": {
"resolvePagesTotal": 1008,
"resolvePagesRequestedTotal": 1008,
"resolvePagesCacheHitsTotal": -3,
"resolvePagesCacheMissesTotal": 1011,
"getPagesTotal": 1011,
"pagesFetchedTotal": 3208,
"prefetchPagesTotal": 2197,
"bytesFetchedTotal": 13139968,
"prefetchBytesTotal": 8998912,
"getPagesDurationSecondsSum": 8.084016886,
"getPagesDurationSecondsCount": 1011
}
},
{
"workload": "migration-add-column-large",
"description": "Large-table ADD COLUMN migration that should avoid row rewrite.",
"category": "migration",
"sizeClass": "large",
"targetBytes": 2097152,
"actorKey": [
"sqlite-realworld-bench",
"sqlite-realworld-1777457901653-7c6244b2",
"migration-add-column-large"
],
"actorId": "hsw0n9x0nf0tvc6hbmfkm19xnmcl00",
"setup": {
"rows": 1024,
"targetBytes": 2097152,
"rowBytes": 2048,
"setupMs": 388.5069980000044,
"pageCount": 1043
},
"main": {
"ms": 2.7332150000002002,
"workload": "migration-add-column-large",
"alters": 1,
"rewritesRows": false,
"pageCount": 1044
},
"vfsMetrics": {
"resolvePagesTotal": 0,
"resolvePagesRequestedTotal": 0,
"resolvePagesCacheHitsTotal": -3,
"resolvePagesCacheMissesTotal": 3,
"getPagesTotal": 3,
"pagesFetchedTotal": 3,
"prefetchPagesTotal": 0,
"bytesFetchedTotal": 12288,
"prefetchBytesTotal": 0,
"getPagesDurationSecondsSum": 0.024192735,
"getPagesDurationSecondsCount": 3
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
SQLite real-world benchmark

Server SQLite time only. Setup time, sleep delay, wake/cold-start time, and client RTT are not included.

| workload | category | size | server_ms | get_pages | fetched_pages | cache_hits | cache_misses | rows/ops | pages |
| --- | --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
| rowid-range-forward | read | 2.00 MiB | 14946.6 | 1035 | 17179 | -3 | 1035 | 1024 | 1231 |
| secondary-index-scattered-table | read | 2.00 MiB | 8251.8 | 1038 | 3514 | -3 | 1038 | 1024 | 1063 |
| random-point-lookups | read | 2.00 MiB | 8725.9 | 1011 | 3208 | -3 | 1011 | 1000 | 1231 |
| migration-add-column-large | migration | 2.00 MiB | 2.7 | 3 | 3 | -3 | 3 | | 1044 |
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
"schemaVersion": 1,
"startedAt": "2026-04-29T10:09:16.917Z",
"finishedAt": "2026-04-29T10:09:18.608Z",
"config": {
"endpoint": "http://127.0.0.1:6420",
"profile": "smoke",
"selectedWorkloads": [
"feed-pagination-adjacent"
],
"sizes": {
"smallBytes": 262144,
"mediumBytes": 1048576,
"cacheFitBytes": 1048576,
"cacheOverflowBytes": 2097152,
"largeBytes": 2097152,
"rowBytes": 2048
},
"metricsToken": "dev-metrics",
"wakeDelayMs": 1000,
"postSetupWaitMs": 0,
"startLocalEnvoy": true,
"disableStorageCompaction": false,
"cacheSizing": {
"sqlitePageSizeBytes": 4096,
"startupPreloadMaxBytes": 1048576,
"vfsPageCacheCapacityPages": 50000,
"vfsPageCacheCapacityBytes": 204800000,
"standardLargeBytesExceedsDefaultVfsCache": false
}
},
"cacheConfigProbe": {
"sqliteCacheSizePragma": -2000,
"sqlitePageSize": 4096,
"pageCount": 16
},
"results": [
{
"workload": "feed-pagination-adjacent",
"description": "Adjacent cursor pagination over an indexed recent-feed query.",
"category": "read",
"sizeClass": "medium",
"targetBytes": 1048576,
"actorKey": [
"sqlite-realworld-bench",
"sqlite-realworld-1777457355366-7b780a8f",
"feed-pagination-adjacent"
],
"actorId": "th4hd4y4xocgt7ha3f94wxy7fubl00",
"setup": {
"rows": 512,
"targetBytes": 1048576,
"rowBytes": 2048,
"setupMs": 302.266161,
"pageCount": 622
},
"main": {
"ms": 47.609035000000404,
"workload": "feed-pagination-adjacent",
"firstPageRows": 100,
"rows": 100,
"pageCount": 623
},
"vfsMetrics": {
"resolvePagesTotal": 103,
"resolvePagesRequestedTotal": 103,
"resolvePagesCacheHitsTotal": 96,
"resolvePagesCacheMissesTotal": 7,
"getPagesTotal": 7,
"pagesFetchedTotal": 135,
"prefetchPagesTotal": 128,
"bytesFetchedTotal": 552960,
"prefetchBytesTotal": 524288,
"getPagesDurationSecondsSum": 0.044485068,
"getPagesDurationSecondsCount": 7
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
SQLite real-world benchmark

Server SQLite time only. Setup time, sleep delay, wake/cold-start time, and client RTT are not included.

| workload | category | size | server_ms | get_pages | fetched_pages | cache_hits | cache_misses | rows/ops | pages |
| --- | --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
| feed-pagination-adjacent | read | 1.00 MiB | 47.6 | 7 | 135 | 96 | 7 | 100 | 623 |
Loading
Loading