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
1. 安装32位库 | |
sudo dpkg --add-architecture i386 | |
sudo apt-get update | |
sudo apt-get install build-essential gcc-multilib rpm libstdc++6:i386 libgtk-3-0:i386 libcurl3:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386 | |
2. 安装git | |
sudo apt-get install git | |
3. 下载Rebol for Linux | |
https://1drv.ms/u/s!Am3tb4OZU9Jqpyxm6GtGsPY3ToI- |
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
// Source Code: https://gist.github.com/qtxie/12c087db8a2c0c2d9fe0104af2f4236e | |
// compare Cell struct | |
// struct Cell { | |
// int header; | |
// int pading; | |
// int value; | |
// int pading2; | |
// Cell(int x) : value(x) {} | |
// bool operator<(const Cell& r) const | |
// { |
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 <random> | |
#include <ctime> | |
#include <vector> | |
#include <iostream> | |
#include <chrono> | |
#include <utility> | |
#include <array> | |
#include <type_traits> | |
#include <functional> | |
#include <string> |
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
// Source Code: https://gist.github.com/qtxie/12c087db8a2c0c2d9fe0104af2f4236e | |
// compare Cell struct | |
// struct Cell { | |
// int header; | |
// int pading; | |
// int value; | |
// int pading2; | |
// Cell(int x) : value(x) {} | |
// bool operator<(const Cell& r) const | |
// { |
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
Red [ | |
Title: "High resolution timer" | |
Author: "Xie Qingtian" | |
File: %timeit.red | |
Tabs: 4 | |
License: { | |
Distributed under the Boost Software License, Version 1.0. | |
See https://github.com/red/red/blob/master/red-system/runtime/BSL-License.txt | |
} | |
] |
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
Red/System [] | |
int64!: alias struct! [ | |
low [integer!] | |
high [integer!] | |
] | |
sub64: func [ | |
a [int64!] | |
b [int64!] |
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
#define COBJMACROS | |
#define WIN32_LEAN_AND_MEAN | |
#include <windows.h> | |
#include <mfapi.h> | |
#include <mfidl.h> | |
#include <mfreadwrite.h> | |
#include <stdio.h> | |
#include <intrin.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
;-- use this benchmark: https://github.com/orlp/pdqsort/blob/master/bench/bench.cpp | |
pdqsort qsort | |
1000000 shuffled_int 107 1000000 shuffled_int 277 | |
100 shuffled_int 34 100 shuffled_int 92 | |
1000000 shuffled_16_values_int 22 1000000 shuffled_16_values_int 43 | |
100 shuffled_16_values_int 31 100 shuffled_16_values_int 61 | |
1000000 all_equal_int 1 1000000 all_equal_int 2 | |
100 all_equal_int 2 100 all_equal_int 2 | |
1000000 ascending_int 2 1000000 ascending_int 5 |
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
Red/System [ | |
Title: "High resolution timer" | |
Author: "Xie Qingtian" | |
File: %time-meter.reds | |
Tabs: 4 | |
License: { | |
Distributed under the Boost Software License, Version 1.0. | |
See https://github.com/red/red/blob/master/red-system/runtime/BSL-License.txt | |
} | |
] |