From 38a153c5467990be712e20fdbcb58cebe0c7eb17 Mon Sep 17 00:00:00 2001 From: Brian Seymour Date: Sat, 23 Jan 2021 13:57:13 -0600 Subject: [PATCH] update readme --- readme.md | 2 +- var/benchmark.txt | 12 ++++++++++++ var/benchmark_payload.txt | 6 ++++++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 var/benchmark.txt create mode 100644 var/benchmark_payload.txt diff --git a/readme.md b/readme.md index 5e7322a..136eaa5 100644 --- a/readme.md +++ b/readme.md @@ -7,7 +7,7 @@

- + GitHub last commit diff --git a/var/benchmark.txt b/var/benchmark.txt new file mode 100644 index 0000000..f7f20c3 --- /dev/null +++ b/var/benchmark.txt @@ -0,0 +1,12 @@ +ab -c 30 -n 1000 \ + https://emkc.org/api/v1/piston/versions + +ab -c 30 -n 1000 \ + -p benchmark_payload.txt \ + -T 'application/json' \ + https://emkc.org/api/v1/piston/execute + + +time for i in {1..100}; do + timeout -s KILL 3 lxc-attach --clear-env -n piston -- /bin/bash -l -c "runuser runner1 /bin/bash -c 'ls -l '" +done diff --git a/var/benchmark_payload.txt b/var/benchmark_payload.txt new file mode 100644 index 0000000..389cbbc --- /dev/null +++ b/var/benchmark_payload.txt @@ -0,0 +1,6 @@ +{ + "language": "python", + "source": "print('test')", + "stdin": "", + "args": [] +}