update json format
This commit is contained in:
parent
f24d401b61
commit
fdc46ad5df
@ -40,6 +40,8 @@ import (
|
|||||||
var log = logging.Logger("lotus-bench")
|
var log = logging.Logger("lotus-bench")
|
||||||
|
|
||||||
type BenchResults struct {
|
type BenchResults struct {
|
||||||
|
EnvVar map[string]string
|
||||||
|
|
||||||
SectorSize abi.SectorSize
|
SectorSize abi.SectorSize
|
||||||
SectorNumber int
|
SectorNumber int
|
||||||
|
|
||||||
@ -446,14 +448,12 @@ var sealBenchCmd = &cli.Command{
|
|||||||
bo.VerifyWindowPostHot = verifyWindowpost2.Sub(verifyWindowpost1)
|
bo.VerifyWindowPostHot = verifyWindowpost2.Sub(verifyWindowpost1)
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println("environment variable list:")
|
bo.EnvVar = make(map[string]string)
|
||||||
for _, envKey := range []string{"BELLMAN_NO_GPU", "FIL_PROOFS_MAXIMIZE_CACHING", "FIL_PROOFS_USE_GPU_COLUMN_BUILDER",
|
for _, envKey := range []string{"BELLMAN_NO_GPU", "FIL_PROOFS_MAXIMIZE_CACHING", "FIL_PROOFS_USE_GPU_COLUMN_BUILDER",
|
||||||
"FIL_PROOFS_USE_GPU_TREE_BUILDER", "FIL_PROOFS_USE_MULTICORE_SDR", "BELLMAN_CUSTOM_GPU"} {
|
"FIL_PROOFS_USE_GPU_TREE_BUILDER", "FIL_PROOFS_USE_MULTICORE_SDR", "BELLMAN_CUSTOM_GPU"} {
|
||||||
envValue, found := os.LookupEnv(envKey)
|
envValue, found := os.LookupEnv(envKey)
|
||||||
if found {
|
if found {
|
||||||
fmt.Printf("%s=%s\n", envKey, envValue)
|
bo.EnvVar[envKey] = envValue
|
||||||
} else {
|
|
||||||
fmt.Printf("%s not set\n", envKey)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -465,6 +465,10 @@ var sealBenchCmd = &cli.Command{
|
|||||||
|
|
||||||
fmt.Println(string(data))
|
fmt.Println(string(data))
|
||||||
} else {
|
} else {
|
||||||
|
fmt.Println("environment variable list:")
|
||||||
|
for envKey, envValue := range bo.EnvVar {
|
||||||
|
fmt.Printf("%s=%s\n", envKey, envValue)
|
||||||
|
}
|
||||||
fmt.Printf("----\nresults (v28) SectorSize:(%d), SectorNumber:(%d)\n", sectorSize, sectorNumber)
|
fmt.Printf("----\nresults (v28) SectorSize:(%d), SectorNumber:(%d)\n", sectorSize, sectorNumber)
|
||||||
if robench == "" {
|
if robench == "" {
|
||||||
fmt.Printf("seal: addPiece: %s (%s)\n", bo.SealingSum.AddPiece, bps(bo.SectorSize, bo.SectorNumber, bo.SealingSum.AddPiece))
|
fmt.Printf("seal: addPiece: %s (%s)\n", bo.SealingSum.AddPiece, bps(bo.SectorSize, bo.SectorNumber, bo.SealingSum.AddPiece))
|
||||||
|
Loading…
Reference in New Issue
Block a user