add Yaegi to benchmark (#271)
This commit is contained in:
parent
f4f70babbc
commit
b203f09032
1 changed files with 14 additions and 12 deletions
26
README.md
26
README.md
|
@ -51,19 +51,21 @@ fmt.println(sum("", [1, 2, 3])) // "123"
|
||||||
|
|
||||||
## Benchmark
|
## Benchmark
|
||||||
|
|
||||||
| | fib(35) | fibt(35) | Type |
|
| | fib(35) | fibt(35) | Language (Type) |
|
||||||
| :--- | ---: | ---: | :---: |
|
| :--- | ---: | ---: | :---: |
|
||||||
| Go | `48ms` | `3ms` | Go (native) |
|
| [**Tengo**](https://github.com/d5/tengo) | `2,931ms` | `4ms` | Tengo (VM) |
|
||||||
| [**Tengo**](https://github.com/d5/tengo) | `2,349ms` | `5ms` | VM on Go |
|
| [go-lua](https://github.com/Shopify/go-lua) | `4,824ms` | `4ms` | Lua (VM) |
|
||||||
| Lua | `1,416ms` | `3ms` | Lua (native) |
|
| [GopherLua](https://github.com/yuin/gopher-lua) | `5,365ms` | `4ms` | Lua (VM) |
|
||||||
| [go-lua](https://github.com/Shopify/go-lua) | `4,402ms` | `5ms` | Lua VM on Go |
|
| [goja](https://github.com/dop251/goja) | `5,533ms` | `5ms` | JavaScript (VM) |
|
||||||
| [GopherLua](https://github.com/yuin/gopher-lua) | `4,023ms` | `5ms` | Lua VM on Go |
|
| [starlark-go](https://github.com/google/starlark-go) | `11,495ms` | `5ms` | Starlark (Interpreter) |
|
||||||
| Python | `2,588ms` | `26ms` | Python (native) |
|
| [Yaegi](https://github.com/containous/yaegi) | `15,645ms` | `12ms` | Yaegi (Interpreter) |
|
||||||
| [starlark-go](https://github.com/google/starlark-go) | `11,126ms` | `6ms` | Python-like Interpreter on Go |
|
| [gpython](https://github.com/go-python/gpython) | `16,322ms` | `5ms` | Python (Interpreter) |
|
||||||
| [gpython](https://github.com/go-python/gpython) | `15,035ms` | `4ms` | Python Interpreter on Go |
|
| [otto](https://github.com/robertkrimen/otto) | `73,093ms` | `10ms` | JavaScript (Interpreter) |
|
||||||
| [goja](https://github.com/dop251/goja) | `5,089ms` | `5ms` | JS VM on Go |
|
| [Anko](https://github.com/mattn/anko) | `79,809ms` | `8ms` | Anko (Interpreter) |
|
||||||
| [otto](https://github.com/robertkrimen/otto) | `68,377ms` | `11ms` | JS Interpreter on Go |
|
| - | - | - | - |
|
||||||
| [Anko](https://github.com/mattn/anko) | `92,579ms` | `18ms` | Interpreter on Go |
|
| Go | `53ms` | `3ms` | Go (Native) |
|
||||||
|
| Lua | `1,612ms` | `3ms` | Lua (Native) |
|
||||||
|
| Python | `2,632ms` | `23ms` | Python 2 (Native) |
|
||||||
|
|
||||||
_* [fib(35)](https://github.com/d5/tengobench/blob/master/code/fib.tengo):
|
_* [fib(35)](https://github.com/d5/tengobench/blob/master/code/fib.tengo):
|
||||||
Fibonacci(35)_
|
Fibonacci(35)_
|
||||||
|
|
Loading…
Reference in a new issue