benchmark
Nothing to display jet.
Nothing to display jet.
I am quite sure that this task is actual not only among programming competitions so lets compare different approaches to check if the letter is vowel in #ruby. Benchmarks and solutions under the cut
Continuing previous post about fetching data from db lets consider situation where we have a lot of duplications in one column and we need just unique values (for example weather forecasts for many days for different cities and we need to list unique city_ids). Benchmark under the cut
There are some situations when you need to fetch some data from your db column.There are couple of ways to do it and in this post I will compare them. More under the cut
Integration of YARV in #ruby allows using kernel #threads instead of #green_threads. So lets write simple script that uses #threads and #benchmark it. Examples under the cut
Everyday I parse something, everyday I test the time of running parsing code which sometimes can take a lot of time. Since the base of the code is always the same (I use #benchmark for testing and #mechanize for parsing) I don't need to write it every time - I created #textmate bundles. Code is under the cut