Skip to content

Instantly share code, notes, and snippets.

@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:
View Intrinsics.jitdump.txt
****** START compiling Program:Intrinsics(int):int (MethodHash=7ba20f7c)
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 POPCNTButNoBMI2.jitdump.txt
****** START compiling Program:POPCNTButNoBMI2(int):int (MethodHash=622404b0)
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 keybase.md

Keybase proof

I hereby claim:

  • I am damageboy on github.
  • I am damageboy (https://keybase.io/damageboy) on keybase.
  • I have a public key ASB0psYb9CtXzvy4ngGGmcrUTogcJit2ezqEzSMS67a2iwo

To claim this, I am signing this object:

View tlp-stat
--- TLP 1.1 --------------------------------------------
+++ Configured Settings: /etc/default/tlp
TLP_ENABLE=1
TLP_DEFAULT_MODE=AC
TLP_PERSISTENT_DEFAULT=0
DISK_IDLE_SECS_ON_AC=0
DISK_IDLE_SECS_ON_BAT=2
MAX_LOST_WORK_SECS_ON_AC=15
MAX_LOST_WORK_SECS_ON_BAT=60
View pbis-uid-gen.py
#!/usr/bin/python3
import sys
sid = sys.argv[1]
headerSize = 6
dwHash = 0
dwHashTemp = 0;
sid = sid[headerSize:]
View refslowness.md

Basically trying to test the diffrence between:

Code is here

Plain vanilla indexing into array:

    public T this[int index]
    {
      [MethodImpl(MethodImplOptions.AggressiveInlining)]
      get
@damageboy
damageboy / chart.png
Last active Oct 27, 2017
npgsql benchmark results
You can’t perform that action at this time.