Coder Social home page Coder Social logo

woals / memtest Goto Github PK

View Code? Open in Web Editor NEW

This project forked from luozijun/memtest

0.0 2.0 0.0 138 KB

不同语言的内存消耗测试

License: GNU General Public License v3.0

C 8.51% JavaScript 5.12% Go 8.65% Java 18.99% OCaml 25.81% PHP 10.91% Python 7.33% Rust 8.04% Swift 6.63%

memtest's Introduction

不同语言的内存消耗测试

Date: 2015/08/08

Rust, Java, Golang, OCaml, Swift(Apple), Python, PHP

存储一个从 0 至 99999999 的整数列表。

[0, 1, 2, 3, 4, 5, 6 .... 99999999]

  1. Rust ( ~=300MB )
  2. Java ( version: 1.7, ~=387MB )
  3. Golang ( ~=747MB )
  4. Swift ( ~=1GB )
  5. OCaml ( Runtime: ~=2.3GB, Binary: ~=1.7GB )
  6. Python ( ~=3.0GB )
  7. PHP ( ~= 13.7GB, Times: 17s - 24s )
  8. Fibjs ( 测试失败, 编译器直接报错 )
  9. C ( 测试失败, 编译成功,执行时出现[内存区段错误提示] )

memtest's People

Contributors

luozijun avatar xiilei avatar

Watchers

James Cloos avatar Zhenfei Gu 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.