Script started on Fri Jun 11 19:00:57 2010thsutton@karri:t2$ cat ../all.sh#!/usr/bin/env bash# # This is a script to download, compile, install and (on my machine at least)# crap out after 16K requests to a Snap Framework app.#echo "BUILDING snap-core"git clone http://github.com/snapframework/snap-core.gitpushd snap-corecabal configure && cabal build && cabal installpopdecho "BUILDING snap-server"git clone http://github.com/snapframework/snap-server.gitpushd snap-servercabal configure && cabal build && cabal installpopdecho "BUILDING testapp"mkdir testapppushd testappsnap initcabal configure && cabal buildecho "RUNNING testapp"./dist/build/testapp/testapp 8080 &sleep 1echo "RUNNING ab"ab -n 20000 -c 10 http://127.0.0.1:8080/thsutton@karri:t2$ bash ../all.shBUILDING snap-coreInitialized empty Git repository in /Users/thsutton/Projects/snap/t2/snap-core/.git/remote: Counting objects: 1295, done.[Kremote: Compressing objects: 100% (745/745), done.[KReceiving objects: 100% (1295/1295), 591.37 KiB | 25 KiB/s, done.Resolving deltas: 100% (651/651), done.~/Projects/snap/t2/snap-core ~/Projects/snap/t2Resolving dependencies...Configuring snap-core-0.2.7...Preprocessing library snap-core-0.2.7...Preprocessing executables for snap-core-0.2.7...Building snap-core-0.2.7...[ 1 of 10] Compiling Snap.Internal.Debug ( src/Snap/Internal/Debug.hs, dist/build/Snap/Internal/Debug.o )[ 2 of 10] Compiling Snap.Iteratee    ( src/Snap/Iteratee.hs, dist/build/Snap/Iteratee.o )src/Snap/Iteratee.hs:86:9:    Warning: orphan instance:      instance (Functor m, MonadCatchIO m) =>               MonadCatchIO (IterateeG s el m)[ 3 of 10] Compiling Snap.Internal.Iteratee.Debug ( src/Snap/Internal/Iteratee/Debug.hs, dist/build/Snap/Internal/Iteratee/Debug.o )[ 4 of 10] Compiling Data.CIByteString ( src/Data/CIByteString.hs, dist/build/Data/CIByteString.o )[ 5 of 10] Compiling Snap.Internal.Http.Types ( src/Snap/Internal/Http/Types.hs, dist/build/Snap/Internal/Http/Types.o )[ 6 of 10] Compiling Snap.Internal.Types ( src/Snap/Internal/Types.hs, dist/build/Snap/Internal/Types.o )[ 7 of 10] Compiling Snap.Internal.Routing ( src/Snap/Internal/Routing.hs, dist/build/Snap/Internal/Routing.o )[ 8 of 10] Compiling Snap.Types       ( src/Snap/Types.hs, dist/build/Snap/Types.o )[ 9 of 10] Compiling Snap.Util.FileServe ( src/Snap/Util/FileServe.hs, dist/build/Snap/Util/FileServe.o )[10 of 10] Compiling Snap.Util.GZip   ( src/Snap/Util/GZip.hs, dist/build/Snap/Util/GZip.o )Registering snap-core-0.2.7...[1 of 2] Compiling Snap.StarterTH   ( src/Snap/StarterTH.hs, dist/build/snap/snap-tmp/Snap/StarterTH.o )[2 of 2] Compiling Main             ( src/Snap/Starter.hs, dist/build/snap/snap-tmp/Main.o )Loading package ghc-prim ... linking ... done.Loading package integer-gmp ... linking ... done.Loading package base ... linking ... done.Loading package bytestring-0.9.1.5 ... linking ... done.Loading package zlib-0.5.2.0 ... linking ... done.Loading package syb-0.1.0.2 ... linking ... done.Loading package base-3.0.3.2 ... linking ... done.Loading package unix-2.4.0.0 ... linking ... done.Loading package unix-compat-0.1.2.1 ... linking ... done.Loading package array-0.3.0.0 ... linking ... done.Loading package containers-0.3.0.0 ... linking ... done.Loading package deepseq-1.1.0.0 ... linking ... done.Loading package text-0.7.1.0 ... linking ... done.Loading package pretty-1.0.1.1 ... linking ... done.Loading package template-haskell ... linking ... done.Loading package transformers-0.2.1.0 ... linking ... done.Loading package monads-fd-0.1.0.1 ... linking ... done.Loading package filepath-1.1.0.3 ... linking ... done.Loading package old-locale-1.0.0.2 ... linking ... done.Loading package old-time-1.0.0.3 ... linking ... done.Loading package directory-1.0.1.0 ... linking ... done.Loading package process-1.0.1.2 ... linking ... done.Loading package time-1.1.4 ... linking ... done.Loading package random-1.0.0.2 ... linking ... done.Loading package haskell98 ... linking ... done.Loading package mtl-1.1.0.2 ... linking ... done.Loading package ListLike-1.0.1 ... linking ... done.Loading package extensible-exceptions-0.1.1.1 ... linking ... done.Loading package iteratee-0.3.5 ... linking ... done.Loading package dlist-0.5 ... linking ... done.Loading package directory-tree-0.2.0 ... linking ... done.Loading package cereal-0.2 ... linking ... done.Loading package bytestring-nums-0.3.2 ... linking ... done.Loading package bytestring-mmap-0.2.1 ... linking ... done.Loading package attoparsec-0.8.0.2 ... linking ... done.Loading package MonadCatchIO-transformers-0.2.2.0 ... linking ... done.Loading package ffi-1.0 ... linking ... done.src/Snap/Starter.hs:18:2:    Warning: Definition but no type signature for `tDirDefault'             Inferred type: tDirDefault :: ([[Char]], [([Char], [Char])])src/Snap/Starter.hs:19:2:    Warning: Definition but no type signature for `tDirBareBones'             Inferred type: tDirBareBones :: ([[Char]], [([Char], [Char])])Linking dist/build/snap/snap ...Resolving dependencies...Configuring snap-core-0.2.7...Preprocessing library snap-core-0.2.7...Preprocessing executables for snap-core-0.2.7...Building snap-core-0.2.7...Registering snap-core-0.2.7...Running Haddock for snap-core-0.2.7...Preprocessing library snap-core-0.2.7...Preprocessing executables for snap-core-0.2.7...Warning: The documentation for the following packages are not installed. Nolinks will be generated to these packages: base-3.0.3.2, ffi-1.0, rts-1.0Documentation created: dist/doc/html/snap-core/index.htmlInstalling library in /usr/local/lib/snap-core-0.2.7/ghc-6.12.1Installing executable(s) in /usr/local/binRegistering snap-core-0.2.7...~/Projects/snap/t2BUILDING snap-serverInitialized empty Git repository in /Users/thsutton/Projects/snap/t2/snap-server/.git/remote: Counting objects: 1119, done.[Kremote: Compressing objects: 100% (637/637), done.[KReceiving objects: 100% (1119/1119), 578.43 KiB | 11 KiB/s, done.Resolving deltas: 100% (448/448), done.~/Projects/snap/t2/snap-server ~/Projects/snap/t2Resolving dependencies...Configuring snap-server-0.2.7...Preprocessing library snap-server-0.2.7...Building snap-server-0.2.7...[ 1 of 10] Compiling Snap.Internal.Http.Parser ( src/Snap/Internal/Http/Parser.hs, dist/build/Snap/Internal/Http/Parser.o )[ 2 of 10] Compiling Paths_snap_server ( dist/build/autogen/Paths_snap_server.hs, dist/build/Paths_snap_server.o )[ 3 of 10] Compiling System.SendFile.Darwin ( dist/build/System/SendFile/Darwin.hs, dist/build/System/SendFile/Darwin.o )[ 4 of 10] Compiling System.SendFile  ( src/System/SendFile.hs, dist/build/System/SendFile.o )[ 5 of 10] Compiling Snap.Internal.Http.Server.Date ( src/Snap/Internal/Http/Server/Date.hs, dist/build/Snap/Internal/Http/Server/Date.o )[ 6 of 10] Compiling Snap.Internal.Http.Server.SimpleBackend ( src/Snap/Internal/Http/Server/SimpleBackend.hs, dist/build/Snap/Internal/Http/Server/SimpleBackend.o )src/Snap/Internal/Http/Server/SimpleBackend.hs:316:0:    Warning: Defined but not used: `cancelTimeout'[ 7 of 10] Compiling System.FastLogger ( src/System/FastLogger.hs, dist/build/System/FastLogger.o )[ 8 of 10] Compiling Snap.Http.Server.Config ( src/Snap/Http/Server/Config.hs, dist/build/Snap/Http/Server/Config.o )[ 9 of 10] Compiling Snap.Internal.Http.Server ( src/Snap/Internal/Http/Server.hs, dist/build/Snap/Internal/Http/Server.o )[10 of 10] Compiling Snap.Http.Server ( src/Snap/Http/Server.hs, dist/build/Snap/Http/Server.o )Registering snap-server-0.2.7...Resolving dependencies...Configuring snap-server-0.2.7...Preprocessing library snap-server-0.2.7...Building snap-server-0.2.7...Registering snap-server-0.2.7...Running Haddock for snap-server-0.2.7...Preprocessing library snap-server-0.2.7...Warning: The documentation for the following packages are not installed. Nolinks will be generated to these packages: base-3.0.3.2, ffi-1.0, rts-1.0Documentation created: dist/doc/html/snap-server/index.htmlInstalling library in /usr/local/lib/snap-server-0.2.7/ghc-6.12.1Registering snap-server-0.2.7...~/Projects/snap/t2BUILDING testapp~/Projects/snap/t2/testapp ~/Projects/snap/t2Resolving dependencies...Configuring testapp-0.1...Preprocessing executables for testapp-0.1...Building testapp-0.1...[1 of 2] Compiling Common           ( src/Common.hs, dist/build/testapp/testapp-tmp/Common.o )[2 of 2] Compiling Main             ( src/Main.hs, dist/build/testapp/testapp-tmp/Main.o )Linking dist/build/testapp/testapp ...RUNNING testappRUNNING abThis is ApacheBench, Version 2.3 <$Revision: 655654 $>Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/Licensed to The Apache Software Foundation, http://www.apache.org/Benchmarking 127.0.0.1 (be patient)Completed 2000 requestsCompleted 4000 requestsCompleted 6000 requestsexitingCompleted 8000 requestsCompleted 10000 requestsCompleted 12000 requestsCompleted 14000 requestsCompleted 16000 requestsapr_poll: The timeout specified has expired (70007)Total of 16386 requests completedthsutton@karri:t2$ exitScript done on Fri Jun 11 19:03:43 2010