February 2014

You are browsing the site archives by month.

Test Internet/Connection Speed from Linux Command Line

See complete post of Test Internet/Connection Speed from Linux Command Line

Do you use Ubuntu Server? or have a VPS or Dedicated Server hosting that runs Linux which only can be accessed via Console/Command Line/SSH? I Do! And now i want to check whether if the hosting company give me correct package of dedicated bandwidth for my server…

Yes, most people would think about speedtest.net, the most popular and distributed internet/connection speed test in the world. But the problem is speedtest.net is using a website and my server cannot open a web page and run the test widget there… Fortunately there is a “speedtest-cli” built on python and support any operating system as long as can run python code.

Read More →

If-Else vs If-If vs Switch Javascript Performance

View complete post of If-Else vs If-If vs Switch Javascript Performance

There are three major conditional syntax that used widely in almost all programming language: If, If-else, Switch. Now then which type of conditional is going to give fastest execution time so our software may perform better even it’s just micro optimization.

Of course many of us will said that there is no chance that “if if” or “multiple if” is going to be fastest type. So which is fastest? Switch or If Else…

Read More →