---
  - config:
    - testset: "Hive API Benchmark Tests"
    - api: &api "hive"
    - variable_binds:
      - api: *api
    - generators:
      - test_id: {type: 'number_sequence', start: 1}

  - base_benchmark: &base_benchmark
    - url: "/"
    - group: *api
    - method: "POST"
    - generator_binds:
      - test_id: test_id
    - body: {template: {file: "./templates/request_template.json"}}
    - warmup_runs: 0
    - benchmark_runs: '1000'
    - output_format: csv
    - metrics:
      - total_time
      - total_time: mean
      - total_time: median

  - benchmark:
    - name: "get_followers"
    - variable_binds:
      - method: "get_followers"
      - args: '["steemit",null,"blog",10]'
    - <<: *base_benchmark

  - benchmark:
    - name: "get_following"
    - variable_binds:
      - method: "get_following"
      - args: '["steemit",null,"blog",10]'
    - <<: *base_benchmark

  - benchmark:
    - name: "get_follow_count"
    - variable_binds:
      - method: "get_follow_count"
      - args: '["steemit"]'
    - <<: *base_benchmark

  - benchmark:
    - name: "get_content"
    - variable_binds:
      - method: "get_content"
      - args: '["steemit", "firstpost"]'
    - <<: *base_benchmark

  - benchmark:
    - name: "get_content_replies"
    - variable_binds:
      - method: "get_content_replies"
      - args: '["steemit", "firstpost"]'
    - <<: *base_benchmark

# Dynamic data present
#  - benchmark:
#    - name: "get_state"
#    - variable_binds:
#      - method: "get_state"
#      - args: '["/@steemit"]'
#    - <<: *base_benchmark

  - benchmark:
    - name: "get_trending_tags"
    - variable_binds:
      - method: "get_trending_tags"
      - args: '{"start_tag":"polska","limit":10}'
    - <<: *base_benchmark

  - benchmark:
    - name: "get_discussions_by_trending"
    - variable_binds:
      - method: "get_discussions_by_trending"
      - args: '{"tag":"polska","limit":1}'
    - <<: *base_benchmark

  - benchmark:
    - name: "get_discussions_by_hot"
    - variable_binds:
      - method: "get_discussions_by_hot"
      - args: '{"tag":"polska","limit":1}'
    - <<: *base_benchmark

  - benchmark:
    - name: "get_discussions_by_promoted"
    - variable_binds:
      - method: "get_discussions_by_promoted"
      - args: '{"tag":"polska","limit":1}'
    - <<: *base_benchmark

  - benchmark:
    - name: "get_discussions_by_created"
    - variable_binds:
      - method: "get_discussions_by_created"
      - args: '{"tag":"polska","limit":1}'
    - <<: *base_benchmark

  - benchmark:
    - name: "get_discussions_by_blog"
    - variable_binds:
      - method: "get_discussions_by_blog"
      - args: '{"tag":"polska","limit":1}'
    - <<: *base_benchmark

  - benchmark:
    - name: "get_discussions_by_feed"
    - variable_binds:
      - method: "get_discussions_by_feed"
      - args: '{"tag":"polska","limit":1}'
    - <<: *base_benchmark

  - benchmark:
    - name: "get_discussions_by_comments"
    - variable_binds:
      - method: "get_discussions_by_comments"
      - args: '{"start_author":"steemit","start_permlink":"firstpost","limit":1}'
    - <<: *base_benchmark

  - benchmark:
    - name: "get_replies_by_last_update"
    - variable_binds:
      - method: "get_replies_by_last_update"
      - args: '["steemit","firstpost",1]'
    - <<: *base_benchmark

  - benchmark:
    - name: "get_discussions_by_author_before_date"
    - variable_binds:
      - method: "get_discussions_by_author_before_date"
      - args: '{"author":"steemit","start_permlink":"firstpost","before_date":"2016-04-19T22:49:43","limit":1}'
    - <<: *base_benchmark

  - benchmark:
    - name: "get_post_discussions_by_payout"
    - variable_binds:
      - method: "get_post_discussions_by_payout"
      - args: '{"tag":"polska","limit":1}'
    - <<: *base_benchmark

  - benchmark:
    - name: "get_comment_discussions_by_payout"
    - variable_binds:
      - method: "get_comment_discussions_by_payout"
      - args: '{"tag":"polska","limit":1}'
    - <<: *base_benchmark

  - benchmark:
    - name: "get_blog"
    - variable_binds:
      - method: "get_blog"
      - args: '{"account":"steemit","start_entry_id":0,"limit":1}'
    - <<: *base_benchmark

  - benchmark:
    - name: "get_blog_entries"
    - variable_binds:
      - method: "get_blog_entries"
      - args: '{"account":"steemit","start_entry_id":0,"limit":1}'
    - <<: *base_benchmark

  - benchmark:
    - name: "get_account_reputations"
    - variable_binds:
      - method: "get_account_reputations"
      - args: '["steemit", 1]'
    - <<: *base_benchmark

  - benchmark:
    - name: "get_reblogged_by"
    - variable_binds:
      - method: "get_reblogged_by"
      - args: '{"author":"steemit","permlink":"firstpost"}'
    - <<: *base_benchmark

  - benchmark:
    - name: "get_accounts"
    - variable_binds:
      - method: "get_accounts"
      - args: '[["steemit"]]'
    - <<: *base_benchmark

# No longer supported
#  - benchmark:
#    - name: "get_account_votes"
#    - variable_binds:
#      - method: "get_account_votes"
#      - args: '["steemit"]'
#    - <<: *base_benchmark