kr0st / fpgui

GUI application for convenient browsing through fplog-generated log messages
MIT License
0 stars 0 forks source link

Test ChaiScript sorting performance #6

Closed kr0st closed 6 years ago

kr0st commented 6 years ago

Pay special attention to huge json messages (containing base64 binary information) of several megs in size. Need to check how ChaiScript handles these.

kr0st commented 6 years ago

Tested performance of the compare function + std::sort approach: ~3 seconds to sort 1000 strings, ~41 seconds to sort 10000 strings on i7 CPU, single thread. Approach considered failed.

kr0st commented 6 years ago

Well, it is pretty much a disaster: large strings were not even tested, performance is awful even on small strings. Sorted 1000 strings using ChaiScript in 79006 ms. Even to simply convert 1000 strings from json takes about 500-1000ms.

So, there will be no sorting with ChaiScript.