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
all: | |
gcc -O2 -lpthread -lm mutex-bench-count.c -o mutex-bench-count | |
clean: | |
rm -rf mutex-bench-count |
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
all: | |
gcc -O2 -lpthread -lm mutex-bench.c -o mutex-bench | |
clean: | |
rm -rf mutex-bench |
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 <stdio.h> | |
#include <assert.h> | |
#include <string.h> | |
#include <zlib.h> | |
typedef u_int8_t uint8_t; | |
static size_t deflate_data(uint8_t *out, size_t outlen, const uint8_t *in, | |
size_t inlen) { |
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
# Ieva Zarina, 2016, licensed under the Apache 2.0 licnese | |
import numpy as np | |
import xgboost as xgb | |
import joblib | |
from sklearn import datasets | |
from sklearn.model_selection import train_test_split | |
from sklearn.datasets import dump_svmlight_file | |
from sklearn.metrics import precision_score |