Skip to content

Instantly share code, notes, and snippets.

View ylluminate's full-sized avatar

ylluminate ylluminate

View GitHub Profile
@ylluminate
ylluminate / resource_sampler.sh
Created August 27, 2024 02:54
Average of resource samplings on macOS over a period of time with a given frequency to check resource usage with different configurations
#!/usr/bin/env zsh
# macOS Resource Sampler
# Version: 1.1
# This script samples system resources over a specified duration and reports averages.
#
# NOTE: Useful for measuring potential differentials in performance with different services disabled / enabled on macOS.
# Default values
DURATION=600 # 10 minutes