Permalink
Browse files

Run benchmark on CircleCI.

  • Loading branch information...
fukamachi committed Jul 29, 2015
1 parent a6b1cbf commit dbea62cf96d1ceb01359afadaf56f649e9b5378c
Showing with 60 additions and 3 deletions.
  1. +10 −0 benchmark/181B.html
  2. +24 −0 benchmark/bench
  3. +10 −3 circle.yml
  4. +16 −0 t/nginx.conf
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Hello, Dexador</title>
</head>
<body>
Hello, Dexador. I'm not a Zenekindarl. Go back to your home.
</body>
</html>
@@ -0,0 +1,24 @@
#!/bin/sh
#|-*- mode:lisp -*-|#
#|
exec ros -Q -- $0 "$@"
|#
(ql:quickload '(:dexador :drakma))
(defun main ()
(format *error-output* "~2&Drakma~%")
(time
(dotimes (i 30)
(drakma:http-request "http://127.0.0.1:5000/181B.html")))
(format *error-output* "~2&Dexador~%")
(time
(dotimes (i 30)
(dex:get "http://127.0.0.1:5000/181B.html")))
(dex:clear-connection-pool)
(format *error-output* "~2&Dexador (without connection-pooling)~%")
(time
(dotimes (i 30)
(dex:get "http://127.0.0.1:5000/181B.html" :use-connection-pool nil))))
@@ -1,6 +1,6 @@
machine:
environment:
PATH: ~/.roswell/bin:$PATH
PATH: ~/.roswell/bin:~/nginx/sbin:$PATH
ROSWELL_BRANCH: v0.0.3.37
dependencies:
@@ -11,7 +11,9 @@ dependencies:
1) ros install ccl-bin;
ros config set default.lisp ccl-bin ;;
esac
- ros run -- --version
# nginx
- curl -L http://nginx.org/download/nginx-1.8.0.tar.gz | tar xzf -
- (cd nginx-1.8.0 && ./configure --prefix=$HOME/nginx && make && make install)
override:
- git clone https://github.com/fukamachi/fast-http ~/lisp/fast-http
- git clone https://github.com/fukamachi/quri ~/lisp/quri
@@ -21,5 +23,10 @@ dependencies:
- ros -l ~/lisp/prove/prove.asd install prove
test:
pre:
- nginx -c "/home/ubuntu/dexador/t/nginx.conf" -p "$HOME/nginx"
- ros --version
- ros run -- --version
override:
- if [ "$CIRCLE_NODE_INDEX" = 0 ]; then COVERALLS=true run-prove dexador-test.asd; else run-prove dexador-test.asd; fi: {parallel: true}
- if [ "$CIRCLE_NODE_INDEX" = 0 ]; then COVERALLS=true run-prove dexador-test.asd; else run-prove dexador-test.asd; fi: {parallel: true}
- benchmark/bench
@@ -0,0 +1,16 @@
events {
worker_connections 1024;
}
http {
include /home/ubuntu/nginx/conf/mime.types;
access_log off;
error_log /dev/null crit;
server {
listen 5000;
server_name localhost;
location / {
root /home/ubuntu/dexador/benchmark/;
}
}
}

0 comments on commit dbea62c

Please sign in to comment.