mirror of
https://github.com/status-im/nim-dagger.git
synced 2025-02-12 14:46:26 +00:00
benchmarks
This commit is contained in:
parent
f7ed2acba5
commit
60c9927704
@ -12,9 +12,9 @@ proc createCircuits() =
|
|||||||
# rm ${CIRCUIT_MAIN}_0000.zkey
|
# rm ${CIRCUIT_MAIN}_0000.zkey
|
||||||
# mv ${CIRCUIT_MAIN}_0001.zkey ${CIRCUIT_MAIN}.zkey
|
# mv ${CIRCUIT_MAIN}_0001.zkey ${CIRCUIT_MAIN}.zkey
|
||||||
|
|
||||||
let nimCircuitRef = "vendor/codex-storage-proofs-circuits/reference/nim/proof_input/cli"
|
let nimCircuitRefFl = "vendor"/"codex-storage-proofs-circuits"/"reference"/"nim"/"proof_input"/"cli"
|
||||||
|
|
||||||
proc setProjDir(prev = getCurrentDir()) =
|
proc setProjDir(prev = getCurrentDir()): string =
|
||||||
if not "codex.nimble".fileExists():
|
if not "codex.nimble".fileExists():
|
||||||
setCurrentDir("..")
|
setCurrentDir("..")
|
||||||
if prev == getCurrentDir():
|
if prev == getCurrentDir():
|
||||||
@ -22,11 +22,17 @@ proc setProjDir(prev = getCurrentDir()) =
|
|||||||
echo "\nBenchmark must be run from within the Codex project folder"
|
echo "\nBenchmark must be run from within the Codex project folder"
|
||||||
quit 1
|
quit 1
|
||||||
setProjDir()
|
setProjDir()
|
||||||
|
else:
|
||||||
|
getCurrentDir()
|
||||||
|
|
||||||
setProjDir()
|
let codexProjDir = setProjDir()
|
||||||
|
echo "\n\nFound project dir: ", codexProjDir
|
||||||
|
|
||||||
if not nimCircuitRef.fileExists:
|
if not nimCircuitRefFl.fileExists:
|
||||||
echo "Nim Circuit ref exe not found"
|
echo "Nim Circuit reference cli not found: ", nimCircuitRefFl
|
||||||
|
echo "Building Circuit reference cli..."
|
||||||
|
setCurrentDir(nimCircuitRefFl.parentDir)
|
||||||
|
let res = execShellCmd("nimble build -d:release --styleCheck:off cli")
|
||||||
|
|
||||||
|
|
||||||
echo "huzzah"
|
echo "huzzah"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user