Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 1.06 KB

File metadata and controls

43 lines (28 loc) · 1.06 KB

wagi-tests

en pt-br

Modules

Both applications are written in C and compiled to wasm in order to be served via wagi.

append

Any message passed as body of the request is going to be appended (creates the file if doesnt exist) to the file "data.txt".

curl http://localhost:3000/append -d "[Your message]"

Quicksort

This is a load generator algorithm that implements the wost case search for quicksort O($n^2$).

To see all possible arguments, type:

$ curl http://localhost:3000/quicksort?--help
Argumentos válidos:
        --tamanho <inteiro> -> Quantidade de elementos a serem reordenados
        --imprime -> Ativa impressão dos elementos antes e depois
        --help -> Imprime ajuda

The space character '\&'

The command equivalent to

./executable --tamanho 20 --imprime

Needs to substitute ' '(space) with '\&'

curl http://localhost:3000/quicksort?--tamanho\&20\&--imprime