Skip to content

Commit 2f6f016

Browse files
committed
Turn benchmarks into a monorepo
1 parent 70a5d2b commit 2f6f016

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+7634
-2583
lines changed

benchmark/.env.local.sample

Lines changed: 0 additions & 2 deletions
This file was deleted.

benchmark/.gitignore

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# Dependencies
4+
node_modules
5+
.pnp
6+
.pnp.js
7+
8+
# Local env files
9+
.env
10+
.env.local
11+
.env.development.local
12+
.env.test.local
13+
.env.production.local
14+
15+
# Testing
16+
coverage
17+
18+
# Turbo
19+
.turbo
20+
21+
# Vercel
22+
.vercel
23+
24+
# Build Outputs
25+
.next/
26+
out/
27+
build
28+
dist
29+
30+
31+
# Debug
32+
npm-debug.log*
33+
yarn-debug.log*
34+
yarn-error.log*
35+
36+
# Misc
37+
.DS_Store
38+
*.pem

benchmark/.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
public-hoist-pattern[]=*libsql*
2+
public-hoist-pattern[]=*libsql*

benchmark/README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,43 @@
11
# Benchmark Harness
22

3+
Install nvm:
4+
5+
```sh
6+
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash
7+
# Reload shell.
8+
nvm install
9+
```
10+
11+
Install pnpm:
12+
13+
```sh
14+
npm install --global corepack@latest
15+
corepack enable pnpm
16+
corepack use pnpm@latest-10
17+
```
18+
19+
Install dependencies:
20+
21+
```sh
22+
pnpm install
23+
```
24+
25+
Configure database:
26+
27+
```sh
28+
cp packages/server/.env.sample packages/server/.env
29+
# Update BENCHMARKS_DB_PATH as needed in `packages/server/.env`.
30+
pnpm --filter @benchmark/server db:migrate
31+
```
32+
33+
Run the benchmark server:
34+
35+
```sh
36+
pnpm dev
37+
```
38+
39+
################################################################################
40+
341
Configure ENV vars (OpenRouter, PostHog, etc):
442

543
```sh

0 commit comments

Comments
 (0)