Commit 55cd6072 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent cc7bb3c1
...@@ -77,7 +77,7 @@ Sgo() { ...@@ -77,7 +77,7 @@ Sgo() {
# -cpuprofile cpu.out # -cpuprofile cpu.out
# -trace trace.out # -trace trace.out
exec -a Sgo \ exec -a Sgo \
neo -trace trace.out -log_dir=$log storage -cluster=$cluster -bind=$Sbind -masters=$Mbind "$@" & neo -cpuprofile cpu.out -log_dir=$log storage -cluster=$cluster -bind=$Sbind -masters=$Mbind "$@" &
} }
...@@ -288,10 +288,10 @@ bench1() { ...@@ -288,10 +288,10 @@ bench1() {
# go run zhash.go --log_dir=$log -$hashfunc -useprefetch $url # go run zhash.go --log_dir=$log -$hashfunc -useprefetch $url
} }
echo -e "\n*** FileStorage" # echo -e "\n*** FileStorage"
for i in $N; do # for i in $N; do
bench1 $fs1/data.fs # bench1 $fs1/data.fs
done # done
# echo -e "\n*** ZEO" # echo -e "\n*** ZEO"
# Zpy $fs1/data.fs # Zpy $fs1/data.fs
...@@ -318,13 +318,13 @@ done ...@@ -318,13 +318,13 @@ done
# xmysql -e "SHUTDOWN" # xmysql -e "SHUTDOWN"
# wait # wait
# echo -e "\n*** NEO/go" echo -e "\n*** NEO/go"
# NEOgo NEOgo
# for i in $N; do for i in $N; do
# bench1 neo://$cluster@$Mbind bench1 neo://$cluster@$Mbind
# done done
# xneoctl set cluster stopping xneoctl set cluster stopping
# wait wait
# all ok # all ok
trap - EXIT trap - EXIT
......
...@@ -156,13 +156,13 @@ func zhash(ctx context.Context, url string, h hasher, useprefetch bool) (err err ...@@ -156,13 +156,13 @@ func zhash(ctx context.Context, url string, h hasher, useprefetch bool) (err err
} }
before := lastTid + 1 // XXX overflow ? before := lastTid + 1 // XXX overflow ?
if true { if false {
//defer profile.Start(profile.TraceProfile).Stop() defer profile.Start(profile.TraceProfile).Stop()
//defer profile.Start(profile.MemProfile).Stop() //defer profile.Start(profile.MemProfile).Stop()
defer profile.Start(profile.CPUProfile).Stop() //defer profile.Start(profile.CPUProfile).Stop()
} }
for qqq := 0; qqq < 30; qqq++ { for qqq := 0; qqq < 10; qqq++ {
tstart := time.Now() tstart := time.Now()
h.Reset() // XXX temp h.Reset() // XXX temp
...@@ -203,10 +203,8 @@ loop: ...@@ -203,10 +203,8 @@ loop:
if useprefetch { if useprefetch {
x += " +prefetch" x += " +prefetch"
} }
if false {
fmt.Printf("%s:%x ; oid=0..%d nread=%d t=%s (%s / object) x=%s\n", fmt.Printf("%s:%x ; oid=0..%d nread=%d t=%s (%s / object) x=%s\n",
h.name, h.Sum(nil), oid-1, nread, δt, δt / time.Duration(oid), x) // XXX /oid cast ? h.name, h.Sum(nil), oid-1, nread, δt, δt / time.Duration(oid), x) // XXX /oid cast ?
}
} }
return nil return nil
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment