This file contains hidden or 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.Net; | |
using System.Net.Sockets; | |
using System.Runtime.InteropServices; | |
using Udping.Base; | |
var pingStructSizeOf = Marshal.SizeOf<PingStruct>(); | |
var portStr = args.FirstOrDefault(arg => arg.StartsWith("--port=", StringComparison.OrdinalIgnoreCase)) ?? "--port=16789"; | |
var port = short.Parse(portStr["--port=".Length..]); |
This file contains hidden or 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 <intrin.h> | |
#include <immintrin.h> | |
#include <emmintrin.h> | |
#include <cstdio> | |
#include <cstdint> | |
#include <cmath> | |
#include <cfloat> | |
#include <Windows.h> |
This file contains hidden or 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; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Text; | |
namespace FilePerformanceTest | |
{ | |
class Program | |
{ |
This file contains hidden or 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 <Windows.h> | |
#include <d3d11.h> | |
#include <atlbase.h> | |
#pragma comment (lib, "d3d11.lib") | |
#include <iostream> | |
#include <thread> | |
#include <chrono> | |
#include <memory> | |
#include <vector> |
This file contains hidden or 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 <Windows.h> | |
#include <string> | |
#include <sstream> | |
float g_angle = 0; | |
LRESULT CALLBACK WndProc ( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam ) | |
{ | |
switch ( uMsg ) | |
{ |
This file contains hidden or 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 <Windows.h> | |
#include <cstdio> | |
#include <cstdint> | |
#define LOOP_REPEAT 10 | |
#define LOOP_COUNT 48000 * 6 | |
int main() | |
{ | |
int8_t buffer1 [ LOOP_COUNT ]; |
This file contains hidden or 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 <Windows.h> | |
#include <memory> | |
#include <mmintrin.h> | |
#include <immintrin.h> | |
#include <xmmintrin.h> | |
#include <functional> | |
#include <cstdio> | |
class HeapMemory | |
{ |
This file contains hidden or 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
//////////////////////////////////////////////////////////////////////////////////////////////////// | |
// Some Source code from https://gist.github.com/rygorous/4172889/3aff2b797b9be7ac261115a95f8d6f6fa32ed54d | |
// | |
// You need Intel Haswell Architecture(only Core-i & Xeon) or AMD Piledriver Architecture Processor. | |
// Because there is no FMA 3 operator in earlier than those. | |
//////////////////////////////////////////////////////////////////////////////////////////////////// | |
#pragma optimize ( "", off ) | |
#include <cstdio> |
This file contains hidden or 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 <Windows.h> | |
#include <atlbase.h> | |
#include <vector> | |
#include <functional> | |
#include <mfapi.h> | |
#include <mfidl.h> | |
#include <mfreadwrite.h> | |
#include <mfplay.h> |
This file contains hidden or 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 <Windows.h> | |
#include <atlbase.h> | |
#include <vector> | |
#include <mfapi.h> | |
#include <mfidl.h> | |
#include <mfreadwrite.h> | |
#include <mfplay.h> | |
#include <mftransform.h> |
NewerOlder