diff --git a/readme.md b/readme.md
index 5e7322a..136eaa5 100644
--- a/readme.md
+++ b/readme.md
@@ -7,7 +7,7 @@
- + 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": [] +}