Dimitar Kostov ramblings

Unicode in irb

If you’re having problems with unicode characters in IRB from ruby compiled with rbenv, do this:

$ brew install readline
$ export CPPFLAGS=-I/usr/local/Cellar/readline/6.2.4/include
$ export LDFLAGS=-L/usr/local/Cellar/readline/6.2.4/lib/
$ rbenv install 1.9.3-p194

I love “Hello, World” benchmarks

I love “Hello, World” benchmarks. They are stupid and meaningless. I love it when someone shows how fast is his web server on the local machine. 

Let’s see a comparison between node.js, async-sinatra and aleph all running apps on heroku free plan.

Node.js

============================================
Time taken for tests:   11.359 seconds
Requests per second:   704.26 [#/sec] (mean)
Time per request:        141.993 [ms] (mean)
Time per request:        1.420 [ms] (mean, across all concurrent requests)

async-sinatra

============================================
Time taken for tests:   12.223 seconds
Requests per second:    654.50 [#/sec] (mean)
Time per request:       152.789 [ms] (mean)
Time per request:       1.528 [ms] (mean, across all concurrent requests)

Aleph

============================================
Time taken for tests:   11.202 seconds
Requests per second:    714.13 [#/sec] (mean)
Time per request:       140.030 [ms] (mean)
Time per request:       1.400 [ms] (mean, across all concurrent requests)

Stay hungry, stay foolish.