add inexpensive vmPerformanceTests, especially Ackermann and Fibonacci tests; whole suite still runs in a few seconds

This commit is contained in:
Dustin Brody 2018-08-07 12:24:37 -07:00
parent ea2f3b71bf
commit 21fcaeb8ef
2 changed files with 8 additions and 8 deletions

View File

@ -511,11 +511,11 @@ OK: 144/144 Fail: 0/144 Skip: 0/144
OK: 46/46 Fail: 0/46 Skip: 0/46
## vmPerformance
```diff
ackermann31.json Skip
ackermann32.json Skip
ackermann33.json Skip
fibonacci10.json Skip
fibonacci16.json Skip
+ ackermann31.json OK
+ ackermann32.json OK
+ ackermann33.json OK
+ fibonacci10.json OK
+ fibonacci16.json OK
loop-add-10M.json Skip
loop-divadd-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-mul.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
```diff
+ dup1.json OK

View File

@ -18,7 +18,7 @@ type
proc validTest*(folder: string, name: string): bool =
# 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 =
let