Skip to content

Commit ae1f6bc

Browse files
Docs: Update benchmark for fib(90).
1 parent 1a75fa5 commit ae1f6bc

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

compiler/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Add to `$PATH`:
2727
```bash
2828
realpath target/release/edge
2929

30-
echo 'export PATH="/path/to/compiler:$PATH"' >> ~/.bashrc
30+
echo 'export PATH="/path/to/compiler/target/release:$PATH"' >> ~/.bashrc
3131
source ~/.bashrc
3232
```
3333

@@ -42,15 +42,15 @@ def fib(n):
4242

4343
return fib(n-1) + fib(n-2)
4444

45-
print(fib(45)) # fibonacci sequence forty five
45+
print(fib(45)) # fibonacci sequence forty five -> 1,134,903,170
4646
```
4747

48-
| Runtime | real | user | sys |
49-
|--------------|-----------|-----------|----------|
50-
| CPython 3.13 | 1m56.345s | 1m56.324s | 0m0.009s |
51-
| Edge Python | 0m0.011s | 0m0.000s | 0m0.003s |
48+
| Runtime | fib(45) real | fib(45) user | sys | fib(90) real |
49+
|--------------|--------------|--------------|----------|--------------|
50+
| CPython 3.13 | 1m56.345s | 1m56.324s | 0m0.009s | n/a |
51+
| Edge Python | 0m0.011s | 0m0.000s | 0m0.003s | 0m0.013s |
5252

53-
*10,577x faster than CPython on pure recursive call overhead.*
53+
*10,577x faster than CPython on recursive fib(45), where fib(90) completes in 13ms.*
5454

5555
### Usage
5656

0 commit comments

Comments
 (0)