Lox interpreter written entirely in Miniscript.
Since the performance of maps in miniscript is low, most objects are represented by list.
The main branch only implemented official lox standard.
To use extended features, such as list and map, check out the extended branch.
For features based on greyscript extensions, check out the greyscript-extended branch.
Note: Benchmark parameters differ from official tests.
| Parameter | Value |
|---|---|
| Min Depth | 2 |
| Max Depth | 4 |
Results:
- Stretch tree of depth 8: -1
- Long-lived tree of depth 7: -1
- Elapsed: 7.798s
| Parameter | Value |
|---|---|
| While Times | 100 |
Results:
- Loop: 0.111s
- Elapsed: 1.202s
- Equals: 1.091s
| Parameter | Value |
|---|---|
| Fibonacci Number | 15 |
Results:
- Elapsed: 0.596s
| Parameter | Value |
|---|---|
| While Times | 100 |
Results:
- Elapsed: 0.388s
| Parameter | Value |
|---|---|
| While Times | 100 |
Results:
- Elapsed: 1.345s
| Parameter | Value |
|---|---|
| While Times | 100 |
Results:
- Elapsed: 0.589s
| Parameter | Value |
|---|---|
| Tree Depth | 4 |
| No For Loop | True |
Results:
- Elapsed: 0.232s
| Parameter | Value |
|---|---|
| While Times | 100 |
Results:
- Elapsed: 0.024s
| Parameter | Value |
|---|---|
| While Limit | 1 |
| For Times | 100 |
Results:
- Batches: 4200
- Elapsed: 1.069s
Benchmarks were run on the following machine:
- CPU: AMD Ryzen 9 5900HX
- RAM: 64 GiB
- OS: Windows 10
- Miniscript Interpreter: MiniScript