Sign inSign up

openeuler/wrk

Sponsored OSS

By openeuler

Updated 2 months ago

Image
0

4.7K

openeuler/wrk repository overview

Quick reference

wrk | openEuler

Current wrk docker images are built on the openEuler. This repository is free to use and exempted from per-user rate limits.

wrk is a modern HTTP benchmarking tool capable of generating significant load when run on a single multi-core CPU. It combines a multithreaded design with scalable event notification systems such as epoll and kqueue.

The tag of each wrk docker image is consist of the version of wrk and the version of basic image. The details are as follows

TagCurrentlyArchitectures
4.2.0-oe2403sp4wrk 4.2.0 on openEuler 24.03-LTS-SP4amd64, arm64
4.2.0-oe2403sp1wrk 4.2.0 on openEuler 24.03-LTS-SP1amd64, arm64

Usage

In this usage, users can select the corresponding {Tag} based on their requirements.

  • Pull the openeuler/wrk image from docker

    docker pull openeuler/wrk:{Tag}
    
  • Run with an interactive shell

    You can start the container with an interactive shell to use wrk.

    docker run -it --rm openeuler/wrk:{Tag} bash
    
  • Start a simple HTTP server

    In the directory containing you index.html file, run:

    nohup python3 -m http.server 8080 &
    
    • This command will serve files from the current directory on port 8080.
    • nohup and & allow the sever to keep running in the background.
  • Run a stress test using wrk

    Once the server is running, use wrk to generate HTTP load:

    wrk -t12 -c400 -d30s http://127.0.0.1:8080/index.html
    

    Options:

    • -t12: Use 12 threads to generate load.
    • -c400: Use 400 open HTTP connections.
    • -d30s: Run the test for 30 seconds.
    • http://127.0.0.1:8080/index.html: Target URL to test.

Question and answering

If you have any questions or want to use some special features, please submit an issue or a pull request on openeuler-docker-images.

Tag summary

Content type

Image

Digest

sha256:bae34504f

Size

410.2 MB

Last updated

2 months ago

docker pull openeuler/wrk

This week's pulls

Pulls:

5

Last week