add enable cython profile directive to lib.pxi for profiling
()
| 30 | |
| 31 | @pytest.mark.skip(reason="take too long") |
| 32 | def test_encode(): |
| 33 | """add enable cython profile directive to lib.pxi for profiling""" |
| 34 | encoder = fory.create_row_encoder(foo_schema()) |
| 35 | foo = create_foo() |
| 36 | iter_nums = 100000 |
| 37 | for _ in range(iter_nums): |
| 38 | encoder.to_row(foo) |
| 39 | |
| 40 | |
| 41 | if __name__ == "__main__": |
no test coverage detected