Comparison of the compilation time and the resulting size of the ycm_core.so
library on three different platforms:
Platform | Compilation time (s) | Library size (MB) | ||
---|---|---|---|---|
Before |
Comparison of the compilation time and the resulting size of the ycm_core.so
library on three different platforms:
Platform | Compilation time (s) | Library size (MB) | ||
---|---|---|---|---|
Before |
#include <iostream> | |
#include <string> | |
#include <clang-c/Index.h> | |
const char *flags[] = { | |
"clang", | |
"-isystem", "include", | |
"-DTEST=2" | |
}; |
import jedi | |
import sys | |
import time | |
def measure(module, version): | |
sys.stdout.write('Completing {} in '.format(module)) | |
code = 'import {0}\n{0}.'.format(module) | |
environment = jedi.get_system_environment(version) | |
# Warmup |
Performance comparison of the FilterAndSortCandidates
function between Python.Boost and pybind11 on three different platforms.
Platform | Python 2 (ms) | Python 3 (ms) | ||
---|---|---|---|---|
Python.Boost |
Run on (4 X 3504 MHz CPU s) | |
02/24/18 01:14:35 | |
--------------------------------------------------------------------------------------------------------------------- | |
Benchmark Time CPU Iterations | |
--------------------------------------------------------------------------------------------------------------------- | |
IdentifierCompleterFixture/CandidatesWithCommonPrefix/1/0 925 ns 939 ns 747858 | |
IdentifierCompleterFixture/CandidatesWithCommonPrefix/16/0 5673 ns 5702 ns 112179 | |
IdentifierCompleterFixture/CandidatesWithCommonPrefix/256/0 103281 ns 104293 ns 7479 | |
IdentifierCompleterFixture/CandidatesWithCommonPrefix/4096/0 1913831 ns 1899143 ns 345 | |
IdentifierCompleterFixture/CandidatesWithCommonPrefix/65536/0 41943159 ns 42212035 ns 17 |
Run on (4 X 3504 MHz CPU s) | |
02/20/18 19:16:16 | |
--------------------------------------------------------------------------------------------------------------------- | |
Benchmark Time CPU Iterations | |
--------------------------------------------------------------------------------------------------------------------- | |
IdentifierCompleterFixture/CandidatesWithCommonPrefix/1/0 1020 ns 998 ns 641022 | |
IdentifierCompleterFixture/CandidatesWithCommonPrefix/16/0 5685 ns 5563 ns 112179 | |
IdentifierCompleterFixture/CandidatesWithCommonPrefix/256/0 103931 ns 102216 ns 6410 | |
IdentifierCompleterFixture/CandidatesWithCommonPrefix/4096/0 2014011 ns 1960440 ns 374 | |
IdentifierCompleterFixture/CandidatesWithCommonPrefix/65536/0 42726734 ns 42900275 ns 16 |
Run on (4 X 3504 MHz CPU s) | |
02/20/18 19:07:39 | |
--------------------------------------------------------------------------------------------------------------------- | |
Benchmark Time CPU Iterations | |
--------------------------------------------------------------------------------------------------------------------- | |
IdentifierCompleterFixture/CandidatesWithCommonPrefix/1/0 932 ns 939 ns 747858 | |
IdentifierCompleterFixture/CandidatesWithCommonPrefix/16/0 5295 ns 5284 ns 112179 | |
IdentifierCompleterFixture/CandidatesWithCommonPrefix/256/0 97489 ns 95949 ns 7479 | |
IdentifierCompleterFixture/CandidatesWithCommonPrefix/4096/0 1899456 ns 1918729 ns 374 | |
IdentifierCompleterFixture/CandidatesWithCommonPrefix/65536/0 42036958 ns 42212035 ns 17 |
Writing ShaDa file "C:\Users\micbou\AppData\Local\nvim-data\shada\main.shada" | |
Executing VimLeave Auto commands for "*" | |
autocommand call GuiClose() | |
line 0: call GuiClose() | |
calling function GuiClose() | |
line 1: call rpcnotify(0, 'Gui', 'Close') | |
function GuiClose returning #0 |
import os | |
import re | |
import subprocess | |
import platform | |
CL_VERSION_REGEX = re.compile( '\d{2}.\d{2}.\d{5}(.\d{2})?' ) | |
MSVC_BIN_DIR = os.path.join('..', '..', 'VC') | |
#include <string> | |
#include <iostream> | |
#include <clang-c/Index.h> | |
const char *flags[] = { | |
"clang", | |
"--driver-mode=cl", | |
"-xc++" |