-
Notifications
You must be signed in to change notification settings - Fork 65
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
Performance? #81
Comments
Thank you, @gerleim I'm afraid no such thing has been done up until now, as we never experienced performance issues in AudioNodes regarding TypedJSON (and we are serializing/deserializing "rather large" structures). That said, it should be easy to measure performance for one particular case. What TypedJSON does is nothing more than a simple set of 2-way conversions between these 3 steps:
With that in mind, given an object tree Similarly for de-serialization, given a JSON string |
I've ran a test. Program 1 : Without TypedJSON
Program 2: With TypedJSON
Output : Program 1 : Without TypedJSON
Output : Program 2 : With TypedJSON
I am not pro in benchmarking stuff. This is my first time I am comparing performance. Can this test considered as a valid one ? |
Test with nested objectWithout TypedJSON
With TypedJSON //tslint:disable
Output : With TypedJSON
Output : Without TypedJSON
|
Nice work!
Any measurement of using TypedJSON vs plain JSON (not typed) or other methods of deserialization?
The text was updated successfully, but these errors were encountered: