mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-02-02 23:35:31 +00:00
add inexpensive vmPerformanceTests, especially Ackermann and Fibonacci tests; whole suite still runs in a few seconds
This commit is contained in:
parent
ea2f3b71bf
commit
21fcaeb8ef
14
VMTests.md
14
VMTests.md
@ -511,11 +511,11 @@ OK: 144/144 Fail: 0/144 Skip: 0/144
|
|||||||
OK: 46/46 Fail: 0/46 Skip: 0/46
|
OK: 46/46 Fail: 0/46 Skip: 0/46
|
||||||
## vmPerformance
|
## vmPerformance
|
||||||
```diff
|
```diff
|
||||||
ackermann31.json Skip
|
+ ackermann31.json OK
|
||||||
ackermann32.json Skip
|
+ ackermann32.json OK
|
||||||
ackermann33.json Skip
|
+ ackermann33.json OK
|
||||||
fibonacci10.json Skip
|
+ fibonacci10.json OK
|
||||||
fibonacci16.json Skip
|
+ fibonacci16.json OK
|
||||||
loop-add-10M.json Skip
|
loop-add-10M.json Skip
|
||||||
loop-divadd-10M.json Skip
|
loop-divadd-10M.json Skip
|
||||||
loop-divadd-unr100-10M.json Skip
|
loop-divadd-unr100-10M.json Skip
|
||||||
@ -528,9 +528,9 @@ OK: 46/46 Fail: 0/46 Skip: 0/46
|
|||||||
loop-exp-nop-1M.json Skip
|
loop-exp-nop-1M.json Skip
|
||||||
loop-mul.json Skip
|
loop-mul.json Skip
|
||||||
loop-mulmod-2M.json Skip
|
loop-mulmod-2M.json Skip
|
||||||
manyFunctions100.json Skip
|
+ manyFunctions100.json OK
|
||||||
```
|
```
|
||||||
OK: 0/18 Fail: 0/18 Skip: 18/18
|
OK: 6/18 Fail: 0/18 Skip: 12/18
|
||||||
## vmPushDupSwapTest
|
## vmPushDupSwapTest
|
||||||
```diff
|
```diff
|
||||||
+ dup1.json OK
|
+ dup1.json OK
|
||||||
|
@ -18,7 +18,7 @@ type
|
|||||||
proc validTest*(folder: string, name: string): bool =
|
proc validTest*(folder: string, name: string): bool =
|
||||||
# tests we want to skip or which segfault will be skipped here
|
# tests we want to skip or which segfault will be skipped here
|
||||||
|
|
||||||
result = folder notin @["vmPerformance"]
|
result = folder notin @["vmPerformance"] or "loop" notin name
|
||||||
|
|
||||||
macro jsonTest*(s: static[string], handler: untyped): untyped =
|
macro jsonTest*(s: static[string], handler: untyped): untyped =
|
||||||
let
|
let
|
||||||
|
Loading…
x
Reference in New Issue
Block a user