Skip to content

Commit

Permalink
New release: 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielfalcao committed Aug 27, 2017
1 parent 2855db5 commit 430f23f
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
44 changes: 44 additions & 0 deletions benchmark.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# <Plural - Git-powered graph database library>
# Copyright (C) <2017> Gabriel Falcão <gabriel@nacaolivre.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# import time
# import json
from plural import Plural
from plural import Edge
# from plural import codec

# from datetime import datetime


class Tag(Edge):
indexes = {'name'}


def run_benchmark(item_count, commit_every_create=False):
store = Plural('benchmark-{}'.format(item_count))

for x in range(item_count):
name = bytes(x)
store.create(Tag, name=name)
if commit_every_create:
store.commit()

store.commit()


run_benchmark(10000, False)
2 changes: 1 addition & 1 deletion plural/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = '0.1.2'
version = '0.2.0'

0 comments on commit 430f23f

Please sign in to comment.