Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests for message deserialization. #1

Closed
mookerji opened this issue Nov 25, 2014 · 0 comments
Closed

Tests for message deserialization. #1

mookerji opened this issue Nov 25, 2014 · 0 comments

Comments

@mookerji
Copy link
Contributor

Tests are needed, at least for the python client, to check for proper message handling and dispatch.

@mookerji mookerji modified the milestone: Stabilize LibSBP: Cleanup Hacks and Technical Debt Jan 5, 2015
@mookerji mookerji self-assigned this Jan 5, 2015
@mookerji mookerji removed the 5 - Done label Mar 30, 2015
mfine pushed a commit to mfine/libsbp that referenced this issue Oct 28, 2016
Support 64-bit unsigned ints in the JavaScript version of libsbp.
denniszollo added a commit that referenced this issue Nov 9, 2016
Fix javascript whitelist unit tests for new messages
silverjam pushed a commit that referenced this issue Mar 30, 2021
+ strip out use of use of construct when deframing, this moves construct out of the deframing hot path

+ use binascii (which is a C extension module) to implement the CRC calculation: https://github.com/python/cpython/blob/master/Modules/binascii.c

+ Used sbp2json (skipping the `dispatch` method which parses into fields) to test the speed of just deframing. Speed of deframing (no JSON serializatoin) with master:
```
Benchmark #1: python -m sbp2json <test_data/benchmark.sbp
  Time (mean ± σ):     11.990 s ±  0.331 s    [User: 11.979 s, System: 0.011 s]
  Range (min … max):   11.441 s … 12.556 s    10 runs
```

Speed of deframing (no JSON serialization) with this branch:
```
❯ hyperfine 'python -m sbp2json --include 1 <test_data/benchmark.sbp'                                                                                                                                                (libsbp)
Benchmark #1: python -m sbp2json --include 1 <test_data/benchmark.sbp
  Time (mean ± σ):     961.3 ms ±  18.7 ms    [User: 953.2 ms, System: 8.1 ms]
  Range (min … max):   927.6 ms … 979.2 ms    10 runs
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant