Skip to content

Commit

Permalink
document new sig
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed May 31, 2020
1 parent f5c5839 commit 7e9502f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/benchmarks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ Execution case is specified by 6 lines:

1. The case name. Must not be empty.
2. The exported wasm function name to be executed.
3. The function arguments as space-separated list of integers. May be empty.
4. The hex-encoded bytes of the initial memory. May be empty.
5. The expected result as an integer. Empty line means no result is expected.
6. The hex-encoded bytes of the expected memory after execution.
3. The function type where the parameter type(s) and the result type is separated with a colon (`:`).
The only allowed types currently are `i` for i32 and `I` for i64. e.g. `i:` for i32 input and no result.
4. The function arguments as space-separated list of integers. May be empty.
5. The hex-encoded bytes of the initial memory. May be empty.
6. The expected result as an integer. Empty line means no result is expected.
7. The hex-encoded bytes of the expected memory after execution.
If empty, result memory will not be checked.

Additional empty lines are allowed before each case.
Expand All @@ -25,13 +27,15 @@ Additional empty lines are allowed before each case.
```
case_1
testFunction
iii:i
2 3 4
000000ff
1
ff000000ff000000
case_2
memset
iii:
0 0xfe 3
Expand Down

0 comments on commit 7e9502f

Please sign in to comment.