Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add benchmark-interp tool #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

add benchmark-interp tool #2

wants to merge 1 commit into from

Conversation

cdetrio
Copy link

@cdetrio cdetrio commented Jul 29, 2019

Example usage:

$ benchmark-interp add_main.wasm
parse succeeded...
execution succeeded.
run benchmark loop...
2019-07-29 16:22:39
Running benchmark-interp
Run on (12 X 2900 MHz CPU s)
CPU Caches:
  L1 Data 32K (x6)
  L1 Instruction 32K (x6)
  L2 Unified 262K (x6)
  L3 Unified 12582K (x1)
Load Average: 2.30, 1.88, 1.88
------------------------------------------------------
Benchmark            Time             CPU   Iterations
------------------------------------------------------
wabt_interp       97.3 us         97.1 us         6838

with a module add_main.wasm that succeeds:

(module
  (func $main (export "main")
    i32.const 5
    i32.const 5
    i32.add
    drop))

Given a module add_main_trap.wasm that fails:

(module
  (func $main (export "main")
    i32.const 5
    i32.const 5
    i32.add
    unreachable
    drop))
$ benchmark-interp add_main_trap.wasm
parse succeeded...
ERROR: execution failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant