trueagi-io / hyperon-experimental

MeTTa programming language implementation
https://metta-lang.dev
MIT License
123 stars 43 forks source link

get-doc units tests are slow #660

Open vsbogd opened 3 months ago

vsbogd commented 3 months ago

Describe the bug Running unit tests for get-doc function takes about 50 seconds.

To Reproduce Steps to reproduce the behavior:

  1. enable tests ignored by commit https://github.com/trueagi-io/hyperon-experimental/pull/640/commits/1d41ab1190d16f3b52359abf14f3c0b170ff8e08
  2. execute cargo +nightly test --features minimal -- -Z unstable-options --report-time get_doc

Expected behavior Tests run in a second.

Actual behavior

test metta::runner::stdlib_minimal::tests::test_get_doc_function_call ... ok <2.012s>
test metta::runner::stdlib_minimal::tests::test_get_doc_atom ... ok <2.743s>
test metta::runner::stdlib_minimal::tests::test_get_doc_no_doc ... ok <2.789s>
test metta::runner::stdlib_minimal::tests::test_get_doc_gnd_func ... ok <19.243s>
test metta::runner::stdlib_minimal::tests::test_get_doc_func ... ok <19.274s>
test metta::runner::stdlib_minimal::tests::test_get_doc_no_type ... ok <24.494s>