Skip to content

Commit 31f5ae3

Browse files
committed
test: update performance test baselines
1 parent 4a94c2b commit 31f5ae3

28 files changed

+450
-256
lines changed

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ bin
55
lib
66
docs
77
tsconfig.tsbuildinfo
8-
**/*.js
8+
**/*.js
9+
packages/bench

packages/benches/combine/combine-CRUDL.bench.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,4 @@ bench('combined SQL and DDB schema w client types', async () => {
110110
title: 'updated',
111111
});
112112
const _deletedBlog = await client.models.Blog.delete({ id: 'abc' });
113-
}).types([2295900, 'instantiations']);
113+
}).types([2322525, 'instantiations']);

packages/benches/p50/ai/p50-conversation-operations.bench.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,8 @@ bench('p50 conversation operations', async () => {
6565
allow.publicApiKey().to(['read']),
6666
allow.owner(),
6767
]),
68-
ChatBot: a.conversation(input)
69-
.authorization((allow) => allow.owner()),
70-
GossipBot: a.conversation(input)
71-
.authorization((allow) => allow.owner()),
68+
ChatBot: a.conversation(input).authorization((allow) => allow.owner()),
69+
GossipBot: a.conversation(input).authorization((allow) => allow.owner()),
7270
})
7371
.authorization((allow) => allow.publicApiKey());
7472

@@ -101,4 +99,4 @@ bench('p50 conversation operations', async () => {
10199
});
102100

103101
await conversation?.listMessages();
104-
}).types([13028, 'instantiations']);
102+
}).types([20266, 'instantiations'][(20266, 'instantiations')]);

packages/benches/p50/ai/p50-conversation-prod-operations.bench.ts

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -607,16 +607,11 @@ bench('prod p50 conversation operations', async () => {
607607
allow.authenticated('identityPool').to(['read']),
608608
allow.owner(),
609609
]),
610-
ChatBot: a.conversation(input)
611-
.authorization((allow) => allow.owner()),
612-
GossipBot: a.conversation(input)
613-
.authorization((allow) => allow.owner()),
614-
HaikuBot: a.conversation(input)
615-
.authorization((allow) => allow.owner()),
616-
MathBot: a.conversation(input)
617-
.authorization((allow) => allow.owner()),
618-
ScienceBot: a.conversation(input)
619-
.authorization((allow) => allow.owner()),
610+
ChatBot: a.conversation(input).authorization((allow) => allow.owner()),
611+
GossipBot: a.conversation(input).authorization((allow) => allow.owner()),
612+
HaikuBot: a.conversation(input).authorization((allow) => allow.owner()),
613+
MathBot: a.conversation(input).authorization((allow) => allow.owner()),
614+
ScienceBot: a.conversation(input).authorization((allow) => allow.owner()),
620615
// [Global authorization rule]
621616
})
622617
.authorization((allow) => allow.publicApiKey());
@@ -650,4 +645,4 @@ bench('prod p50 conversation operations', async () => {
650645
});
651646

652647
await conversation?.listMessages();
653-
}).types([35375, 'instantiations']);
648+
}).types([44021, 'instantiations'][(44021, 'instantiations')]);

packages/benches/p50/ai/p50-conversation-prod.bench.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ bench('prod p50 conversation', () => {
615615
.authorization((allow) => allow.owner()),
616616
// [Global authorization rule]
617617
}).authorization((allow) => allow.publicApiKey());
618-
}).types([20837, 'instantiations']);
618+
}).types([28904,"instantiations"]);
619619

620620
bench('prod p50 conversation w/ client types', () => {
621621
const s = a
@@ -1217,7 +1217,7 @@ bench('prod p50 conversation w/ client types', () => {
12171217
.authorization((allow) => allow.publicApiKey());
12181218

12191219
type _ = ClientSchema<typeof s>;
1220-
}).types([22779, 'instantiations']);
1220+
}).types([31252,"instantiations"]);
12211221

12221222
bench('prod p50 conversation combined w/ client types', () => {
12231223
const s1 = a.schema({
@@ -1820,4 +1820,4 @@ bench('prod p50 conversation combined w/ client types', () => {
18201820

18211821
const s = a.combine([s1, s2]);
18221822
type _ = ClientSchema<typeof s>;
1823-
}).types([27012, 'instantiations']);
1823+
}).types([35642,"instantiations"]);

packages/benches/p50/ai/p50-conversation.bench.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ bench('p50 conversation', () => {
6565
GossipBot: a.conversation(input)
6666
.authorization((allow) => allow.owner()),
6767
}).authorization((allow) => allow.publicApiKey());
68-
}).types([8514, 'instantiations']);
68+
}).types([15287,"instantiations"]);
6969

7070
bench('p50 conversation w/ client types', () => {
7171
const s = a
@@ -120,7 +120,7 @@ bench('p50 conversation w/ client types', () => {
120120
.authorization((allow) => allow.publicApiKey());
121121

122122
type _ = ClientSchema<typeof s>;
123-
}).types([10441, 'instantiations']);
123+
}).types([17622,"instantiations"]);
124124

125125
bench('p50 combined conversation w/ client types', () => {
126126
const s1 = a
@@ -183,4 +183,4 @@ bench('p50 combined conversation w/ client types', () => {
183183

184184
const s = a.combine([s1, s2]);
185185
type _ = ClientSchema<typeof s>;
186-
}).types([13892, 'instantiations']);
186+
}).types([21309,"instantiations"]);

packages/benches/p50/operations/p50-CRUDL.bench.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,4 @@ bench('p50 CRUDL', async () => {
9292
});
9393

9494
await client.models.Todo.list();
95-
}).types([355529, 'instantiations']);
95+
}).types([365796, 'instantiations']);

packages/benches/p50/operations/p50-prod-CRUDL.bench.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,4 +629,4 @@ bench('prod p50 CRUDL', async () => {
629629
});
630630

631631
await client.models.Todo.list();
632-
}).types([692058, 'instantiations']);
632+
}).types([699671, 'instantiations']);

packages/benches/p50/operations/p50-prod-selection-set.bench.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,4 +632,4 @@ bench('prod p50 CRUDL', async () => {
632632
});
633633

634634
await client.models.Todo.list({ selectionSet });
635-
}).types([715279, 'instantiations']);
635+
}).types([722895, 'instantiations']);

packages/benches/p50/operations/p50-selection-set.bench.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,4 @@ bench('p50 CRUDL', async () => {
9494
});
9595

9696
await client.models.Todo.list({ selectionSet });
97-
}).types([378409, 'instantiations']);
97+
}).types([388679, 'instantiations']);

0 commit comments

Comments
 (0)