diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2016-09-14 15:03:59 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2016-09-14 15:03:59 +0800 |
commit | 261c20cf9b4b3fbd50e4984ca81ef1912e4f11f9 (patch) | |
tree | e01d56957326ae4c1cf107f7c7b3ab86b11d645c | |
parent | b68d2820825b3e90302d452fed9f28bfed9668fe (diff) | |
download | dexon-bls-261c20cf9b4b3fbd50e4984ca81ef1912e4f11f9.tar dexon-bls-261c20cf9b4b3fbd50e4984ca81ef1912e4f11f9.tar.gz dexon-bls-261c20cf9b4b3fbd50e4984ca81ef1912e4f11f9.tar.bz2 dexon-bls-261c20cf9b4b3fbd50e4984ca81ef1912e4f11f9.tar.lz dexon-bls-261c20cf9b4b3fbd50e4984ca81ef1912e4f11f9.tar.xz dexon-bls-261c20cf9b4b3fbd50e4984ca81ef1912e4f11f9.tar.zst dexon-bls-261c20cf9b4b3fbd50e4984ca81ef1912e4f11f9.zip |
put runtime information
-rw-r--r-- | go/main.go | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -2,6 +2,8 @@ package main import "fmt" import "./bls" +import "runtime" +import "time" func verifyTrue(b bool) { if !b { @@ -10,7 +12,7 @@ func verifyTrue(b bool) { } func testRecoverSecretKey() { fmt.Println("testRecoverSecretKey") - k := 1000 + k := 3000 sec := bls.NewSecretKey() sec.Init() fmt.Println("sec =", sec) @@ -155,4 +157,11 @@ func main() { testAdd() testSign() testPop() + + // put memory status + runtime.GC() + time.Sleep(2 * time.Second) + var mem runtime.MemStats + runtime.ReadMemStats(&mem) + fmt.Println("mem=", mem) } |