zoukankan      html  css  js  c++  java
  • pgbench

    postgres@bingo-Computer:/opt/pgsql/bin$ ./pgbench --help
    pgbench is a benchmarking tool for PostgreSQL.
    
    Usage:
      pgbench [OPTION]... [DBNAME]
    
    Initialization options:
      -i, --initialize         invokes initialization mode
      -F, --fillfactor=NUM     set fill factor
      -n, --no-vacuum          do not run VACUUM after initialization
      -q, --quiet              quiet logging (one message each 5 seconds)
      -s, --scale=NUM          scaling factor
      --foreign-keys           create foreign key constraints between tables
      --index-tablespace=TABLESPACE
                               create indexes in the specified tablespace
      --tablespace=TABLESPACE  create tables in the specified tablespace
      --unlogged-tables        create tables as unlogged tables
    
    Options to select what to run:
      -b, --builtin=NAME[@W]   add builtin script NAME weighted at W (default: 1)
                               (use "-b list" to list available scripts)
      -f, --file=FILENAME[@W]  add script FILENAME weighted at W (default: 1)
      -N, --skip-some-updates  skip updates of pgbench_tellers and pgbench_branches
                               (same as "-b simple-update")
      -S, --select-only        perform SELECT-only transactions
                               (same as "-b select-only")
    
    Benchmarking options:
      -c, --client=NUM         number of concurrent database clients (default: 1)
      -C, --connect            establish new connection for each transaction
      -D, --define=VARNAME=VALUE
                               define variable for use by custom script
      -j, --jobs=NUM           number of threads (default: 1)
      -l, --log                write transaction times to log file
      -L, --latency-limit=NUM  count transactions lasting more than NUM ms as late
      -M, --protocol=simple|extended|prepared
                               protocol for submitting queries (default: simple)
      -n, --no-vacuum          do not run VACUUM before tests
      -P, --progress=NUM       show thread progress report every NUM seconds
      -r, --report-latencies   report average latency per command
      -R, --rate=NUM           target rate in transactions per second
      -s, --scale=NUM          report this scale factor in output
      -t, --transactions=NUM   number of transactions each client runs (default: 10)
      -T, --time=NUM           duration of benchmark test in seconds
      -v, --vacuum-all         vacuum all four standard tables before tests
      --aggregate-interval=NUM aggregate data over NUM seconds
      --progress-timestamp     use Unix epoch timestamps for progress
      --sampling-rate=NUM      fraction of transactions to log (e.g., 0.01 for 1%)
    
    Common options:
      -d, --debug              print debugging output
      -h, --host=HOSTNAME      database server host or socket directory
      -p, --port=PORT          database server port number
      -U, --username=USERNAME  connect as specified database user
      -V, --version            output version information, then exit
      -?, --help               show this help, then exit
    
  • 相关阅读:
    给出两个 非空 的链表用来表示两个非负的整数。其中,它们各自的位数是按照 逆序 的方式存储的,并且它们的每个节点只能存储 一位 数字。
    11
    实战 迁移学习 VGG19、ResNet50、InceptionV3 实践 猫狗大战 问题
    tx2系统备份与恢复
    如何在Ubuntu 18.04上安装和卸载TeamViewer
    bzoj 3732 Network (kruskal重构树)
    bzoj2152 聪聪可可 (树形dp)
    牛客 216D 消消乐 (二分图最小点覆盖)
    牛客 197E 01串
    Wannafly挑战赛23
  • 原文地址:https://www.cnblogs.com/bingo711x/p/8193561.html
Copyright © 2011-2022 走看看