aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2016-09-14 15:03:59 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2016-09-14 15:03:59 +0800
commit261c20cf9b4b3fbd50e4984ca81ef1912e4f11f9 (patch)
treee01d56957326ae4c1cf107f7c7b3ab86b11d645c
parentb68d2820825b3e90302d452fed9f28bfed9668fe (diff)
downloaddexon-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.go11
1 files changed, 10 insertions, 1 deletions
diff --git a/go/main.go b/go/main.go
index 425dc73..6c51b06 100644
--- a/go/main.go
+++ b/go/main.go
@@ -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)
}