Giter VIP home page Giter VIP logo

Comments (8)

hjyssg avatar hjyssg commented on June 2, 2024 2

参考batchInsert() 超级快

[batchInsert] file_table 52724 2068ms
[batchInsert] tag_table 113603 1820ms

from shigureader.

hjyssg avatar hjyssg commented on June 2, 2024 1

不知道从sqlite迁移到mysql,性能会提升多少

from shigureader.

hjyssg avatar hjyssg commented on June 2, 2024 1

优化后的insertion表现

//时间秒/文件数
console.log("hdd without insertion")
console.log(1.139/1903*10000)
console.log(1.306/1903*10000)
console.log(1.184/1903*10000)


console.log("hdd")
console.log(1.184/1903*10000)
console.log(1.155/1903*10000)
console.log(1.124/1903*10000)


console.log("ssd")
console.log(1.586/2490*10000)
console.log(1.598/2490*10000)
console.log(1.525/2490*10000)

结论:scan的时候,固态和普通硬盘无差别
大约1000个文件,需要6.1秒

from shigureader.

hjyssg avatar hjyssg commented on June 2, 2024 1

优化后的insertion表现

无insertion
[chokidar] 1.699s scan complete. 2785
[chokidar] 1.847s scan complete. 2785
[chokidar] 1.769s scan complete. 2785

有insertion
[chokidar] 2.161s scan complete. 2785
[chokidar] 2.064s scan complete. 2785
[chokidar] 2.149s scan complete. 2785

from shigureader.

hjyssg avatar hjyssg commented on June 2, 2024

https://www.sqlite.org/speed.html

from shigureader.

hjyssg avatar hjyssg commented on June 2, 2024

https://www.cnblogs.com/hchxxzx/archive/2011/10/17/2215797.html
https://blog.csdn.net/talkingmute/article/details/104089049

from shigureader.

hjyssg avatar hjyssg commented on June 2, 2024

image

from shigureader.

hjyssg avatar hjyssg commented on June 2, 2024

原来sort性能比_.sortBy强好多啊

https://www.measurethat.net/Benchmarks/Show/14335/0/sortby-vs-js-sort

from shigureader.

Related Issues (20)

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.