Skip to content

Instantly share code, notes, and snippets.

@kiroma
kiroma / gist:2ad9181f528258add8dfa39fe937e414
Created April 13, 2021 21:56
Tinymembench result from a R5 3600 with 3600MHz OC'd memory
tinymembench v0.4.9 (simple benchmark for memory throughput and latency)
==========================================================================
== Memory bandwidth tests ==
== ==
== Note 1: 1MB = 1000000 bytes ==
== Note 2: Results for 'copy' tests show how many bytes can be ==
== copied per second (adding together read and writen ==
== bytes would have provided twice higher numbers) ==
== Note 3: 2-pass copy means that we are using a small temporary buffer ==
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: AuthenticAMD
CPU Brand: AMD Ryzen 5 3600 6-Core Processor
CPU Family: 0x17
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <exception>
struct Event
{
enum
{
cmake_minimum_required(VERSION 3.7.0)
project(clicord)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOUIC_SEARCH_PATHS ui)
find_package(Qt5 COMPONENTS Core Widgets Gui REQUIRED)
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 5.2.0-rc4 Kernel Configuration
#
#
# Compiler: clang version 9.0.0 (https://github.com/llvm/llvm-project.git f7ba8b808a89d5e050deb7dbd77004fa8e0dff9b)
#
CONFIG_GCC_VERSION=0
CONFIG_CC_IS_CLANG=y
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Laptop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i5-4200H CPU @ 2.80GHz
CPU Family: 0x6
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Laptop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i5-4200H CPU @ 2.80GHz
CPU Family: 0x6
@kiroma
kiroma / main.cpp
Created September 19, 2018 12:29
KookyFlakyHexadecimal created by kiroma - https://repl.it/@kiroma/KookyFlakyHexadecimal
#include <iostream>
#include <fstream>
#include <algorithm>
#include <vector>
int main(int argc, char** argv) {
std::vector<int> numbers;
int input;
std::fstream ifs(argv[1], std::ios::in);
while(ifs >> input)numbers.push_back(input);
if(atoi(argv[2]) > numbers.size()) std::cerr << "Error";
#include <iostream>
#include <vector>
int main()
{
const int r = 3, c = 3;
std::vector<std::vector<int>> testvec; // Create a vector holding vectors holding ints
for(int i = 0; i < r; ++i)
{
std::vector<int> tempvec; // Create a temporary vector holding ints
Unhandled exception: page fault on write access to 0x7f075dab2720 in 64-bit code (0x00007f075d8e2b52).
Register dump:
rip:00007f075d8e2b52 rsp:000000000033c980 rbp:000000000000000a eflags:00010202 ( R- -- I - - - )
rax:00007f075d579240 rbx:00007f075db71bd8 rcx:00007f075d579240 rdx:0000000000000001
rsi:00007f075dab2720 rdi:0000000000000000 r8:0000000000000000 r9:0000000000000010 r10:00007f0763f07d20
r11:0000000000000202 r12:00007f0750b3d2ba r13:0000000000000014 r14:000000007d0951f0 r15:00007f075103f2e0
Stack dump:
0x000000000033c980: 000000007d1a0df0 000000000000001d
0x000000000033c990: 000000000000013e 00007f075103f040
0x000000000033c9a0: 000000007d0951f0 000000007d0b7fe0