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
#define C_SHIFT 1 //01 | |
#define G_SHIFT 2 //10 | |
#define T_SHIFT 3 //11 | |
/** | |
* | |
* @param readString: The DNA sequence to be encoded | |
* @param stringLength : The number of characters in the DNA sequence | |
* @return uint8_t type array of bits | |
*/ | |
uint8_t *bitEncode(char *readString, int stringLength) { |
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
using BenchmarkTools | |
@enum Shape Rock Paper Scissors | |
function play(a::Shape, b::Shape) | |
if a == b | |
return 0 | |
elseif a == Paper && b == Rock | |
return 1 | |
elseif a == Paper && b == Scissors |
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
using Statistics | |
using Printf | |
import Pkg | |
const JULIA_CMD = Base.julia_cmd() | |
run_cmd(cmd) = run(`$JULIA_CMD --startup=no --history-file=no -e $cmd`) | |
const N_STARTUP_RUNS = 5 | |
function run_latency_check() |