Skip to content

.NET Core 下 Redis 客户端性能测试

https://redis.io/clients 可以查看常用的 Redis 客户端。

CSRedis

  • 单线程 5000 条数据(随机 1000 个以内的字符串)耗时
    • 5.89 s
    • 5.57 s
  • 单线程 10000 条数据(随机 1000 个以内的字符串)耗时
    • 11.49 s
    • 10.91 s
    • 10.60 s
  • 10 个线程 每个 5000 条数据(随机 1000 个以内的字符串)耗时
    • 16.01 s
    • 16.54 s

StackExchange.Redis

  • 单线程 5000 条数据(随机 1000 个以内的字符串)耗时
    • 7.94 s
    • 6.16 s
    • 6.20 s
  • 单线程 10000 条数据(随机 1000 个以内的字符串)耗时
    • 13.54 s
    • 13.45 s
  • 10 个线程 每个 5000 条数据(随机 1000 个以内的字符串)耗时
    • 11.90 s
    • 17.15 s
    • 14.51 s

ServiceStack.Redis

  • 单线程 5000 条数据(随机 1000 个以内的字符串)耗时

    • 5.51 s
  • 免费版有每小时 6000 个 request 的限制

    ServiceStack.LicenseException: The free-quota limit on '6000 Redis requests per hour' has been reached. Please see https://servicestack.net to upgrade to a commercial license or visit https://github.com/ServiceStackV3/ServiceStackV3 to revert back to the free ServiceStack v3.

    V3 版本没有限制,现在的最高版本是 3.9.71,可惜与 .Net Core 2.1 不兼容。

Page Layout Max Width

Adjust the exact value of the page width of VitePress layout to adapt to different reading needs and screens.

Adjust the maximum width of the page layout
A ranged slider for user to choose and customize their desired width of the maximum width of the page layout can go.

Content Layout Max Width

Adjust the exact value of the document content width of VitePress layout to adapt to different reading needs and screens.

Adjust the maximum width of the content layout
A ranged slider for user to choose and customize their desired width of the maximum width of the content layout can go.