Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita67ed2a

Browse files
committed
Add DTM presentsation files
1 parent7ba7388 commita67ed2a

File tree

4 files changed

+302
-4
lines changed

4 files changed

+302
-4
lines changed

‎contrib/pg_dtm/docs/dtm.pdf‎

1.15 MB
Binary file not shown.

‎contrib/pg_dtm/docs/pgpro-background.jpg‎

Lines changed: 295 additions & 0 deletions
Loading
7.05 KB
Binary file not shown.

‎contrib/pg_tsdtm/tests/transfers.go‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@ import (
55
"sync"
66
"strconv"
77
"math/rand"
8+
"time"
89
"github.com/jackc/pgx"
910
)
1011

1112
const (
12-
TRANSFER_CONNECTIONS=8
13+
TRANSFER_CONNECTIONS=10
1314
INIT_AMOUNT=10000
14-
N_ITERATIONS=10000//0
15-
N_ACCOUNTS=2//100000
15+
N_ITERATIONS=10000
16+
N_ACCOUNTS=100000
1617
)
1718

1819

@@ -201,7 +202,7 @@ func main() {
201202
varinspectWg sync.WaitGroup
202203

203204
prepare_db()
204-
205+
start:=time.Now()
205206
transferWg.Add(TRANSFER_CONNECTIONS)
206207
fori:=0;i<TRANSFER_CONNECTIONS;i++ {
207208
gotransfer(i,&transferWg)
@@ -213,6 +214,8 @@ func main() {
213214
transferWg.Wait()
214215
running=false
215216
inspectWg.Wait()
217+
218+
fmt.Printf("Elapsed time %f sec",time.Since(start).Seconds())
216219
}
217220

218221
funcexec(conn*pgx.Conn,stmtstring,arguments...interface{}) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp