Skip to content

Commit a46bdef

Browse files
committed
feat(sqlite): benchmark cold reads
1 parent b712711 commit a46bdef

52 files changed

Lines changed: 5471 additions & 655 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
(node:158215) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
2+
(Use `node --trace-deprecation ...` to show where the warning was created)
3+
4+
RivetKit 2.3.0-rc.4 (Engine - Serverful)
5+
- Endpoint: http://127.0.0.1:6520/ (remote)
6+
- Actors: 85
7+
8+
SQLite cold-start benchmark
9+
endpoint=http://127.0.0.1:6520
10+
actor_key=sqlite-cold-start-bench/sqlite-cold-start-1777442769257-68c77b4c
11+
actor_id=d15mfntoxy07puf623i3v8ebkfcl00
12+
start_local_envoy=true
13+
target=50.00 MiB row_bytes=16384 batch_rows=8 transaction_bytes=65536
14+
15+
reset...
16+
write random strings...
17+
hot read...
18+
sleep...
19+
wake read...
20+
21+
Results
22+
rows: 3200
23+
transactions: 800
24+
bytes: 50.00 MiB
25+
insert server: 14657.0ms (insert=397.3ms, commit=14259.7ms, random_strings=66.2ms)
26+
insert e2e: 15001.2ms
27+
hot read server: 87.5ms
28+
hot read e2e: 97.6ms
29+
wake read server: 7932.6ms
30+
wake read e2e: 8078.7ms
31+
wake overhead estimate: 146.1ms
32+
hot read VFS get_pages round trips: 0
33+
hot read VFS fetched: 0 pages / 0.00 MiB
34+
hot read VFS prefetch: 0 pages / 0.00 MiB
35+
hot read VFS cache: hits=16786 misses=0 requested=16786
36+
hot read VFS get_pages transport: 0.0ms over 0 calls
37+
wake read actor-lifetime VFS get_pages round trips: 368
38+
wake read actor-lifetime VFS fetched: 18851 pages / 73.64 MiB
39+
wake read actor-lifetime VFS prefetch: 18483 pages / 72.20 MiB
40+
wake read actor-lifetime VFS cache: hits=16425 misses=368 requested=16793
41+
wake read actor-lifetime VFS get_pages transport: 7648.0ms over 368 calls
42+
wake read actor-lifetime VFS metrics include startup DB work before the read action.
43+
probe matches: hot=0 wake=0
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
(node:183521) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
2+
(Use `node --trace-deprecation ...` to show where the warning was created)
3+
4+
RivetKit 2.3.0-rc.4 (Engine - Serverful)
5+
- Endpoint: http://127.0.0.1:6520/ (remote)
6+
- Actors: 85
7+
8+
SQLite cold-start benchmark
9+
endpoint=http://127.0.0.1:6520
10+
actor_key=sqlite-cold-start-bench/sqlite-cold-start-1777443114655-8cc94dee
11+
actor_id=962ccuctmvpt24sc7tnwbkcs41bl00
12+
start_local_envoy=true
13+
target=50.00 MiB row_bytes=16384 batch_rows=8 transaction_bytes=65536
14+
15+
reset...
16+
write random strings...
17+
hot read...
18+
sleep...
19+
wake read...
20+
21+
Results
22+
rows: 3200
23+
transactions: 800
24+
bytes: 50.00 MiB
25+
insert server: 14495.4ms (insert=424.4ms, commit=14071.0ms, random_strings=65.6ms)
26+
insert e2e: 14861.4ms
27+
hot read server: 109.5ms
28+
hot read e2e: 129.3ms
29+
wake read server: 5759.7ms
30+
wake read e2e: 5873.2ms
31+
wake overhead estimate: 113.4ms
32+
hot read VFS get_pages round trips: 0
33+
hot read VFS fetched: 0 pages / 0.00 MiB
34+
hot read VFS prefetch: 0 pages / 0.00 MiB
35+
hot read VFS cache: hits=16786 misses=0 requested=16786
36+
hot read VFS get_pages transport: 0.0ms over 0 calls
37+
wake read actor-lifetime VFS get_pages round trips: 219
38+
wake read actor-lifetime VFS fetched: 13713 pages / 53.57 MiB
39+
wake read actor-lifetime VFS prefetch: 13494 pages / 52.71 MiB
40+
wake read actor-lifetime VFS cache: hits=16574 misses=219 requested=16793
41+
wake read actor-lifetime VFS get_pages transport: 5519.9ms over 219 calls
42+
wake read actor-lifetime VFS metrics include startup DB work before the read action.
43+
probe matches: hot=0 wake=0
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
(node:220282) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
2+
(Use `node --trace-deprecation ...` to show where the warning was created)
3+
4+
RivetKit 2.3.0-rc.4 (Engine - Serverful)
5+
- Endpoint: http://127.0.0.1:6420 (local native)
6+
- Actors: 85
7+
8+
SQLite cold-start benchmark
9+
endpoint=http://127.0.0.1:6420
10+
actor_key=sqlite-cold-start-bench/sqlite-cold-start-1777443500453-7dccc418
11+
actor_id=5fesnka97q6dw29gusapk5z3tyal00
12+
start_local_envoy=true
13+
target=50.00 MiB row_bytes=16384 batch_rows=8 transaction_bytes=65536
14+
15+
reset...
16+
write random strings...
17+
hot read...
18+
sleep...
19+
wake read...
20+
21+
Results
22+
rows: 3200
23+
transactions: 800
24+
bytes: 50.00 MiB
25+
insert server: 14703.7ms (insert=434.7ms, commit=14269.0ms, random_strings=71.8ms)
26+
insert e2e: 15080.7ms
27+
hot read server: 147.7ms
28+
hot read e2e: 161.7ms
29+
wake read server: 5743.7ms
30+
wake read e2e: 5884.3ms
31+
wake overhead estimate: 140.6ms
32+
hot read VFS get_pages round trips: 0
33+
hot read VFS fetched: 0 pages / 0.00 MiB
34+
hot read VFS prefetch: 0 pages / 0.00 MiB
35+
hot read VFS cache: hits=16786 misses=0 requested=16786
36+
hot read VFS get_pages transport: 0.0ms over 0 calls
37+
wake read actor-lifetime VFS get_pages round trips: 220
38+
wake read actor-lifetime VFS fetched: 13717 pages / 53.58 MiB
39+
wake read actor-lifetime VFS prefetch: 13497 pages / 52.72 MiB
40+
wake read actor-lifetime VFS cache: hits=16573 misses=220 requested=16793
41+
wake read actor-lifetime VFS get_pages transport: 5410.5ms over 220 calls
42+
wake read actor-lifetime VFS metrics include startup DB work before the read action.
43+
probe matches: hot=0 wake=0
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
(node:310145) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
2+
(Use `node --trace-deprecation ...` to show where the warning was created)
3+
4+
RivetKit 2.3.0-rc.4 (Engine - Serverful)
5+
- Endpoint: http://127.0.0.1:6420 (local native)
6+
- Actors: 85
7+
8+
SQLite cold-start benchmark
9+
endpoint=http://127.0.0.1:6420
10+
actor_key=sqlite-cold-start-bench/sqlite-cold-start-1777444283300-59fd8c4a
11+
actor_id=punxzph6y3w9ezddh2mvr5d05rcl00
12+
start_local_envoy=true
13+
target=50.00 MiB row_bytes=16384 batch_rows=8 transaction_bytes=65536
14+
15+
reset...
16+
write random strings...
17+
hot read...
18+
sleep...
19+
wake read...
20+
21+
Results
22+
rows: 3200
23+
transactions: 800
24+
bytes: 50.00 MiB
25+
insert server: 7567.4ms (insert=208.7ms, commit=7358.6ms, random_strings=46.0ms)
26+
insert e2e: 7755.7ms
27+
hot read server: 136.2ms
28+
hot read e2e: 145.1ms
29+
wake read server: 4170.0ms
30+
wake read e2e: 8287.8ms
31+
wake overhead estimate: 4117.8ms
32+
hot read VFS get_pages round trips: 0
33+
hot read VFS fetched: 0 pages / 0.00 MiB
34+
hot read VFS prefetch: 0 pages / 0.00 MiB
35+
hot read VFS cache: hits=16786 misses=0 requested=16786
36+
hot read VFS get_pages transport: 0.0ms over 0 calls
37+
wake read actor-lifetime VFS get_pages round trips: 219
38+
wake read actor-lifetime VFS fetched: 13713 pages / 53.57 MiB
39+
wake read actor-lifetime VFS prefetch: 13494 pages / 52.71 MiB
40+
wake read actor-lifetime VFS cache: hits=16574 misses=219 requested=16793
41+
wake read actor-lifetime VFS get_pages transport: 3928.8ms over 219 calls
42+
wake read actor-lifetime VFS metrics include startup DB work before the read action.
43+
probe matches: hot=0 wake=0
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
(node:339090) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
2+
(Use `node --trace-deprecation ...` to show where the warning was created)
3+
4+
RivetKit 2.3.0-rc.4 (Engine - Serverful)
5+
- Endpoint: http://127.0.0.1:6420 (local native)
6+
- Actors: 85
7+
8+
SQLite cold-start benchmark
9+
endpoint=http://127.0.0.1:6420
10+
actor_key=sqlite-cold-start-bench/sqlite-cold-start-1777444636651-8e9628c6
11+
actor_id=5j5oe1q4d7xnbqqzpg9c5d4l2lal00
12+
start_local_envoy=true
13+
target=50.00 MiB row_bytes=16384 batch_rows=8 transaction_bytes=65536
14+
15+
reset...
16+
write random strings...
17+
hot read...
18+
sleep...
19+
wake read...
20+
21+
Results
22+
rows: 3200
23+
transactions: 800
24+
bytes: 50.00 MiB
25+
insert server: 15405.0ms (insert=477.5ms, commit=14927.5ms, random_strings=62.6ms)
26+
insert e2e: 15810.0ms
27+
hot read server: 157.0ms
28+
hot read e2e: 171.0ms
29+
wake read server: 3945.3ms
30+
wake read e2e: 4074.9ms
31+
wake overhead estimate: 129.6ms
32+
hot read VFS get_pages round trips: 0
33+
hot read VFS fetched: 0 pages / 0.00 MiB
34+
hot read VFS prefetch: 0 pages / 0.00 MiB
35+
hot read VFS cache: hits=16786 misses=0 requested=16786
36+
hot read VFS get_pages transport: 0.0ms over 0 calls
37+
wake read actor-lifetime VFS get_pages round trips: 69
38+
wake read actor-lifetime VFS fetched: 13726 pages / 53.62 MiB
39+
wake read actor-lifetime VFS prefetch: 13657 pages / 53.35 MiB
40+
wake read actor-lifetime VFS cache: hits=16724 misses=69 requested=16793
41+
wake read actor-lifetime VFS get_pages transport: 3723.1ms over 69 calls
42+
wake read actor-lifetime VFS metrics include startup DB work before the read action.
43+
probe matches: hot=0 wake=0
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
(node:388702) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
2+
(Use `node --trace-deprecation ...` to show where the warning was created)
3+
4+
RivetKit 2.3.0-rc.4 (Engine - Serverful)
5+
- Endpoint: http://127.0.0.1:6420 (local native)
6+
- Actors: 85
7+
8+
SQLite cold-start benchmark
9+
endpoint=http://127.0.0.1:6420
10+
actor_key=sqlite-cold-start-bench/sqlite-cold-start-1777445011030-6b6f2b3d
11+
actor_id=xszrso7jtpera3m545dyklnlocbl00
12+
start_local_envoy=true
13+
target=50.00 MiB row_bytes=16384 batch_rows=8 transaction_bytes=65536
14+
15+
reset...
16+
write random strings...
17+
hot read...
18+
sleep...
19+
wake read...
20+
21+
Results
22+
rows: 3200
23+
transactions: 800
24+
bytes: 50.00 MiB
25+
insert server: 15512.4ms (insert=517.3ms, commit=14995.1ms, random_strings=66.7ms)
26+
insert e2e: 15952.7ms
27+
hot read server: 180.8ms
28+
hot read e2e: 193.5ms
29+
wake read server: 3883.5ms
30+
wake read e2e: 4040.1ms
31+
wake overhead estimate: 156.5ms
32+
hot read VFS get_pages round trips: 0
33+
hot read VFS fetched: 0 pages / 0.00 MiB
34+
hot read VFS prefetch: 0 pages / 0.00 MiB
35+
hot read VFS cache: hits=16786 misses=0 requested=16786
36+
hot read VFS get_pages transport: 0.0ms over 0 calls
37+
wake read actor-lifetime VFS get_pages round trips: 69
38+
wake read actor-lifetime VFS fetched: 13726 pages / 53.62 MiB
39+
wake read actor-lifetime VFS prefetch: 13657 pages / 53.35 MiB
40+
wake read actor-lifetime VFS cache: hits=16724 misses=69 requested=16793
41+
wake read actor-lifetime VFS get_pages transport: 3650.0ms over 69 calls
42+
wake read actor-lifetime VFS metrics include startup DB work before the read action.
43+
probe matches: hot=0 wake=0
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
(node:450031) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
2+
(Use `node --trace-deprecation ...` to show where the warning was created)
3+
4+
RivetKit 2.3.0-rc.4 (Engine - Serverful)
5+
- Endpoint: http://127.0.0.1:6420 (local native)
6+
- Actors: 85
7+
8+
SQLite cold-start benchmark
9+
endpoint=http://127.0.0.1:6420
10+
actor_key=sqlite-cold-start-bench/sqlite-cold-start-1777446091449-db405f17
11+
actor_id=xok5kz5b2zguk4mqchyeyx1mfoal00
12+
start_local_envoy=true
13+
target=50.00 MiB row_bytes=16384 batch_rows=8 transaction_bytes=65536
14+
15+
reset...
16+
write random strings...
17+
hot read...
18+
sleep...
19+
wake read...
20+
21+
Results
22+
rows: 3200
23+
transactions: 800
24+
bytes: 50.00 MiB
25+
insert server: 15559.3ms (insert=469.6ms, commit=15089.7ms, random_strings=63.4ms)
26+
insert e2e: 15945.6ms
27+
hot read server: 145.0ms
28+
hot read e2e: 156.3ms
29+
wake read server: 3967.7ms
30+
wake read e2e: 4116.3ms
31+
wake overhead estimate: 148.6ms
32+
hot read VFS get_pages round trips: 0
33+
hot read VFS fetched: 0 pages / 0.00 MiB
34+
hot read VFS prefetch: 0 pages / 0.00 MiB
35+
hot read VFS cache: hits=16786 misses=0 requested=16786
36+
hot read VFS get_pages transport: 0.0ms over 0 calls
37+
wake read actor-lifetime VFS get_pages round trips: 69
38+
wake read actor-lifetime VFS fetched: 13726 pages / 53.62 MiB
39+
wake read actor-lifetime VFS prefetch: 13657 pages / 53.35 MiB
40+
wake read actor-lifetime VFS cache: hits=16724 misses=69 requested=16793
41+
wake read actor-lifetime VFS get_pages transport: 3738.6ms over 69 calls
42+
wake read actor-lifetime VFS metrics include startup DB work before the read action.
43+
probe matches: hot=0 wake=0
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
(node:489245) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
2+
(Use `node --trace-deprecation ...` to show where the warning was created)
3+
4+
RivetKit 2.3.0-rc.4 (Engine - Serverful)
5+
- Endpoint: http://127.0.0.1:6420 (local native)
6+
- Actors: 85
7+
8+
SQLite cold-start benchmark
9+
endpoint=http://127.0.0.1:6420
10+
actor_key=sqlite-cold-start-bench/sqlite-cold-start-1777446697136-e7c9049d
11+
actor_id=x8w3sjgwy046izendfgf672vvnal00
12+
start_local_envoy=true
13+
target=50.00 MiB row_bytes=16384 batch_rows=8 transaction_bytes=65536
14+
15+
reset...
16+
write random strings...
17+
hot read...
18+
sleep...
19+
wake read...
20+
21+
Results
22+
rows: 3200
23+
transactions: 800
24+
bytes: 50.00 MiB
25+
insert server: 15532.8ms (insert=492.1ms, commit=15040.7ms, random_strings=66.8ms)
26+
insert e2e: 15947.0ms
27+
hot read server: 150.7ms
28+
hot read e2e: 167.6ms
29+
wake read server: 3969.8ms
30+
wake read e2e: 4271.7ms
31+
wake overhead estimate: 301.9ms
32+
hot read VFS get_pages round trips: 0
33+
hot read VFS fetched: 0 pages / 0.00 MiB
34+
hot read VFS prefetch: 0 pages / 0.00 MiB
35+
hot read VFS cache: hits=16786 misses=0 requested=16786
36+
hot read VFS get_pages transport: 0.0ms over 0 calls
37+
wake read actor-lifetime VFS get_pages round trips: 69
38+
wake read actor-lifetime VFS fetched: 13726 pages / 53.62 MiB
39+
wake read actor-lifetime VFS prefetch: 13657 pages / 53.35 MiB
40+
wake read actor-lifetime VFS cache: hits=16724 misses=69 requested=16793
41+
wake read actor-lifetime VFS get_pages transport: 3749.0ms over 69 calls
42+
wake read actor-lifetime VFS metrics include startup DB work before the read action.
43+
probe matches: hot=0 wake=0
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
(node:523357) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
2+
(Use `node --trace-deprecation ...` to show where the warning was created)
3+
4+
RivetKit 2.3.0-rc.4 (Engine - Serverful)
5+
- Endpoint: http://127.0.0.1:6420 (local native)
6+
- Actors: 85
7+
8+
SQLite cold-start benchmark
9+
endpoint=http://127.0.0.1:6420
10+
actor_key=sqlite-cold-start-bench/sqlite-cold-start-1777447075217-95ad3685
11+
actor_id=18mupl5svfzk24t5mmz1wxnxp9dl00
12+
start_local_envoy=true
13+
target=50.00 MiB row_bytes=16384 batch_rows=8 transaction_bytes=65536
14+
15+
reset...
16+
write random strings...
17+
hot read...
18+
sleep...
19+
wake read...
20+
21+
Results
22+
rows: 3200
23+
transactions: 800
24+
bytes: 50.00 MiB
25+
insert server: 14419.3ms (insert=412.2ms, commit=14007.1ms, random_strings=66.1ms)
26+
insert e2e: 14779.2ms
27+
hot read server: 143.0ms
28+
hot read e2e: 151.6ms
29+
wake read server: 3974.3ms
30+
wake read e2e: 4209.9ms
31+
wake overhead estimate: 235.5ms
32+
hot read VFS get_pages round trips: 0
33+
hot read VFS fetched: 0 pages / 0.00 MiB
34+
hot read VFS prefetch: 0 pages / 0.00 MiB
35+
hot read VFS cache: hits=16786 misses=0 requested=16786
36+
hot read VFS get_pages transport: 0.0ms over 0 calls
37+
wake read actor-lifetime VFS get_pages round trips: 70
38+
wake read actor-lifetime VFS fetched: 13722 pages / 53.60 MiB
39+
wake read actor-lifetime VFS prefetch: 13652 pages / 53.33 MiB
40+
wake read actor-lifetime VFS cache: hits=16723 misses=70 requested=16793
41+
wake read actor-lifetime VFS get_pages transport: 3741.3ms over 70 calls
42+
wake read actor-lifetime VFS metrics include startup DB work before the read action.
43+
probe matches: hot=0 wake=0

0 commit comments

Comments
 (0)