This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Diagnostics; | |
using System.Runtime.CompilerServices; | |
using System.Runtime.InteropServices; | |
namespace ExperimentDesign | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Running; | |
using System; | |
using System.Collections.Generic; | |
using System.Drawing; | |
using System.Linq; | |
using System.Runtime.CompilerServices; | |
using System.Runtime.InteropServices; | |
using System.Runtime.Intrinsics; | |
using System.Runtime.Intrinsics.X86; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using BenchmarkDotNet.Analysers; | |
using BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Columns; | |
using BenchmarkDotNet.Configs; | |
using BenchmarkDotNet.Diagnosers; | |
using BenchmarkDotNet.Jobs; | |
using BenchmarkDotNet.Loggers; | |
using BenchmarkDotNet.Running; | |
using System.Numerics; | |
using System.Runtime.CompilerServices; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
#include <unordered_set> | |
#include <unordered_map> | |
#include <algorithm> | |
#include <ctime> | |
#include <chrono> | |
#include <memory> | |
#include <immintrin.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using NUnit.Framework; | |
using System; | |
using System.Runtime.CompilerServices; | |
using System.Runtime.ConstrainedExecution; | |
using System.Runtime.InteropServices; | |
using System.Threading; | |
namespace RealConditionalWeakTableTests | |
{ | |
public class Tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Running; | |
using System; | |
using System.Reflection; | |
using System.Reflection.Emit; | |
public class ReflectionTest | |
{ | |
private delegate void RefAction<T1, T2>(ref T1 p1, T2 p2); | |
private delegate void RefAction<T1, T2, T3>(ref T1 p1, T2 p2, T3 p3); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* For details see: https://stackoverflow.com/a/58678719/3622514 */ | |
#include <gtk/gtk.h> | |
#include <gdk/gdkscreen.h> | |
#include <gdk/gdkkeysyms.h> | |
#include <gtk/gtkgl.h> | |
#include <GL/gl.h> | |
#include <GL/glu.h> | |
static gboolean supports_alpha = FALSE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# This program processes an address trace generated by the Valgrind lackey tool | |
# to create a reduced trace according to the Fastslim-Demand algorithm | |
# described in "FastSlim: prefetch-safe trace reduction for I/O cache | |
# simulation" by Wei Jin, Xiaobai Sun, and Jeffrey S. Chase in ACM Transactions | |
# on Modeling and Computer Simulation, Vol. 11, No. 2 (April 2001), | |
# pages 125-160. http://doi.acm.org/10.1145/384169.384170 | |
import fileinput |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdio> | |
#include <vector> | |
#include <chrono> | |
#include <thread> | |
static constexpr int test_size = 100000; | |
static constexpr int page_size = 4096; | |
static int data[test_size * page_size]; | |
static int index[test_size]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import array | |
import sys | |
import cProfile | |
# input | |
OutputCount = int(sys.argv[1]) | |
# object init |
NewerOlder