Skip to content

Instantly share code, notes, and snippets.

@nicolevanderhoeven
Created March 2, 2021 16:48
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save nicolevanderhoeven/752017196efc1ee861c6d3baa5dfca31 to your computer and use it in GitHub Desktop.
Sample Presentation

+++ title = "Load Tests as Code" outputs = ["Reveal"] [reveal_hugo] custom_theme = "reveal-hugo/themes/robot-lung.css" margin = 0.2 highlight_theme = "color-brewer" transition = "slide" transition_speed = "fast" +++

Load tests as code

An introduction to k6

Nicole van der Hoeven


This is pretty cool

h2

h3

Some italicized text

import http from 'k6/http';
import { sleep, check } from 'k6';

export default function () {
    let res = http.get('https://test.k6.io', {tags: { name: '01_Home' }});
    check(res, {
      'is status 200': (r) => r.status === 200,
      'text verification': (r) => r.body.includes("Collection of simple web-pages suitable for load testing")
    });
    sleep(Math.random() * 5);
}

{{< slide id="hello" background="#7d64ff" transition="zoom" transition-speed="slow" >}}

{{% note %}} Speaker notes here. This shouldn't be visible. {{% /note %}}

{{% fragment %}}# Isa{{% /fragment %}} {{% fragment %}}## Deux{{% /fragment %}} {{% fragment %}}### Drie{{% /fragment %}}


{{% section %}}

What's a vertical slide?


Oh cool!

{{% /section %}}


Aquí un video

<iframe width="1120" height="630" src="https://www.youtube.com/embed/WrDV8iIdCy8" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

{{< slide background-image="lucrezia-carnelos-AsM4T46tqcU-unsplash.jpg" transition="zoom" transition-speed="slow" >}}

Photo by
Lucrezia Carnelos
on Unsplash.


Maybe I should actually write this presentation now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment