<jupyter_start><jupyter_text>**Standard Raspbian Kernel with active ICE cooling**<jupyter_code># rPi 4B std - loading data standard raspbian kernel

#kernel_std_4b_mt_active = load_csv_data("std_kernel_4B_multithread_output_cooling.csv", path_4b)
#kernel_std_4b_mt_active = load_csv_data("std_kernel_4B_multithread_output_cooling_external_5v.csv", path_4b)
#kernel_std_4b_mt_active = load_csv_data("std_kernel_4B_multithread_output_cooling_capacitor_air.csv", path_4b)
#kernel_std_4b_mt_active = load_csv_data("std_kernel_4B_multithread_output_cooling_capacitor_ice_gel.csv", path_4b)
kernel_std_4b_mt_active = load_csv_data("std_kernel_4B_multithread_output_cooling_capacitor_firmware.csv", path_4b)
kernel_std_4b_mt_active['time'] -= kernel_std_4b_mt_active['time'][0]

kernel_std_4b_st_active = load_csv_data("std_kernel_4B_singlethread_output_cooling.csv", path_4b)
kernel_std_4b_st_active['time'] -= kernel_std_4b_st_active['time'][0]<jupyter_output><empty_output><jupyter_text>**Standard Raspbian Kernel with passive ICE cooling**<jupyter_code># rPi 4B  - loading data preempt-rt raspbian kernel

kernel_std_4b_mt_passive = load_csv_data("std_kernel_4B_multithread_output_cooling_pasive.csv", path_4b)
kernel_std_4b_mt_passive['time'] -= kernel_std_4b_mt_passive['time'][0]

kernel_std_4b_st_passive = load_csv_data("std_kernel_4B_singlethread_output_cooling_passive.csv", path_4b)
kernel_std_4b_st_passive['time'] -= kernel_std_4b_st_passive['time'][0]<jupyter_output><empty_output><jupyter_text>**Multithread - Standard Raspbian Kernel 4.19.80-v7l+**<jupyter_code># rPi 4B MT - plotting standard raspbian kernel - passive cooling
timestamp_std_4b_mt_passive = kernel_std_4b_mt_passive.time/60
time_std_4b_mt_passive = kernel_std_4b_mt_passive.seconds + kernel_std_4b_mt_passive.microseconds/1000000
temp_std_4b_mt_passive = (kernel_std_4b_mt_passive.cpu_temp + kernel_std_4b_mt_passive.gpu_temp)/2
title = "Raspberry Pi 4 Model B\nusing Stardard Raspbian Kernel 4.19.80-v7l+\nICE Tower Cooling Fan - Passive\n(Queens: 12, Threads: 4, Iterations: 100)"

plot_data(timestamp_std_4b_mt_passive[:99], time_std_4b_mt_passive[:99], temp_std_4b_mt_passive[:99], (17, 25, 30, 80), title)
print("Time to 45 iterations: %.2f s" %timestamp_std_4b_mt_passive[44])
# rPi 4B MT - plotting standard raspbian kernel - active cooling
timestamp_std_4b_mt_active = kernel_std_4b_mt_active.time/60
time_std_4b_mt_active = kernel_std_4b_mt_active.seconds + kernel_std_4b_mt_active.microseconds/1000000
temp_std_4b_mt_active = (kernel_std_4b_mt_active.cpu_temp + kernel_std_4b_mt_active.gpu_temp)/2
#title = "Raspberry Pi 4 Model B\nusing Stardard Raspbian Kernel 4.19.80-v7l+\nICE Tower Cooling Fan - Active\n(Queens: 12, Threads: 4, Iterations: 100)"
#title = "Raspberry Pi 4 Model B\nusing Stardard Raspbian Kernel 4.19.80-v7l+\nICE Tower Cooling Fan - Active - Ext. 5V\n(Queens: 12, Threads: 4, Iterations: 100)"
#title = "Raspberry Pi 4 Model B\nusing Stardard Raspbian Kernel 4.19.80-v7l+\nICE Tower Cooling Fan - Active - Capacitor & Air blocked\n(Queens: 12, Threads: 4, Iterations: 100)"
#title = "Raspberry Pi 4 Model B\nusing Stardard Raspbian Kernel 4.19.80-v7l+\nICE Tower Cooling Fan - Active - Capacitor & Gel Pack\n(Queens: 12, Threads: 4, Iterations: 100)"
title = "Raspberry Pi 4 Model B\nusing Stardard Raspbian Kernel 4.19.80-v7l+\nICE Tower Cooling Fan - Active - Capacitor & New Firmware\n(Queens: 12, Threads: 4, Iterations: 100)"


#plot_data(timestamp_std_4b_mt_active[:99], time_std_4b_mt_active[:99], temp_std_4b_mt_active[:99], (17, 25, 30, 80), title)
plot_data(timestamp_std_4b_mt_active[:99], time_std_4b_mt_active[:99], temp_std_4b_mt_active[:99], (17, 20.5, 30, 45), title)
print("Time to 45 iterations: %.2f s" %timestamp_std_4b_mt_active[44])<jupyter_output>Time to 45 iterations: 13.10 s<jupyter_text>**Singple - Standard Raspbian Kernel 4.19.80-v7l+**<jupyter_code># rPi 4B ST - plotting standard raspbian kernel - passive cooling

timestamp_std_4b_st_passive = kernel_std_4b_st_passive.time/60
time_std_4b_st_passive = kernel_std_4b_st_passive.seconds + kernel_std_4b_st_passive.microseconds/1000000
temp_std_4b_st_passive = (kernel_std_4b_st_passive.cpu_temp + kernel_std_4b_st_passive.gpu_temp)/2
title = "Raspberry Pi 4 Model B\nusing Stardard Raspbian Kernel 4.19.80-v7l+\nICE Tower Cooling Fan - Passive\n(Queens: 12, Threads: 1, Iterations: 50)"
plot_data(timestamp_std_4b_st_passive[:49], time_std_4b_st_passive[:49], temp_std_4b_st_passive[:49], (17, 75, 30, 65 ), title)
print("Time to 45 iterations: %.2f s" %timestamp_std_4b_st_passive[44])
# rPi 4B ST - plotting standard raspbian kernel - active cooling

timestamp_std_4b_st_active = kernel_std_4b_st_active.time/60
time_std_4b_st_active = kernel_std_4b_st_active.seconds + kernel_std_4b_st_active.microseconds/1000000
temp_std_4b_st_active = (kernel_std_4b_st_active.cpu_temp + kernel_std_4b_st_active.gpu_temp)/2
title = "Raspberry Pi 4 Model B\nusing Stardard Raspbian Kernel 4.19.80-v7l+\nICE Tower Cooling Fan - Active\n(Queens: 12, Threads: 1, Iterations: 50)"
plot_data(timestamp_std_4b_st_active[:49], time_std_4b_st_active[:49], temp_std_4b_st_active[:49], (17, 75, 30, 65 ), title)
print("Time to 45 iterations: %.2f s" %timestamp_std_4b_st_active[44])
print("Multi-thread 4B (A): %.2f | Multi-thread 4B (P): %.2f" % (np.mean(time_std_4b_mt_active), np.mean(time_std_4b_mt_passive)))
print("Single-thread 4B (A): %.2f | Single-thread 4B (P): %.2f" % (np.mean(time_std_4b_st_active), np.mean(time_std_4b_st_passive)))
print("Max. temp. (MT-A) %.2f | Max. temp. (MT-P) %.2f" % (np.max(temp_std_4b_mt_active), np.max(temp_std_4b_mt_passive)))
print("Max. temp. (ST-A) %.2f | Max. temp. (ST-P) %.2f" % (np.max(temp_std_4b_st_active), np.max(temp_std_4b_st_passive)))<jupyter_output>Multi-thread 4B (A): 17.79 | Multi-thread 4B (P): 18.14
Single-thread 4B (A): 69.22 | Single-thread 4B (P): 67.14
Max. temp. (MT-A) 40.45 | Max. temp. (MT-P) 61.42
Max. temp. (ST-A) 36.74 | Max. temp. (ST-P) 49.09
{'fraction_non_alphanumeric': 0.11706746826987308, 'fraction_numerical': 0.06713426853707415, 'mean_word_length': 7.295013850415512, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '495560', 'license': 'Apache-2.0', 'n_tokens_mistral': 2719, 'n_tokens_neox': 2465, 'n_words': 443, 'path': 'performance_test_standard_kernel_cooling_rpi_4B.ipynb', 'repo_name': 'lemariva/rPI-Tests', 'size': '5988'}