Skip to content

Commit 1f50036

Browse files
committed
Aider-inspired polyglot benchmarks
1 parent a1aa003 commit 1f50036

File tree

13 files changed

+1586
-12
lines changed

13 files changed

+1586
-12
lines changed

benchmark/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
repos/*
2+
!repos/.gitkeep
3+
4+
.pnp.*
5+
6+
.yarn

benchmark/README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
Get the exercises from exercism:
2+
3+
````sh
4+
gh repo clone exercism/typescript repos/typescript
5+
# Same idea for python, ruby, go, rust, etc.
6+
# gh repo clone exercism/python repos/python
7+
find . -name ".vscode" | xargs rm -rf```
8+
````
9+
10+
Prepare an exercise:
11+
12+
```sh
13+
LANG=typescript
14+
EXERCISE=flatten-array
15+
16+
cp -rf repos/$LANG/exercises/practice/$EXERCISE $LANG
17+
sed -i 's/\bxit(/it(/g' $LANG/$EXERCISE/*.test.ts
18+
19+
echo "# Task
20+
21+
Complete the implementation in \`$EXERCISE.ts\`.
22+
23+
$(cat $LANG/$EXERCISE/.docs/instructions.md)
24+
25+
# Confirmation
26+
27+
To confirm that your solution is correct, run the tests with \`yarn test\`.
28+
You might need to install the dependencies first with \`yarn install\`." > $LANG/$EXERCISE/.docs/prompt.md
29+
```
30+
31+
TODO: The prompt is language dependent, so let's create a template for each language. The example above is for typescript.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
OPENROUTER_API_KEY=sk-or-v1-...

benchmark/harness/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Benchmark Harness

0 commit comments

Comments
 (0)