Skip to content

Instantly share code, notes, and snippets.

View johalun's full-sized avatar

Johannes Lundberg johalun

View GitHub Profile
@johalun
johalun / gist:3a7c5a8cea01e7031ffbafd92356ad40
Created October 28, 2019 20:21
clock_gettime benchmarks in bhyve
HOST FREEBSD 13:
johalun@jm ~/d/bench-clock> target/release/deps/bench-528070f83c4850f3
running 2 tests
test bench_get_monotonic_coarsetime ... bench: 50 ns/iter (+/- 26)
test bench_get_monotonic_time ... bench: 92 ns/iter (+/- 25)
test result: ok. 0 passed; 0 failed; 0 ignored; 2 measured
@johalun
johalun / gist:a0c1886dfdec9256e5063c1bb9bc9227
Created September 24, 2020 21:51
m68k llvm problems..
johalun@xc8 ~/d/M/build (master)> cmake ../llvm -G Ninja -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="M680x0" -DLLVM_TARGETS_TO_BUILD="X86" -DLLVM_ENABLE_PROJECTS=clang -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_INSTALL_PREFIX=/opt/llvm-m68k -DCMAKE_BUILD_TYPE=RelWithDebInfo
-- The C compiler identification is Clang 10.0.0
-- The CXX compiler identification is Clang 10.0.0
-- The ASM compiler identification is Clang
-- Found assembler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
### Keybase proof
I hereby claim:
* I am johalun on github.
* I am jlundberg (https://keybase.io/jlundberg) on keybase.
* I have a public key ASBOaAMETf8buyzZOM9wd_JyTzmQmBRAzhc5x6u7hwc-ngo
To claim this, I am signing this object: