stefanwille / crystal-redis

Full featured Redis client for Crystal
MIT License
380 stars 61 forks source link

Improve memory benchmark? #71

Closed proyb6 closed 5 years ago

proyb6 commented 6 years ago

It has been nearly 3 years and I see Go and Crystal have improved that they are so close.

On macOS Mojave https://github.com/stefanwille/redis-client-benchmarks

Crystal 0.26.1 Time 2.25s Memory 130MB

Go 1.11 Time 2.58s Memory <12MB

I wonder if Crystal could reduce memory usage?

stefanwille commented 5 years ago

Hi @proyb6! When I built this shard, I thought the main reason why people use Redis over an RDBMS is performance, and therefore the shard should perform well. I needed something to measure this shard against others libraries so that I knew where I stood. Therefore I built a microbenchmark. As such the benchmark is not representative of a programming language. In this sense it would fun to see updated numbers, but it would really be just a fun thing. If one day I feel like it I will do it, but don't wait for it.