Categories
Products and services

Performance Test of NiHao Cloud using curl

In today’s dynamic world, time is the most critical aspect for any business person. Whether it’s deciding to trade off or launching a new product, reaching the customers within the least possible time filter you from the majority crowd.

How much your customers wait for your website to load? 5 -seconds? 10 seconds? Probably not more than that! And in the end, the client leaves the website heavy-heartedly and downvotes the user experience. In this article, we’ll show some performance test results of our site NiHao cloud using some simple steps.

We’ve taken curl (a powerful command-line tool to transfers data from or to a server) and using Linux based operating system. In this post we are testing it with our very own Cloud Storage services at Sesame Disk / NiHao Cloud. The steps would be nearly the same with another os as well. In addition, we will use time-related variables and test the same with 2 different networks.

site performance testing cover image
site performance test

Demonstration:

  • Create a file which has arguments that curl command takes:
time_namelookup: %{time_namelookup}
time_connect: %{time_connect}
time_pretransfer: %{time_pretransfer}
time_starttransfer: %{time_starttransfer}
———
time_total: %{time_total}
  • Here, time_namelookup – time, in seconds, it took from the start until the name resolving was completed.
  • time_connect – time, in seconds, it took from the start until the TCP connection to the remote host (or proxy) was completed.
  • time_pretransfer – time, in seconds, it took from the start until the file transfer was just about to begin.
  • time_starttransfer – time, in seconds, it took from the start until the first byte was just about to be transferred.
  • time_total – total time, in seconds, that the full operation lasted.
  • Now use this file and make curl request to the target website:
   Command: curl -w "@curl-format.txt" -o /dev/null -s http://app.nihaocloud.com 

Here, -w @”curl.txt” tells to use the mentioned file. –O option redirects the output to /dev/null and –s suppresses the progress bar. The target website is our Cloud Storage https://app.nihaocloud.com

Result 1: Using the wifi connection:

The results of the performance test below are in the Seconds unit and measured from the Indian region and connected to the servers in Korea.

Test frrom wifi network
Result1: through wifi network
Result 2: Using the Mobile Network
Test from mobile network
Result2: through mobile network

We For Cloud Storage other services always try to give the best to our clients and results are mirrored above. Stay tuned for such interesting articles and the best services.

By Poojan Mehta

Poojan Mehta lives in Gujrat, India, and pursuing a bachelor's degree in computer science. He has extensive experience in the software industry. As a technical enthusiast, he has been involved in various roles that include public cloud administration, database administration with SQL Server, web and mobile app development, DevOps work, technical writing, and mentoring. He is proficient in various operating systems, including Red Hat Linux and Windows. He is especially keen on developing new systems with emerging technologies.

One reply on “Performance Test of NiHao Cloud using curl”