Skip to content

s0me0ne-unkn0wn/pvf-stack-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pvf-stack-test

Compares logical stack cost estimation made by wasm-instrument to the real stack frame size.

Do NOT use debug build to run tests, it is incredibly slow. Always build release binary.

Usage

USAGE:
    pvf-stack-test [OPTIONS]

OPTIONS:
    -b, --batch-size <BATCH_SIZE>      Batch size [default: 100]
    -h, --help                         Print help information
    -n, --num-batches <NUM_BATCHES>    Number of batches [default: 160]
    -s, --seed <SEED>                  Reproduce a case for single seed, output
                                       out.<seed>.{wasm|cwasm}
    -t, --single-thread                Run in a single thread
    -v, --save                         Save every .wasm and .cwasm (slow)
    -V, --version                      Print version information
    -w, --wasm <WASM>                  Run on an externally provided .wasm module

Shortcuts

  • make : Generates test.log and dist.dat in standard conditions (16000 samples)
  • make disasm : Produces .wat and .asm for output files (generated with --save or --seed)
  • make clean : Removes output files (generated with --save or --seed), compiled binaries and disassembly results
  • make plot : Plots current dist.dat with gnuplot
  • make calc : Calculates maximum real_stack_size/estimation ratio in the current dist.dat as well as average ratio

Experiments

See here

About

Stack metering and experiments

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published