{"action":"created","comment":{"url":"https://api.github.com/repos/vinniefalco/NuDB/pulls/comments/76892789","id":76892789,"diff_hunk":"@@ -0,0 +1,377 @@\n+//\n+// Copyright (c) 2015-2016 Vinnie Falco (vinnie dot falco at gmail dot com)\n+//\n+// Distributed under the Boost Software License, Version 1.0. (See accompanying\n+// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)\n+//\n+\n+#include<nudb/test/test_store.hpp>\n+\n+#if WITH_ROCKSDB\n+#include \"rocksdb/db.h\"\n+\n+char const* rocksdb_build_git_sha=\"Benchmark Dummy Sha\";\n+char const* rocksdb_build_compile_date=\"Benchmark Dummy Compile Date\";\n+#endif\n+\n+#include <boost/program_options.hpp>\n+#include <boost/system/system_error.hpp>\n+\n+#include <array>\n+#include <chrono>\n+#include <cmath>\n+#include <iomanip>\n+#include <map>\n+#include <memory>\n+#include <random>\n+#include <set>\n+#include <utility>\n+\n+struct Timer\n+{\n+    using clock = std::chrono::steady_clock;\n+    using time_point = clock::time_point;\n+    time_point start_;\n+\n+    Timer() : start_(clock::now())\n+    {\n+    }\n+\n+    auto\n+    elapsed() const\n+    {\n+        return std::chrono::duration_cast<std::chrono::duration<double>>(\n+            clock::now() - start_);\n+    }\n+};\n+\n+template <class Generator, class F>\n+std::chrono::duration<double>\n+time_block(std::uint64_t n, Generator&& g, F&& f)\n+{\n+    Timer timer;\n+    while(n--)\n+    {\n+        f(g());\n+    }\n+    return timer.elapsed();\n+}\n+\n+class gen_key_value\n+{\n+    nudb::test::test_store& ts_;\n+    std::uint64_t cur_;\n+\n+public:\n+    gen_key_value(nudb::test::test_store& ts,","path":"benchmark/benchmark.cpp","position":66,"original_position":66,"commit_id":"0035a84ee3795168c3a0c9ab69877ed4d48d5fa3","original_commit_id":"229249cdd9be9045cf09d5c85cbce20542ee2b76","user":{"login":"vinniefalco","id":1503976,"avatar_url":"https://avatars.githubusercontent.com/u/1503976?v=3","gravatar_id":"","url":"https://api.github.com/users/vinniefalco","html_url":"https://github.com/vinniefalco","followers_url":"https://api.github.com/users/vinniefalco/followers","following_url":"https://api.github.com/users/vinniefalco/following{/other_user}","gists_url":"https://api.github.com/users/vinniefalco/gists{/gist_id}","starred_url":"https://api.github.com/users/vinniefalco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinniefalco/subscriptions","organizations_url":"https://api.github.com/users/vinniefalco/orgs","repos_url":"https://api.github.com/users/vinniefalco/repos","events_url":"https://api.github.com/users/vinniefalco/events{/privacy}","received_events_url":"https://api.github.com/users/vinniefalco/received_events","type":"User","site_admin":false},"body":"Is this still needed? `test_store` provides the same functionality","created_at":"2016-08-30T22:35:47Z","updated_at":"2016-08-30T22:35:47Z","html_url":"https://github.com/vinniefalco/NuDB/pull/28#discussion_r76892789","pull_request_url":"https://api.github.com/repos/vinniefalco/NuDB/pulls/28","_links":{"self":{"href":"https://api.github.com/repos/vinniefalco/NuDB/pulls/comments/76892789"},"html":{"href":"https://github.com/vinniefalco/NuDB/pull/28#discussion_r76892789"},"pull_request":{"href":"https://api.github.com/repos/vinniefalco/NuDB/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/vinniefalco/NuDB/pulls/28","id":83347407,"html_url":"https://github.com/vinniefalco/NuDB/pull/28","diff_url":"https://github.com/vinniefalco/NuDB/pull/28.diff","patch_url":"https://github.com/vinniefalco/NuDB/pull/28.patch","issue_url":"https://api.github.com/repos/vinniefalco/NuDB/issues/28","number":28,"state":"open","locked":false,"title":"1.0.0-b4","user":{"login":"vinniefalco","id":1503976,"avatar_url":"https://avatars.githubusercontent.com/u/1503976?v=3","gravatar_id":"","url":"https://api.github.com/users/vinniefalco","html_url":"https://github.com/vinniefalco","followers_url":"https://api.github.com/users/vinniefalco/followers","following_url":"https://api.github.com/users/vinniefalco/following{/other_user}","gists_url":"https://api.github.com/users/vinniefalco/gists{/gist_id}","starred_url":"https://api.github.com/users/vinniefalco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinniefalco/subscriptions","organizations_url":"https://api.github.com/users/vinniefalco/orgs","repos_url":"https://api.github.com/users/vinniefalco/repos","events_url":"https://api.github.com/users/vinniefalco/events{/privacy}","received_events_url":"https://api.github.com/users/vinniefalco/received_events","type":"User","site_admin":false},"body":"Odds and ends\r\n\r\nReviewers: @miguelportilla @wilsonianb \r\n","created_at":"2016-08-30T21:06:43Z","updated_at":"2016-08-30T22:35:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f6ff65dc7c79026bcee9fb14d5a1c1f64cd27ebb","assignee":{"login":"miguelportilla","id":1524671,"avatar_url":"https://avatars.githubusercontent.com/u/1524671?v=3","gravatar_id":"","url":"https://api.github.com/users/miguelportilla","html_url":"https://github.com/miguelportilla","followers_url":"https://api.github.com/users/miguelportilla/followers","following_url":"https://api.github.com/users/miguelportilla/following{/other_user}","gists_url":"https://api.github.com/users/miguelportilla/gists{/gist_id}","starred_url":"https://api.github.com/users/miguelportilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miguelportilla/subscriptions","organizations_url":"https://api.github.com/users/miguelportilla/orgs","repos_url":"https://api.github.com/users/miguelportilla/repos","events_url":"https://api.github.com/users/miguelportilla/events{/privacy}","received_events_url":"https://api.github.com/users/miguelportilla/received_events","type":"User","site_admin":false},"assignees":[{"login":"miguelportilla","id":1524671,"avatar_url":"https://avatars.githubusercontent.com/u/1524671?v=3","gravatar_id":"","url":"https://api.github.com/users/miguelportilla","html_url":"https://github.com/miguelportilla","followers_url":"https://api.github.com/users/miguelportilla/followers","following_url":"https://api.github.com/users/miguelportilla/following{/other_user}","gists_url":"https://api.github.com/users/miguelportilla/gists{/gist_id}","starred_url":"https://api.github.com/users/miguelportilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miguelportilla/subscriptions","organizations_url":"https://api.github.com/users/miguelportilla/orgs","repos_url":"https://api.github.com/users/miguelportilla/repos","events_url":"https://api.github.com/users/miguelportilla/events{/privacy}","received_events_url":"https://api.github.com/users/miguelportilla/received_events","type":"User","site_admin":false},{"login":"wilsonianb","id":5885521,"avatar_url":"https://avatars.githubusercontent.com/u/5885521?v=3","gravatar_id":"","url":"https://api.github.com/users/wilsonianb","html_url":"https://github.com/wilsonianb","followers_url":"https://api.github.com/users/wilsonianb/followers","following_url":"https://api.github.com/users/wilsonianb/following{/other_user}","gists_url":"https://api.github.com/users/wilsonianb/gists{/gist_id}","starred_url":"https://api.github.com/users/wilsonianb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wilsonianb/subscriptions","organizations_url":"https://api.github.com/users/wilsonianb/orgs","repos_url":"https://api.github.com/users/wilsonianb/repos","events_url":"https://api.github.com/users/wilsonianb/events{/privacy}","received_events_url":"https://api.github.com/users/wilsonianb/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/vinniefalco/NuDB/pulls/28/commits","review_comments_url":"https://api.github.com/repos/vinniefalco/NuDB/pulls/28/comments","review_comment_url":"https://api.github.com/repos/vinniefalco/NuDB/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vinniefalco/NuDB/issues/28/comments","statuses_url":"https://api.github.com/repos/vinniefalco/NuDB/statuses/0035a84ee3795168c3a0c9ab69877ed4d48d5fa3","head":{"label":"vinniefalco:develop","ref":"develop","sha":"0035a84ee3795168c3a0c9ab69877ed4d48d5fa3","user":{"login":"vinniefalco","id":1503976,"avatar_url":"https://avatars.githubusercontent.com/u/1503976?v=3","gravatar_id":"","url":"https://api.github.com/users/vinniefalco","html_url":"https://github.com/vinniefalco","followers_url":"https://api.github.com/users/vinniefalco/followers","following_url":"https://api.github.com/users/vinniefalco/following{/other_user}","gists_url":"https://api.github.com/users/vinniefalco/gists{/gist_id}","starred_url":"https://api.github.com/users/vinniefalco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinniefalco/subscriptions","organizations_url":"https://api.github.com/users/vinniefalco/orgs","repos_url":"https://api.github.com/users/vinniefalco/repos","events_url":"https://api.github.com/users/vinniefalco/events{/privacy}","received_events_url":"https://api.github.com/users/vinniefalco/received_events","type":"User","site_admin":false},"repo":{"id":50840327,"name":"NuDB","full_name":"vinniefalco/NuDB","owner":{"login":"vinniefalco","id":1503976,"avatar_url":"https://avatars.githubusercontent.com/u/1503976?v=3","gravatar_id":"","url":"https://api.github.com/users/vinniefalco","html_url":"https://github.com/vinniefalco","followers_url":"https://api.github.com/users/vinniefalco/followers","following_url":"https://api.github.com/users/vinniefalco/following{/other_user}","gists_url":"https://api.github.com/users/vinniefalco/gists{/gist_id}","starred_url":"https://api.github.com/users/vinniefalco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinniefalco/subscriptions","organizations_url":"https://api.github.com/users/vinniefalco/orgs","repos_url":"https://api.github.com/users/vinniefalco/repos","events_url":"https://api.github.com/users/vinniefalco/events{/privacy}","received_events_url":"https://api.github.com/users/vinniefalco/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vinniefalco/NuDB","description":"NuDB: A fast key/value insert-only database for SSD drives","fork":false,"url":"https://api.github.com/repos/vinniefalco/NuDB","forks_url":"https://api.github.com/repos/vinniefalco/NuDB/forks","keys_url":"https://api.github.com/repos/vinniefalco/NuDB/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vinniefalco/NuDB/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vinniefalco/NuDB/teams","hooks_url":"https://api.github.com/repos/vinniefalco/NuDB/hooks","issue_events_url":"https://api.github.com/repos/vinniefalco/NuDB/issues/events{/number}","events_url":"https://api.github.com/repos/vinniefalco/NuDB/events","assignees_url":"https://api.github.com/repos/vinniefalco/NuDB/assignees{/user}","branches_url":"https://api.github.com/repos/vinniefalco/NuDB/branches{/branch}","tags_url":"https://api.github.com/repos/vinniefalco/NuDB/tags","blobs_url":"https://api.github.com/repos/vinniefalco/NuDB/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vinniefalco/NuDB/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vinniefalco/NuDB/git/refs{/sha}","trees_url":"https://api.github.com/repos/vinniefalco/NuDB/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vinniefalco/NuDB/statuses/{sha}","languages_url":"https://api.github.com/repos/vinniefalco/NuDB/languages","stargazers_url":"https://api.github.com/repos/vinniefalco/NuDB/stargazers","contributors_url":"https://api.github.com/repos/vinniefalco/NuDB/contributors","subscribers_url":"https://api.github.com/repos/vinniefalco/NuDB/subscribers","subscription_url":"https://api.github.com/repos/vinniefalco/NuDB/subscription","commits_url":"https://api.github.com/repos/vinniefalco/NuDB/commits{/sha}","git_commits_url":"https://api.github.com/repos/vinniefalco/NuDB/git/commits{/sha}","comments_url":"https://api.github.com/repos/vinniefalco/NuDB/comments{/number}","issue_comment_url":"https://api.github.com/repos/vinniefalco/NuDB/issues/comments{/number}","contents_url":"https://api.github.com/repos/vinniefalco/NuDB/contents/{+path}","compare_url":"https://api.github.com/repos/vinniefalco/NuDB/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vinniefalco/NuDB/merges","archive_url":"https://api.github.com/repos/vinniefalco/NuDB/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vinniefalco/NuDB/downloads","issues_url":"https://api.github.com/repos/vinniefalco/NuDB/issues{/number}","pulls_url":"https://api.github.com/repos/vinniefalco/NuDB/pulls{/number}","milestones_url":"https://api.github.com/repos/vinniefalco/NuDB/milestones{/number}","notifications_url":"https://api.github.com/repos/vinniefalco/NuDB/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vinniefalco/NuDB/labels{/name}","releases_url":"https://api.github.com/repos/vinniefalco/NuDB/releases{/id}","deployments_url":"https://api.github.com/repos/vinniefalco/NuDB/deployments","created_at":"2016-02-01T13:14:26Z","updated_at":"2016-08-29T13:53:01Z","pushed_at":"2016-08-30T21:11:44Z","git_url":"git://github.com/vinniefalco/NuDB.git","ssh_url":"git@github.com:vinniefalco/NuDB.git","clone_url":"https://github.com/vinniefalco/NuDB.git","svn_url":"https://github.com/vinniefalco/NuDB","homepage":null,"size":1234,"stargazers_count":25,"watchers_count":25,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":15,"forks":8,"open_issues":15,"watchers":25,"default_branch":"master"}},"base":{"label":"vinniefalco:master","ref":"master","sha":"64814a4aa58c8cbfee1eec9947bfeb683ec877a8","user":{"login":"vinniefalco","id":1503976,"avatar_url":"https://avatars.githubusercontent.com/u/1503976?v=3","gravatar_id":"","url":"https://api.github.com/users/vinniefalco","html_url":"https://github.com/vinniefalco","followers_url":"https://api.github.com/users/vinniefalco/followers","following_url":"https://api.github.com/users/vinniefalco/following{/other_user}","gists_url":"https://api.github.com/users/vinniefalco/gists{/gist_id}","starred_url":"https://api.github.com/users/vinniefalco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinniefalco/subscriptions","organizations_url":"https://api.github.com/users/vinniefalco/orgs","repos_url":"https://api.github.com/users/vinniefalco/repos","events_url":"https://api.github.com/users/vinniefalco/events{/privacy}","received_events_url":"https://api.github.com/users/vinniefalco/received_events","type":"User","site_admin":false},"repo":{"id":50840327,"name":"NuDB","full_name":"vinniefalco/NuDB","owner":{"login":"vinniefalco","id":1503976,"avatar_url":"https://avatars.githubusercontent.com/u/1503976?v=3","gravatar_id":"","url":"https://api.github.com/users/vinniefalco","html_url":"https://github.com/vinniefalco","followers_url":"https://api.github.com/users/vinniefalco/followers","following_url":"https://api.github.com/users/vinniefalco/following{/other_user}","gists_url":"https://api.github.com/users/vinniefalco/gists{/gist_id}","starred_url":"https://api.github.com/users/vinniefalco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinniefalco/subscriptions","organizations_url":"https://api.github.com/users/vinniefalco/orgs","repos_url":"https://api.github.com/users/vinniefalco/repos","events_url":"https://api.github.com/users/vinniefalco/events{/privacy}","received_events_url":"https://api.github.com/users/vinniefalco/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vinniefalco/NuDB","description":"NuDB: A fast key/value insert-only database for SSD drives","fork":false,"url":"https://api.github.com/repos/vinniefalco/NuDB","forks_url":"https://api.github.com/repos/vinniefalco/NuDB/forks","keys_url":"https://api.github.com/repos/vinniefalco/NuDB/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vinniefalco/NuDB/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vinniefalco/NuDB/teams","hooks_url":"https://api.github.com/repos/vinniefalco/NuDB/hooks","issue_events_url":"https://api.github.com/repos/vinniefalco/NuDB/issues/events{/number}","events_url":"https://api.github.com/repos/vinniefalco/NuDB/events","assignees_url":"https://api.github.com/repos/vinniefalco/NuDB/assignees{/user}","branches_url":"https://api.github.com/repos/vinniefalco/NuDB/branches{/branch}","tags_url":"https://api.github.com/repos/vinniefalco/NuDB/tags","blobs_url":"https://api.github.com/repos/vinniefalco/NuDB/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vinniefalco/NuDB/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vinniefalco/NuDB/git/refs{/sha}","trees_url":"https://api.github.com/repos/vinniefalco/NuDB/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vinniefalco/NuDB/statuses/{sha}","languages_url":"https://api.github.com/repos/vinniefalco/NuDB/languages","stargazers_url":"https://api.github.com/repos/vinniefalco/NuDB/stargazers","contributors_url":"https://api.github.com/repos/vinniefalco/NuDB/contributors","subscribers_url":"https://api.github.com/repos/vinniefalco/NuDB/subscribers","subscription_url":"https://api.github.com/repos/vinniefalco/NuDB/subscription","commits_url":"https://api.github.com/repos/vinniefalco/NuDB/commits{/sha}","git_commits_url":"https://api.github.com/repos/vinniefalco/NuDB/git/commits{/sha}","comments_url":"https://api.github.com/repos/vinniefalco/NuDB/comments{/number}","issue_comment_url":"https://api.github.com/repos/vinniefalco/NuDB/issues/comments{/number}","contents_url":"https://api.github.com/repos/vinniefalco/NuDB/contents/{+path}","compare_url":"https://api.github.com/repos/vinniefalco/NuDB/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vinniefalco/NuDB/merges","archive_url":"https://api.github.com/repos/vinniefalco/NuDB/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vinniefalco/NuDB/downloads","issues_url":"https://api.github.com/repos/vinniefalco/NuDB/issues{/number}","pulls_url":"https://api.github.com/repos/vinniefalco/NuDB/pulls{/number}","milestones_url":"https://api.github.com/repos/vinniefalco/NuDB/milestones{/number}","notifications_url":"https://api.github.com/repos/vinniefalco/NuDB/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vinniefalco/NuDB/labels{/name}","releases_url":"https://api.github.com/repos/vinniefalco/NuDB/releases{/id}","deployments_url":"https://api.github.com/repos/vinniefalco/NuDB/deployments","created_at":"2016-02-01T13:14:26Z","updated_at":"2016-08-29T13:53:01Z","pushed_at":"2016-08-30T21:11:44Z","git_url":"git://github.com/vinniefalco/NuDB.git","ssh_url":"git@github.com:vinniefalco/NuDB.git","clone_url":"https://github.com/vinniefalco/NuDB.git","svn_url":"https://github.com/vinniefalco/NuDB","homepage":null,"size":1234,"stargazers_count":25,"watchers_count":25,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":15,"forks":8,"open_issues":15,"watchers":25,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vinniefalco/NuDB/pulls/28"},"html":{"href":"https://github.com/vinniefalco/NuDB/pull/28"},"issue":{"href":"https://api.github.com/repos/vinniefalco/NuDB/issues/28"},"comments":{"href":"https://api.github.com/repos/vinniefalco/NuDB/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/vinniefalco/NuDB/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/vinniefalco/NuDB/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vinniefalco/NuDB/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/vinniefalco/NuDB/statuses/0035a84ee3795168c3a0c9ab69877ed4d48d5fa3"}}}}
{"actor":{"display_login":"vinniefalco"}}