mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Various changes in TVM, github builds and tests (#793)
* Bugfixes in TVM and node * Upgrade to C++17 * Improve GitHub builds * Fix existing tests and partially integrate them into builds --------- Co-authored-by: neodiX42 <namlem@gmail.com> Co-authored-by: EmelyanenkoK <emelyanenko.kirill@gmail.com>
This commit is contained in:
parent
89700cb2aa
commit
5847897b37
122 changed files with 2889 additions and 4100 deletions
|
@ -64,7 +64,6 @@ typedef struct {
|
|||
|
||||
vm::Stack prepare_stack(td::Slice command) {
|
||||
const auto cell = to_cell(command);
|
||||
vm::init_op_cp0();
|
||||
vm::DictionaryBase::get_empty_dictionary();
|
||||
vm::Stack stack;
|
||||
try {
|
||||
|
@ -80,7 +79,6 @@ vm::Stack prepare_stack(td::Slice command) {
|
|||
|
||||
runInfo time_run_vm(td::Slice command, td::Ref<vm::Stack> stack) {
|
||||
const auto cell = to_cell(command);
|
||||
vm::init_op_cp0();
|
||||
vm::DictionaryBase::get_empty_dictionary();
|
||||
CHECK(stack.is_unique());
|
||||
try {
|
||||
|
@ -171,6 +169,7 @@ int main(int argc, char** argv) {
|
|||
setup = argv[1];
|
||||
code = argv[2];
|
||||
}
|
||||
vm::init_vm().ensure();
|
||||
const auto time = timeInstruction(setup, code);
|
||||
std::cout << std::fixed << std::setprecision(9) << code << "," << time.runtime.mean << "," << time.runtime.stddev
|
||||
<< "," << time.gasUsage.mean << "," << time.gasUsage.stddev << "," << (int)time.errored << std::endl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue