Skip to content

Instantly share code, notes, and snippets.

@barusan
barusan / result.md
Last active January 5, 2018 14:42
UnixBench w/ and w/o KPTI

Conditions

  • BYTE UNIX Benchmarks (Version 5.1.3)
  • OS: Debian stretch
    • w/o KPTI: GNU/Linux -- 4.9.0-4-amd64 -- #1 SMP Debian 4.9.65-3 (2017-12-03)
    • w/ KPTI: GNU/Linux -- 4.9.0-5-amd64 -- #1 SMP Debian 4.9.65-3+deb9u2 (2018-01-04)
  • Machine: x86_64: unknown
  • Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
  • CPUs: Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz x 2
  • Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
@barusan
barusan / iris_svm.py
Created February 28, 2018 13:05
2-class 2-D SVM sample with iris dataset
#!/usr/bin/env python3
#-*- coding: utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
from sklearn.datasets import load_iris
from sklearn.svm import LinearSVC
iris = load_iris()
mask = iris.target != 2
@barusan
barusan / iris_rf.py
Created February 28, 2018 13:13
2-class 2-D random forest sample with iris dataset
#!/usr/bin/env python3
#-*- coding: utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
from sklearn.datasets import load_iris
from sklearn.ensemble import RandomForestClassifier
from sklearn.tree import export_graphviz
export_dot = True