Coder Social home page Coder Social logo

tispace's Introduction

TiSpace

TiSpace is a tool to estimate the space usage in TiDB in 2 ways.

  • Memory usage for large transaction.
  • Disk usage for table.

Usage Examples

» ./tispace -rows=100000000 -sample=10000 -schema tests/sysbench.sql -drop-value=false -mode=insert
sample 10000 lines cost 62.134416ms, 6.213µs per row
insert 100000000 rows with memory cost: 23.38GB(25100000000 bytes)

» ./tispace -rows=100000000 -sample=10000 -schema tests/sysbench.sql -drop-value=false -mode=update
sample 10000 lines cost 50.446875ms, 5.044µs per row
update 100000000 rows with memory cost: 26.92GB(28900000000 bytes)

» ./tispace -rows=100000000 -sample=10000 -schema tests/sysbench.sql -drop-value=false -mode=delete
sample 10000 lines cost 25.925083ms, 2.592µs per row
delete 100000000 rows with memory cost: 5.22GB(5600000000 bytes)

» ./tispace -rows=100000000 -sample=10000 -schema tests/sysbench.sql -drop-value=true -mode=insert
sample 10000 lines cost 62.692875ms, 6.269µs per row
drop 20000 keys cost 4.136875ms
insert 100000000 rows with memory cost: 5.22GB(5600000000 bytes)

» ./tispace -rows=100000000 -sample=10000 -schema tests/sysbench.sql -drop-value=true -mode=update
sample 10000 lines cost 41.03ms, 4.103µs per row
drop 30000 keys cost 6.6055ms
update 100000000 rows with memory cost: 8.66GB(9300000000 bytes)

» ./tispace -rows=100000000 -sample=10000 -schema tests/sysbench.sql -drop-value=true -mode=delete
sample 10000 lines cost 29.423041ms, 2.942µs per row
drop 20000 keys cost 3.471666ms
delete 100000000 rows with memory cost: 5.22GB(5600000000 bytes)

tispace's People

Contributors

you06 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.