Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Periodically print simulator progress. (ServiceWeaver#620)
With this PR, a simulator periodically prints out its progress, just like with Go's fuzz testing. This is important to make sure the user knows the simulation isn't stuck. ``` $ go test -run=Passing/NoCallsNoGen -v === RUN TestPassingSimulations === RUN TestPassingSimulations/NoCallsNoGen simulator.go:390: Simulating *sim.noCallsNoGenWorkload for 10s with 1280 executors... simulator.go:405: [1s] 60,520 execs (60,064 execs/s), 4,207,853 ops (4,176,166 ops/s) simulator.go:405: [2s] 91,122 execs (45,390 execs/s), 9,494,404 ops (4,729,368 ops/s) simulator.go:405: [3s] 116,070 execs (38,594 execs/s), 15,377,846 ops (5,113,218 ops/s) simulator.go:405: [4s] 136,944 execs (34,175 execs/s), 21,386,940 ops (5,337,185 ops/s) simulator.go:405: [5s] 155,343 execs (31,024 execs/s), 27,506,001 ops (5,493,331 ops/s) simulator.go:405: [6s] 172,306 execs (28,681 execs/s), 33,831,171 ops (5,631,418 ops/s) simulator.go:405: [7s] 187,752 execs (26,794 execs/s), 40,157,529 ops (5,730,931 ops/s) simulator.go:405: [8s] 201,803 execs (25,203 execs/s), 46,384,348 ops (5,792,803 ops/s) simulator.go:405: [9s] 215,544 execs (23,930 execs/s), 52,909,102 ops (5,874,082 ops/s) ```
- Loading branch information