Skip to content

Commit

Permalink
finalize and merge lua scripting
Browse files Browse the repository at this point in the history
  • Loading branch information
wg committed Sep 22, 2013
1 parent a2d7b36 commit 6845a10
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ all: $(BIN)

clean:
$(RM) $(BIN) obj/*
@$(MAKE) -C deps/luajit clean

$(BIN): $(OBJ) $(ODIR)/bytecode.o
@echo LINK $(BIN)
Expand Down
6 changes: 2 additions & 4 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ wrk - a HTTP benchmarking tool
load when run on a single multi-core CPU. It combines a multithreaded
design with scalable event notification systems such as epoll and kqueue.

This "scripted" branch of wrk includes LuaJIT and a Lua script may be
used to perform minor alterations to the default HTTP request or even
even generate a completely new HTTP request each time. The script may
also inspect each response and perform custom reporting.
An optional LuaJIT script can perform HTTP request generation, response
processing, and custom reporting.

Basic Usage

Expand Down
2 changes: 0 additions & 2 deletions src/wrk.c
Original file line number Diff line number Diff line change
Expand Up @@ -581,8 +581,6 @@ static int parse_args(struct config *cfg, char **url, char **headers, int argc,
printf("wrk %s [%s] ", VERSION, aeGetApiName());
printf("Copyright (C) 2012 Will Glozer\n");
break;
case 'r':
fprintf(stderr, "wrk 2.0.0+ uses -d instead of -r\n");
case 'h':
case '?':
case ':':
Expand Down
2 changes: 1 addition & 1 deletion src/wrk.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "script.h"
#include "http_parser.h"

#define VERSION "2.2.2"
#define VERSION "3.0.0"
#define RECVBUF 8192
#define SAMPLES 100000000

Expand Down

0 comments on commit 6845a10

Please sign in to comment.