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

Commit8cde3d8

Browse files
committed
fix dtmbench
1 parenta00f069 commit8cde3d8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎contrib/pg_tsdtm/tests/dtmbench.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ int main (int argc, char* argv[])
383383
cfg.nReaders,
384384
cfg.nWriters,
385385
nAborts,
386-
(int)(nAborts*100/nWrites),
386+
(int)(nAborts*100/(nWrites +0.0001)),
387387
maxReadDuration, maxWriteDuration,
388388
cfg.nAccounts,
389389
cfg.nIterations,

‎contrib/pg_tsdtm/tests/perf.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
-name:run transfers
4646
shell:>
4747
~/pg_cluster/install/bin/dtmbench {{connections}}
48-
-w {{(nconns | d(100)| int)*(nnodes | d(2) | int)/(2*( groups['clients'] | count))}}
49-
-s {{offset}} -d 100000 -r1 -n 10000 -a 1000000 |
48+
-w {{writers | d(100)}}
49+
-s {{offset}} -d 100000 -r{{ readers | d(1) }} -n 10000 -a 1000000 |
5050
tee -a perf.results |
5151
sed "s/^/`hostname`:/"
5252
register:transfers_result

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp