Skip to content

Commit

Permalink
Now have pwrite and write tests. No big slowdown on either.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bradley C. Kuszmaul committed Jun 14, 2013
1 parent a41014d commit 2cdbba0
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 65 deletions.
3 changes: 3 additions & 0 deletions speedtest/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
*_hb
*_plain
*~
*.o
*.data
15 changes: 12 additions & 3 deletions speedtest/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
CFLAGS=-O3 -W -Wall -Werror
speedtest_plain: speedtest.o
$(CC) $(CFLAGS) -pthread $< -o $@
CFLAGS=-O3 -W -Wall -Werror -g -std=c99
TESTS = write pwrite
TARGETS = $(patsubst %,speed_%_plain,$(TESTS)) $(patsubst %,speed_%_hb,$(TESTS))
default: $(TARGETS)

%_plain: %.o
$(CXX) $(CFLAGS) -pthread $< -o $@
%_hb: %.o
$(CXX) $(CFLAGS) -pthread $< ../backup/Debug.gcc/libHotBackupGlassbox.a -ldl -lrt -o $@

clean:
rm -rf $(TARGETS) $(patsubst %,speed_%.o,$(TESTS))
31 changes: 0 additions & 31 deletions speedtest/pmprof_hb

This file was deleted.

31 changes: 0 additions & 31 deletions speedtest/pmprof_plain

This file was deleted.

File renamed without changes.

0 comments on commit 2cdbba0

Please sign in to comment.