aboutsummaryrefslogtreecommitdiffstats
path: root/utils/rspamd_http_bench.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-20 10:10:35 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-20 10:10:35 +0100
commitc0864168aa88ca21c09a45b5ea13352262f99bc4 (patch)
treed2290b20037645984848578d881833b47d783e36 /utils/rspamd_http_bench.c
parenta9c480ca19d2e050a0d7edd6d8e3a4f6817d23b5 (diff)
downloadrspamd-c0864168aa88ca21c09a45b5ea13352262f99bc4.tar.gz
rspamd-c0864168aa88ca21c09a45b5ea13352262f99bc4.zip
Add a simple http server for benchmarks
Diffstat (limited to 'utils/rspamd_http_bench.c')
-rw-r--r--utils/rspamd_http_bench.c42
1 files changed, 42 insertions, 0 deletions
diff --git a/utils/rspamd_http_bench.c b/utils/rspamd_http_bench.c
new file mode 100644
index 000000000..1e5c3873a
--- /dev/null
+++ b/utils/rspamd_http_bench.c
@@ -0,0 +1,42 @@
+/*
+ * Copyright (c) 2015, Vsevolod Stakhov
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY AUTHOR ''AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL AUTHOR BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "config.h"
+#include "rspamd.h"
+#include "util.h"
+#include "http.h"
+#include "ottery.h"
+#include "cryptobox.h"
+#include "unix-std.h"
+#include <math.h>
+
+#ifdef HAVE_SYS_WAIT_H
+#include <sys/wait.h>
+#endif
+
+int
+main (int argc, char **argv)
+{
+ return 1;
+}