Skip to content

asubiotto/dst

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to run

./entropy.sh is the main script. Check out main.go for the toy program that is run. For deterministic executions running on WASM, specify a GORANDSEED and the path to the custom go runtime:

$ GORANDSEED=123 ./entropy.sh -r /Users/asubiotto/Developer/github.com/asubiotto/go
Building project
GORANDSEED set to 123. Remember to set this env var if you want deterministic execution
Running benchmark...
Processing results...
1 distinct executions out of 1024 executions: score: 100.00%
Benchmark completed and results processed.

To run the same program with your version of go installed, simply run ./entropy.sh:

$ ./entropy.sh
Building project
GORANDSEED set to . Remember to set this env var if you want deterministic execution
Running benchmark...
Processing results...
1024 distinct executions out of 1024 executions: score: 0.00%
Benchmark completed and results processed.

Suggestions

Can you break determinism? Feel free to open an issue against this repo. We're aware that this approach for deterministic execution in Go is likely incomplete and open to improving it.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published