Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ else
LUA_ENV := LD_LIBRARY_PATH=$(LIB_DIR) LUA_PATH='$(LUA_PATH)' LUA_CPATH='$(LUA_CPATH)'
endif

.PHONY: help build test lua-property-test lua-mutation-property-test lint lua-lint bench clean
.PHONY: help build test lua-property-test lua-mutation-property-test lint lua-lint bench-smoke bench clean

help: ## Show this help
@# FS uses [^#]* (not .*) so a description containing `##` isn't truncated.
Expand Down Expand Up @@ -57,7 +57,10 @@ lua-lint: ## Run luacheck over Lua sources and tests

BENCH_SCENARIOS := small medium github-100k 100k 200k 500k 1m 2m 5m 10m interleaved

bench: build vendor/lua-cjson/cjson.so ## Run each scenario in a fresh LuaJIT process
bench-smoke: build vendor/lua-cjson/cjson.so ## Run benchmark correctness smoke without timing
@$(LUA_ENV) $(RESTY) benches/lua_bench.lua --smoke

bench: bench-smoke build vendor/lua-cjson/cjson.so ## Run each scenario in a fresh LuaJIT process
@for s in $(BENCH_SCENARIOS); do \
$(LUA_ENV) $(RESTY) benches/lua_bench.lua $$s; \
done
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ Numbers from the same run as [`docs/benchmarks.md`](docs/benchmarks.md).
> numbers, and environment.

```sh
make bench-smoke # correctness smoke, no timing
make bench # qjson vs cjson and lua-resty-simdjson
```

Expand Down
Loading
Loading