{"id":448,"date":"2017-07-12T13:36:39","date_gmt":"2017-07-12T12:36:39","guid":{"rendered":"http:\/\/chewett.co.uk\/blog\/?p=448"},"modified":"2017-07-01T00:35:19","modified_gmt":"2017-06-30T23:35:19","slug":"testing-performance-raspberry-pi","status":"publish","type":"post","link":"https:\/\/chewett.co.uk\/blog\/448\/testing-performance-raspberry-pi\/","title":{"rendered":"Testing the performance of a Raspberry Pi"},"content":{"rendered":"<p>I will be testing the performance of each Raspberry Pi version in my cluster. This is to determine what each one is best suited to running. To do this I need a similar set of tests to run for each and compare them.<\/p>\n<p>Ideally the tests will also be runnable on other embedded Linux devices so that I may further collect comparison figures.<\/p>\n<p>For now I am going to focus on performing my testing on a Raspberry Pi. Here I will detail what my testing Raspberry Pi SD card will do.<\/p>\n<h2><span style=\"font-size: 28px; font-weight: 900;\">Setting up the OS<\/span><\/h2>\n<p>A test OS has been set up to use for all the Raspberry Pi performance testing. For this I have chosen Raspbian Jessie Lite. Part of the reasoning is that I want to test the Raspberry Pi running a base set of programs so I can measure the true performance.<\/p>\n<p>Once the OS was installed I ran a number of maintenance jobs and tasks to set up the SD card for performance testing. I performed the following actions.<\/p>\n<ol>\n<li>Burned Raspbian Jessie Lite to a SD card<\/li>\n<li>Added a file with the name\u00a0<code>SSH<\/code>\u00a0to the boot directory, to allow SSH access by default LINK ME<\/li>\n<li>SSH&#8217;ed into the Raspberry Pi and changed the hostname to &#8220;bunker-speedtest&#8221;<\/li>\n<li>Changed the password of the default pi user (make sure you always do this)<\/li>\n<li>Updated raspbi-config to the latest version<\/li>\n<li>Updated the Raspberry Pi with <code>apt-get update<\/code> and <code>apt-get upgrade<\/code><\/li>\n<\/ol>\n<p>Once this has been done I had an image that I would be able to then prepare my speed test programs for.<\/p>\n<h2>Testing with\u00a0sysbench<\/h2>\n<p>For now I am going to be using a program called sysbench to run a number of benchmarks on my Raspberry Pi&#8217;s. Some of the main functions that this can test are CPU, RAM, File IO and database performance.<\/p>\n<p>One of the main reasons to use this is that pre-compiled binaries are available for many distributions. This means that when I expand my metrics to other embedded linux systems I will be able to run the metrics on these too.<\/p>\n<p>Sysbench can be installed on Raspbian using the following command.<\/p>\n<pre>sudo apt-get install sysbench<\/pre>\n<p>Now that I have a SD card set up to run performance testing I shall look towards collecting data on this performance.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I will be testing the performance of each Raspberry Pi version in my cluster. This is to determine what each one is best suited to running. To do this I need a similar set of tests to run for each and compare them. Ideally the tests will also be runnable on other embedded Linux devices [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[122],"tags":[101,142,143],"class_list":["post-448","post","type-post","status-publish","format-standard","hentry","category-raspberry-pi-cluster","tag-raspberry-pi-cluster","tag-raspberry-pi-performance","tag-stress-testing"],"wppr_data":{"cwp_meta_box_check":"No"},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2toWX-7e","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":307,"url":"https:\/\/chewett.co.uk\/blog\/307\/adding-a-creator-ci20-to-the-cluster\/","url_meta":{"origin":448,"position":0},"title":"Adding a Creator CI20 to the cluster","author":"Chewett","date":"October 17, 2018","format":false,"excerpt":"This post talks about the Creator CI20 and explains the differences between it and the Raspberry Pi. What is the Creator CI20? The Creator CI20 is a small Linux based computer that is similar to the Raspberry Pi. I have been looking at these for a while and decided to\u2026","rel":"","context":"In &quot;Electronics&quot;","block_context":{"text":"Electronics","link":"https:\/\/chewett.co.uk\/blog\/category\/electronics\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/10\/creator_main_post_image.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/10\/creator_main_post_image.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/10\/creator_main_post_image.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/10\/creator_main_post_image.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":2685,"url":"https:\/\/chewett.co.uk\/blog\/2685\/reviewing-the-makerhawk-raspberry-pi-4b-armor-case-and-benchmarking-it\/","url_meta":{"origin":448,"position":1},"title":"Reviewing the MakerHawk Raspberry Pi 4B Armor Case and benchmarking it","author":"Chewett","date":"November 7, 2020","format":false,"excerpt":"Here I talk about adding the MakerHawk Raspberry Pi 4B Armor case to my Raspberry Pi. In addition I run some benchmarks over it to see how much of an effect on temperature it has. Reviewing the Case Image showing top of aluminium mount The MakerHawk Raspberry Pi 4B Armor\u2026","rel":"","context":"In &quot;Raspberry Pi Cluster&quot;","block_context":{"text":"Raspberry Pi Cluster","link":"https:\/\/chewett.co.uk\/blog\/category\/raspberry-pi-cluster\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/10\/makerhawk_raspi4_case_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/10\/makerhawk_raspi4_case_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/10\/makerhawk_raspi4_case_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/10\/makerhawk_raspi4_case_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/10\/makerhawk_raspi4_case_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":292,"url":"https:\/\/chewett.co.uk\/blog\/292\/stacking-raspberry-pis\/","url_meta":{"origin":448,"position":2},"title":"Stacking Raspberry Pi&#8217;s","author":"Chewett","date":"June 3, 2017","format":false,"excerpt":"The\u00a0stackable Raspberry Pi case\u00a0purchased allows stacking Raspberry Pi B+ and Raspberry Pi 2\/3 but I was planning to modify this to stack\u00a0older Pi's. Stacking the Raspberry Pi (256 MB) The original Raspberry Pi does not have any mounting points. This makes it quite hard to stack using my chosen stacking\u2026","rel":"","context":"In &quot;Raspberry Pi Cluster&quot;","block_context":{"text":"Raspberry Pi Cluster","link":"https:\/\/chewett.co.uk\/blog\/category\/raspberry-pi-cluster\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/04\/stacked_cluster.jpg?fit=600%2C393&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/04\/stacked_cluster.jpg?fit=600%2C393&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/04\/stacked_cluster.jpg?fit=600%2C393&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":423,"url":"https:\/\/chewett.co.uk\/blog\/423\/comparison-raspberry-pi-b-models\/","url_meta":{"origin":448,"position":3},"title":"A comparison of Raspberry Pi B Models","author":"Chewett","date":"July 8, 2017","format":false,"excerpt":"Since the first Raspberry Pi was released in 2012 there have been a number of changes to their design. Since I plan to include a number of different models in my cluster I will review and test each model to find its weakness and strengths. This review focuses on the\u2026","rel":"","context":"In &quot;Raspberry Pi Cluster&quot;","block_context":{"text":"Raspberry Pi Cluster","link":"https:\/\/chewett.co.uk\/blog\/category\/raspberry-pi-cluster\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/07\/raspberry_pi_a_comparison.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/07\/raspberry_pi_a_comparison.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/07\/raspberry_pi_a_comparison.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/07\/raspberry_pi_a_comparison.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":764,"url":"https:\/\/chewett.co.uk\/blog\/764\/virtualized-raspian-os-virtualbox\/","url_meta":{"origin":448,"position":4},"title":"Virtualized Raspian OS with Virtualbox","author":"Chewett","date":"October 21, 2017","format":false,"excerpt":"This post walks you through the process of installing the Raspberry Pi OS, Raspbian, with VirtualBox. I am going to use this at times to test my software running on the OS that the Raspberry Pi Cluster runs. Why do I need a special version of Raspbian OS to work\u2026","rel":"","context":"In &quot;Raspberry Pi Cluster&quot;","block_context":{"text":"Raspberry Pi Cluster","link":"https:\/\/chewett.co.uk\/blog\/category\/raspberry-pi-cluster\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/raspbian_on_virtualbox.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/raspbian_on_virtualbox.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/raspbian_on_virtualbox.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/raspbian_on_virtualbox.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":569,"url":"https:\/\/chewett.co.uk\/blog\/569\/creating-raspberry-pi-backup-script-scp-bash-windows\/","url_meta":{"origin":448,"position":5},"title":"Creating a Raspberry Pi backup script with scp and Bash on Windows","author":"Chewett","date":"August 30, 2017","format":false,"excerpt":"This post describes a simple way to keep backups of a Raspberry Pi or any other Linux computer. Why do I need backups of my Raspberry Pi? Some of the nodes in my cluster are going to be compute only, meaning that they will just run what is asked of\u2026","rel":"","context":"In &quot;Informational&quot;","block_context":{"text":"Informational","link":"https:\/\/chewett.co.uk\/blog\/category\/informational\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/backing_up_a_rasperry_pi.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/backing_up_a_rasperry_pi.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/backing_up_a_rasperry_pi.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/backing_up_a_rasperry_pi.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/448","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=448"}],"version-history":[{"count":3,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/448\/revisions"}],"predecessor-version":[{"id":452,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/448\/revisions\/452"}],"wp:attachment":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=448"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=448"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=448"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}