⬆️ ⬇️

Accelerate JavaScript together (Attention, competition!)

Hello friends.



It so happens that we write different high-loaded things on JS. Unlike simple scripts in the browser, optimizing the performance of JS on the server (this is mainly Node.js) is a very interesting topic. I think those present do not need to explain why fast code is better than slow.



In general, optimization is far from just rewriting in C or assembler the “hot” parts of the code. Our team has a discussion on how to make the script work faster - a permanent phenomenon. And since there are objective evaluation criteria (benchmark and unit tests) that do not allow a pathological situation “do not argue about tastes” - as a result, a quick code is actually obtained, a decrease in server load, prosperity, joy.



But our team is small, talented programmers are much more. So, we definitely lose sight of many things. Therefore, we decided to hold a competition - a race of functions on JS, with prizes and mementoes, so that no one would leave offended.

')

But first, a lyrical digression about talented programmers.
An experimental method was used to establish an ethnographic fact: there are a lot of talented Russian-speaking programmers. (I do not specifically write “the most”, because I obviously don’t know all the developers at all, but there is a huge proportion.) It’s Russian-speaking, because There was no correlation with the country of residence: everywhere, from Norway to Israel, there are guys who speak Russian and write a cool code.



UPD: this is obviously not the case for most of the discussion participants.



Distribution of elephants on the scale of a single Habrahabr



The conditions of the competition can be found on the website . There will be a brief translation into Russian.



Task: overclock the original function strftime 50 times.

Sources for the slow function: github.com/mvasilkov/strftime

It is necessary to preserve the functionality of the original as best you can.



Solutions can be sent until June 22, inclusive, in your time zone, by mail: challengejs@hola.org



Estimated function performance on the V8 engine (Node.js). The “benchmark” benchmark is a delightful mystery.



Prizes and memorable gifts


The first, second, third place - $ 500, 350, 250, respectively.



Special super prize - $ 350 for the most non-trivial and cool solution (not necessarily the fastest - the original approach is no less important than the result).



We will also lure you to an interview and offer you an interesting, well-paid job.



I think it will be interesting.



TL; DR Link to the contest: hola.org/challenge_js

Source: https://habr.com/ru/post/223207/



All Articles