From 8a4664ac4c0e3c68a6a32bf451d35452c9409f2b Mon Sep 17 00:00:00 2001 From: Polesznyák Márk Date: Tue, 14 Apr 2026 10:45:32 +0200 Subject: feat: mmap + multithreading, down to 7s on i5 9400f --- Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 2a5eda8..6eb9b92 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,18 @@ -1brc: main.ha hashmap.ha - hare build -o 1brc . +JOBS ?= $(shell nproc) + +1brc: main.ha hashmap.ha pthread.ha + hare build -D JOBS=$(JOBS) -lpthread -j $(JOBS) -o 1brc . measurements.txt: ./generate.py 1_000_000_000 +run: 1brc measurements.txt + ./1brc + clean: rm -f 1brc check: hare test -.PHONY: clean check +.PHONY: run clean check -- cgit v1.2.3