update README.md

This commit is contained in:
ValKmjolnir 2022-02-18 15:59:27 +08:00
parent 8c67e04cc4
commit 13a09343e6
2 changed files with 9 additions and 0 deletions

View File

@ -1217,6 +1217,8 @@ And after that when creating new functions, they share the same upvalue, and the
## Benchmark
![benchmark](./pic/benchmark.png)
### version 6.5 (i5-8250U windows10 2021/6/19)
running time and gc time:
@ -1319,6 +1321,13 @@ running time:
|mandelbrot.nas|0.0156s||
|ascii-art.nas|0s||
`bf.nas` is a very interesting test file that there is a brainfuck interpreter written in nasal.
And we use this bf interpreter to draw a mandelbrot set.
In 2022/2/17 update we added `\e` into the lexer. And the `bfcolored.nas` uses this special ASCII code. Here is the result:
![mandelbrot](./pic/mandelbrot.png)
## __Difference Between Andy's and This Interpreter__
### 1. must use `var` to define variables

BIN
pic/mandelbrot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB