mit-dci / opencbdc-tx

A transaction processor for a hypothetical, general-purpose, central bank digital currency
Other
898 stars 198 forks source link

Usability updates for lua bench testing #253

Closed maurermi closed 5 months ago

maurermi commented 6 months ago

Add in script for running lua bench, and add configurable logging to the lua bench test.

Also updates .gitignore to ignore installed lua files but not files in a 'lua/' subdirectory.

This lua bench script is a more fleshed out version of the one added in PR #241

HalosGhost commented 5 months ago

utACK; looks like a straightforward addition of a wrapper benchmarking script for the lua runner along with a touch more logging and an update to the ignore file. Do you have a suggested procedure for a tACK?

maurermi commented 5 months ago

@HalosGhost This is indeed a very small change, to test I would suggest is to run parsec locally, and then run the Lua bench script (potentially as follows):

(configure, build, etc...)
./scripts/parsec-run-local.sh --runner_type=lua --port=8889
(wait for spawn ...)
./scripts/lua_bench.sh --loglevel=TRACE

I assert that this should work and run the Lua bench test locally with trace logging