Internet Speed Testing Tool -- ইন্টারনেট স্পিড টেস্টিং টুল

 Internet Speed Testing Tool

Internet Speed Testing Tool creates a simple webpage that allows users to test their internet speed by clicking a button. The testing is done by downloading a 10MB file from a remote server and measuring the time it takes to download. The resulting download speed is then displayed on the page.

When the user clicks the "Test Speed" button, the testSpeed() function is called, which creates a new XMLHttpRequest object and opens a GET request to download the 10MB file. The responseType property is set to "blob" to ensure that the entire file is downloaded before the onload callback function is called. Once the file is downloaded, the onload function calculates the duration of the download, the size of the file, and the resulting download speed in Mbps. Finally, the download speed is displayed on the page using the textContent property of a p element with an id of "speed-output".

=============================================================================

 ইন্টারনেট স্পিড টেস্টিং টুলএকটি সাধারণ ওয়েবপেজ তৈরি করে যা ব্যবহারকারীদের একটি বোতামে ক্লিক করে তাদের ইন্টারনেট গতি পরীক্ষা করতে দেয়। একটি দূরবর্তী সার্ভার থেকে একটি 10MB ফাইল ডাউনলোড করে এবং ডাউনলোড করতে যে সময় লাগে তা পরিমাপ করে পরীক্ষা করা হয়। ফলস্বরূপ ডাউনলোডের গতি তারপর পৃষ্ঠায় প্রদর্শিত হয়।

ব্যবহারকারী যখন "টেস্ট স্পিড" বোতামে ক্লিক করেন, তখনগতি পরীক্ষা করুন() ফাংশন বলা হয়, যা একটি নতুন তৈরি করেXMLHttp অনুরোধ অবজেক্ট এবং 10MB ফাইল ডাউনলোড করার জন্য একটি GET অনুরোধ খোলে। দ্যপ্রতিক্রিয়ার ধরন সম্পূর্ণ ফাইলের আগে ডাউনলোড করা হয়েছে তা নিশ্চিত করতে সম্পত্তি "ব্লব" এ সেট করা হয়েছেভার কলব্যাক ফাংশন বলা হয়। ফাইলটি ডাউনলোড হয়ে গেলে,ভার ফাংশন ডাউনলোডের সময়কাল, ফাইলের আকার এবং ফলস্বরূপ ডাউনলোডের গতি এমবিপিএসে গণনা করে। অবশেষে, ডাউনলোড গতি ব্যবহার করে পৃষ্ঠায় প্রদর্শিত হয়পাঠ্য বিষয়বস্তু a এর সম্পত্তিপি একটি সঙ্গে উপাদানআইডি "গতি-আউটপুট" এর।

Internet Speed Testing Tool

Internet Speed Testing Tool

Click the button below to test your internet speed:

No comments:

Post a Comment