Skip to content

Instantly share code, notes, and snippets.

@syossan27
Created December 4, 2022 06:16
Show Gist options
  • Save syossan27/210fa6669e2628148c11ae52dbd1a032 to your computer and use it in GitHub Desktop.
Save syossan27/210fa6669e2628148c11ae52dbd1a032 to your computer and use it in GitHub Desktop.
// Creator: k6 Browser Recorder 0.6.2
import { sleep, group } from 'k6'
import http from 'k6/http'
export const options = {
vus: 10,
duration: '5m'
}
export default function main() {
let response
group('page_1 - http://example.com/', function () {
response = http.get('http://example.com/', {
headers: {
'upgrade-insecure-requests': '1',
},
})
})
// Automatically added sleep
sleep(1)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment