Skip to content

Instantly share code, notes, and snippets.

View bitonic_sort_results.txt
./bench/gcsort_bench --benchmark_counters_tabular=true --benchmark_filter=".*(bitonic_sort.*<int32).*"
2020-06-21T04:41:06+03:00
Running ./bench/gcsort_bench
Run on (64 X 800.322 MHz CPU s)
CPU Caches:
L1 Data 32 KiB (x32)
L1 Instruction 32 KiB (x32)
L2 Unified 1024 KiB (x32)
L3 Unified 22528 KiB (x2)
Load Average: 1.10, 0.62, 0.38
@damageboy
damageboy / Bench.JitBug_Int32_-asm.md
Created Apr 27, 2020
Bench.JitBug_Int32_-asm.md
View Bench.JitBug_Int32_-asm.md

.NET Core 5.0.0 (CoreCLR 5.0.20.21406, CoreFX 5.0.20.21406), X64 RyuJIT

; Bench.JitBug`1[[System.Int32, System.Private.CoreLib]].Bug()
       push      rbp
       sub       rsp,20
       lea       rbp,[rsp+20]
       xor       eax,eax
       mov       [rbp-0C],eax
       mov       [rbp-18],rax
       mov       [rbp-8],rdi
View c share object
libx.so: file format elf64-x86-64
Contents of the .eh_frame section (loaded from libx.so):
00000000 0000000000000014 00000000 CIE
Version: 1
Augmentation: "zR"
Code alignment factor: 1
View dwarf-dump
libx.so: file format ELF64-x86-64
.debug_abbrev contents:
Abbrev table for offset: 0x00000000
[1] DW_TAG_compile_unit DW_CHILDREN_yes
DW_AT_producer DW_FORM_strp
DW_AT_language DW_FORM_data2
DW_AT_name DW_FORM_strp
DW_AT_stmt_list DW_FORM_sec_offset
DW_AT_comp_dir DW_FORM_strp
@damageboy
damageboy / stuff.cs
Created Dec 14, 2019
Intel Intrinsics <-> CS Intrinsics convertors
View stuff.cs
// ReSharper disable UnusedMember.Local
static V _mm512_set_epi64(int e7, int e6, int e5, int e4, int e3, int e2, int e1, int e0)
=> Vector256.Create(e0, e1, e2, e3, e4, e5, e6, e7);
static V _mm512_permutexvar_pd(V permutation, V data)
=> PermuteVar8x32(data, permutation);
static V _mm512_min_pd(V v1, V v2)
=> Min(v1, v2);
View cpuid.txt
CPU 0:
vendor_id = "GenuineIntel"
version information (1/eax):
processor type = primary processor (0)
family = Intel Pentium Pro/II/III/Celeron/Core/Core 2/Atom, AMD Athlon/Duron, Cyrix M2, VIA C3 (6)
model = 0xe (14)
stepping id = 0x9 (9)
extended family = 0x0 (0)
extended model = 0x9 (9)
(simple synth) = Intel Core i5-7000 / i5-7000K / i5-7000T / i7-7000 / E3-15x5MV6 / i3-7100H / i5-7000HQ / i7-7000HQ (Kaby Lake), 14nm
View bdn-dotnet-build.log
This file has been truncated, but you can view the full file.
Microsoft (R) Build Engine version 16.4.0+e901037fe for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
Restore completed in 302.02 ms for /home/dmg/projects/public/BenchmarkDotNet/src/BenchmarkDotNet.Disassembler.x86/BenchmarkDotNet.Disassembler.x86.csproj.
Restore completed in 300.16 ms for /home/dmg/projects/public/BenchmarkDotNet/src/BenchmarkDotNet.Annotations/BenchmarkDotNet.Annotations.csproj.
Restore completed in 302.32 ms for /home/dmg/projects/public/BenchmarkDotNet/src/BenchmarkDotNet.Disassembler.x64/BenchmarkDotNet.Disassembler.x64.csproj.
Restore completed in 2.39 ms for /home/dmg/projects/public/BenchmarkDotNet/templates/BenchmarkDotNet.Templates.csproj.
Restore completed in 356.89 ms for /home/dmg/projects/public/BenchmarkDotNet/src/BenchmarkDotNet.Diagnostics.Windows/BenchmarkDotNet.Diagnostics.Windows.csproj.
@damageboy
damageboy / native-linux.md
Last active Jan 31, 2019
WSL / Native Ubuntu process creation times
View native-linux.md
damageboy@native-linux $ lscpu

Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  1
Core(s) per socket:  4
View POPCNTAndBMI2Unrolled.fixed.txt
****** START compiling Program:POPCNTAndBMI2Unrolled(int):int (MethodHash=8edbbc1e)
Generating code for Unix x64
OPTIONS: compCodeOpt = BLENDED_CODE
OPTIONS: compDbgCode = false
OPTIONS: compDbgInfo = true
OPTIONS: compDbgEnC = false
OPTIONS: compProcedureSplitting = false
OPTIONS: compProcedureSplittingEH = false
OPTIONS: Stack probing is DISABLED
IL to import:
View IntrinsicsUnrolled.jitdump.txt
****** START compiling Program:IntrinsicsUnrolled(int):int (MethodHash=6b9d3a1b)
Generating code for Unix x64
OPTIONS: compCodeOpt = BLENDED_CODE
OPTIONS: compDbgCode = false
OPTIONS: compDbgInfo = true
OPTIONS: compDbgEnC = false
OPTIONS: compProcedureSplitting = false
OPTIONS: compProcedureSplittingEH = false
OPTIONS: Stack probing is DISABLED
IL to import: