Coder Social home page Coder Social logo

speed question/issue about jsonexport HOT 4 OPEN

kaue avatar kaue commented on July 30, 2024 1
speed question/issue

from jsonexport.

Comments (4)

m-prof avatar m-prof commented on July 30, 2024 1

Thanks. Not sure if this is sufficient but here is the output (there was a bunch of error messages also as well, let me know if I should post):

npm\node_modules\jsonexport\benchmark>node benchmark.js
Executed benchmark against node module: "jsonexport"
Count (1), Cycles (1), Elapsed (512.53 sec), Hz (0.00975936285335975 ops/sec)

Executed benchmark against node module: "jsonexport-stream"
Count (1), Cycles (1), Elapsed (10.388 sec), Hz (0.8795467729800702 ops/sec)

PS There were two output files (out.csv and out-no-streams.csv), the converted version of data.json. I can post them though they look fine!

from jsonexport.

kaue avatar kaue commented on July 30, 2024

@m-prof can you try running the benchmark/benchmark.js?

from jsonexport.

m-prof avatar m-prof commented on July 30, 2024

Sorry for being a noob but I am not getting this to work: I am trying ~\jsonexport\benchmark>node benchmark.js from a command prompt and I get error messages:

internal/modules/cjs/loader.js:976
  throw err;
  ^

Error: Cannot find module 'benchmark'
Require stack:
- \npm\node_modules\jsonexport-master\benchmark\benchmark.js
�[90m    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:973:15)�[39m
�[90m    at Function.Module._load (internal/modules/cjs/loader.js:855:27)�[39m
�[90m    at Module.require (internal/modules/cjs/loader.js:1033:19)�[39m
�[90m    at require (internal/modules/cjs/helpers.js:72:18)�[39m
    at Object.<anonymous> (\npm\node_modules\�[4mjsonexport-master�[24m\benchmark\benchmark.js:3:17)
�[90m    at Module._compile (internal/modules/cjs/loader.js:1144:30)�[39m
�[90m    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1164:10)�[39m
�[90m    at Module.load (internal/modules/cjs/loader.js:993:32)�[39m
�[90m    at Function.Module._load (internal/modules/cjs/loader.js:892:14)�[39m
�[90m    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)�[39m {
  code: �[32m'MODULE_NOT_FOUND'�[39m,
  requireStack: [
    �[32m'\\npm\\node_modules\\jsonexport-master\\benchmark\\benchmark.js'�[39m
  ]
}

I assume I am not executing this correctly!

from jsonexport.

kaue avatar kaue commented on July 30, 2024

@m-prof you are almost there :)
try running npm install first

from jsonexport.

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.