C# 解析器性能

发布于 2024-12-12 03:33:10 字数 1432 浏览 0 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

反话 2024-12-19 03:33:10

没有背景,它不好,不好,也不好。就其本身而言,人们可以将这 46 秒解释为闪电般的快,或者慢如狗。您需要将其与其他 JSON 解析器进行比较,并计算它们解析相同数据所需的时间。

一旦您确定自己比竞争对手慢或快,并且掌握了一些背景信息,您就需要确定它对于其预期用途是否太慢。

只有这样你才能决定性能是好、坏还是一般:)

It isn't good, nor bad nor average without context. On it's own, one could interpret that 46 seconds as lightning fast, or dog-slow. You'll need to compare it with other JSON parsers out there and time how long it takes them to parse the same data.

Once you've decided that you're either slower or faster than competition and you have some context, you then need to decide if it's too slow for the use in which it is intended.

Only then can you decide whether the performance is good, bad or average :)

我为君王 2024-12-19 03:33:10

该站点列出了许多带有计时的解析器。

https://github.com/eishay/jvm-serializers/wiki/

This site lists many parsers with timings.

https://github.com/eishay/jvm-serializers/wiki/

永不分离 2024-12-19 03:33:10

性能与 JSON.NET 5.0 r8 和 ServiceStack 3.9.59 的性能进行比较:

我在此 GitHub 存储库上放置了一些 JSON 解析性能测试,以将我的实验解析器/反序列化器的 com/ysharplanguage/FastJsonParser" rel="nofollow">https://github.com/ysharplanguage/FastJsonParser

I've dropped some JSON parsing performance tests on this GitHub repository, to compare the performances of my experimental parser/deserializer to those of JSON.NET 5.0 r8, and ServiceStack 3.9.59 :

https://github.com/ysharplanguage/FastJsonParser

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文