{"issue":{"pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"state":"open","user":{"avatar_url":"https://secure.gravatar.com/avatar/1fa6d78ebf3b578a3f1c8f84d1482b31?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"1fa6d78ebf3b578a3f1c8f84d1482b31","url":"https://api.github.com/users/pitulloz","login":"pitulloz","id":98052},"milestone":null,"labels":[],"assignee":null,"updated_at":"2011-11-14T03:29:11Z","comments":0,"closed_at":null,"url":"https://api.github.com/repos/shuttler/nessDB/issues/16","body":"patch for src/db.c\r\n\r\n```\r\n41c41,43\r\n< #include <pthread.h>\r\n---\r\n> #ifdef _WIN32\r\n> #include <direct.h>\r\n> #endif\r\n77a80,82\r\n> \t\t#ifdef _WIN32\r\n> \t\t_mkdir(DB_DIR);\r\n> \t\t#else\r\n78a84\r\n> \t\t#endif\r\n```\r\n\r\nadd src/build.bat\r\n\r\n<pre>\r\n@echo off\r\ngcc -std=c99 -pedantic -Wall -Wextra -Os -c db.c\r\ngcc -std=c99 -pedantic -Wall -Wextra -Os -c ht.c\r\ngcc -std=c99 -pedantic -Wall -Wextra -Os -c level.c\r\ngcc -std=c99 -pedantic -Wall -Wextra -Os -c llru.c\r\ngcc -std=c99 -pedantic -Wall -Wextra -Os -c storage.c\r\nar -rcs -o libnessdb.a db.o ht.o level.o llru.o storage.o\r\ngcc -std=c99 -pedantic -Wall -Wextra -Os -c nessdb-bench.c\r\ngcc -s -o nessdb-bench nessdb-bench.o libnessdb.a -lws2_32\r\nnessdb-bench add\r\n\r\nrem test on Compaq Presario CQ42, CPU: Intel core i3 M 350 @ 2.27GHz, OS: Windows 7 64-bit\r\nrem random write performance increase from 6.3 MB/sec (version 1.7) to 6.5 MB/sec\r\n\r\nrem D:\\local\\nessDB-1.8\\src>nessdb-bench add\r\nrem Keys:           16 bytes each\r\nrem Values:         80 bytes each\r\nrem Entries:        2000000\r\nrem IndexSize:      45.8 MB (estimated)\r\nrem DataSize:       160.2 MB (estimated)\r\nrem --------------------------------------------------------------------------------------------------------------\r\nrem nessDB:         version 1.8(Multiple && Distributable B+Tree with Level-LRU,Page-Cache)\r\nrem Date:           Mon Nov 14 10:00:32 2011\r\nrem +-----------------------+---------------------------+----------------------------------+---------------------+\r\nrem |Random-Write   (done:1999999): 0.000016 sec/op; 62971.3 writes/sec(estimated); 6.5 MB/sec; cost:31.760(sec)\r\nrem +-----------------------+---------------------------+----------------------------------+---------------------+\r\nrem |Random-Read    (found:20000): 0.000009 sec/op; 106837.0 reads /sec(estimated); 11.0 MB/sec; cost:0.187(sec)\r\nrem +-----------------------+---------------------------+----------------------------------+---------------------+\r\nrem |Seq-Read       (found:20000): 0.000009 sec/op; 106837.6 reads /sec(estimated); 11.0 MB/sec; cost:0.187(sec)\r\nrem +-----------------------+---------------------------+----------------------------------+---------------------+\r\n\r\n</pre>","html_url":"https://github.com/shuttler/nessDB/issues/16","title":"Quick patch to build nessdb-bench on windows, I include result too.","number":16,"id":2224735,"created_at":"2011-11-14T03:29:11Z"},"action":"opened"}