Skip to content

Instantly share code, notes, and snippets.

View HemilTheRebel's full-sized avatar

Hemil Ruparel HemilTheRebel

  • Pune
View GitHub Profile
@HemilTheRebel
HemilTheRebel / stress.cc
Created June 15, 2020 07:12
Basic CPU Stress test
#include <iostream>
#include <vector>
#include <chrono>
#include <thread>
void benchmark();
int main(int argc, char* argv[]) {
const auto processor_count = std::thread::hardware_concurrency();