๐Ÿ’ซBenchmarks

In this benchmark, we compare three popular sharding packages: status-sharding, discord-hybrid-sharding, and discord.js. We evaluate their performance based on bootup time and the execution speed of various sharding operations.

Each method has been run 100.000 times 4 times to get average results below.

Excel file presenting results.

Benchmark Metrics

Note: Lower values indicate better performance.

Conclusion

Based on the benchmark results, status-sharding emerges as the top performer, demonstrating around ~40% faster execution times compared to discord-hybrid-sharding. Additionally, status-sharding proves to be significantly less resource-intensive, consuming approximately 10% fewer resources than discord-hybrid-sharding.

While discord-hybrid-sharding offers enhanced sharding capabilities by leveraging discord.js, it comes at the cost of increased resource consumption. However, it still outperforms the vanilla discord.js package in terms of bootup time and overall performance.

Developers seeking optimal performance and resource efficiency for their Discord bots may find status-sharding to be the ideal choice. It provides a lightweight solution that excels in terms of speed and resource utilization. However, for those who value the extensive ecosystem and community support of discord.js while still requiring basic sharding functionality, it remains a viable option.

Consider your specific requirements and priorities when selecting a sharding package, taking into account factors such as performance, resource usage, feature set, and community support.

Last updated

Was this helpful?