%%
Last Updated:
- [[2021-04-19]]
- [[2020-12-04]]
%%
A sampler or sample in [[JMeter]] is a request or element. Multiple samples can be defined as a [[JMeter Transaction|transaction]] using a [[JMeter Transaction Controller]].
_Note_: Samplers will skew total response times because their response will also be counted. Put non-request samplers outside transaction controllers so that their response times are not included. Put the code as pre- or post-processors where possible.
## How to create a sampler in JMeter
Right click > Add > Sampler > ex. HTTP Request. Samplers can contain HTTP calls, and they can also contain scripts to carry out (like the [[Beanshell]] Sampler).
Click on the the HTTP Request Sampler and fill in the following fields:

## Types of samplers
- [[JMeter BeanShell Sampler]]
-