mirror of
https://github.com/logos-storage/constantine.git
synced 2026-01-09 16:43:09 +00:00
nimble: fix bench_poly1305, improve reporting in pararun
This commit is contained in:
parent
cc47c27cca
commit
7c7290115f
@ -237,7 +237,7 @@ const benchDesc = [
|
|||||||
"bench_summary_bn254_nogami",
|
"bench_summary_bn254_nogami",
|
||||||
"bench_summary_bn254_snarks",
|
"bench_summary_bn254_snarks",
|
||||||
"bench_summary_pasta",
|
"bench_summary_pasta",
|
||||||
"bench_poly_1305",
|
"bench_poly1305",
|
||||||
"bench_sha256",
|
"bench_sha256",
|
||||||
"bench_hash_to_curve",
|
"bench_hash_to_curve",
|
||||||
"bench_blssig_on_bls12_381_g2"
|
"bench_blssig_on_bls12_381_g2"
|
||||||
|
|||||||
@ -84,6 +84,7 @@ proc enqueuePendingCommands(wq: WorkQueue) {.async.} =
|
|||||||
wq.outputQueue.putNoWait((cmd, p))
|
wq.outputQueue.putNoWait((cmd, p))
|
||||||
|
|
||||||
proc flushCommandsOutput(wq: WorkQueue) {.async.} =
|
proc flushCommandsOutput(wq: WorkQueue) {.async.} =
|
||||||
|
var id = 0
|
||||||
while true:
|
while true:
|
||||||
let (cmd, p) = await wq.outputQueue.get()
|
let (cmd, p) = await wq.outputQueue.get()
|
||||||
|
|
||||||
@ -100,7 +101,9 @@ proc flushCommandsOutput(wq: WorkQueue) {.async.} =
|
|||||||
|
|
||||||
let exitCode = p.peekExitCode()
|
let exitCode = p.peekExitCode()
|
||||||
if exitCode != 0:
|
if exitCode != 0:
|
||||||
quit exitCode
|
quit "Command #" & $id & "exited with error " & $exitCode, exitCode
|
||||||
|
|
||||||
|
id += 1
|
||||||
|
|
||||||
if wq.cmdQueue.len == 0 and wq.outputQueue.len == 0:
|
if wq.cmdQueue.len == 0 and wq.outputQueue.len == 0:
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user