Skip to content

typeorm benchmark requires _edgedb_js to be setup #53

@marcj

Description

@marcj

I wasn't able to setup edgedb_js (see previously created issues), so I thought at least I can run typeorm benchmark, but that fails:

$ python3 bench.py --query insert_movie --query get_movie --query get_user --concurrency 1 --duration 10 --net-latency 1 --html docs/js.html --json docs/js.json typeorm
============ JS ============
concurrency:	1
warmup time:	5 seconds
duration:	10 seconds
queries:	insert_movie, get_movie, get_user
benchmarks:	typeorm

Running benchmark...
/Users/marc/bude/imdbench/jsbench.js --concurrency 1 --duration 10 --timeout 2 --warmup-time 5 --output-format json --host 127.0.0.1 --nsamples 10 --number-of-ids 250 --query insert_movie --port 15432 typeorm
node:internal/modules/cjs/loader:936
  throw err;
  ^

Error: Cannot find module './querybuilder'
Require stack:
- /Users/marc/bude/imdbench/_edgedb_js/qb_queries.js
- /Users/marc/bude/imdbench/_edgedb_js/index.js
- /Users/marc/bude/imdbench/jsbench.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/Users/marc/bude/imdbench/_edgedb_js/qb_queries.js:5:11)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/marc/bude/imdbench/_edgedb_js/qb_queries.js',
    '/Users/marc/bude/imdbench/_edgedb_js/index.js',
    '/Users/marc/bude/imdbench/jsbench.js'
  ]
}

Traceback (most recent call last):
  File "/Users/marc/bude/imdbench/bench_js.py", line 171, in <module>
    main()
  File "/Users/marc/bude/imdbench/bench_js.py", line 137, in main
    res = run_bench(ctx, benchmark)
  File "/Users/marc/bude/imdbench/bench_js.py", line 111, in run_bench
    res = run_query(ctx, benchmark, queryname)
  File "/Users/marc/bude/imdbench/bench_js.py", line 80, in run_query
    proc = subprocess.run(
  File "/opt/homebrew/Cellar/python@3.9/3.9.7_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/Users/marc/bude/imdbench/jsbench.js', '--concurrency', '1', '--duration', '10', '--timeout', '2', '--warmup-time', '5', '--output-format', 'json', '--host', '127.0.0.1', '--nsamples', '10', '--number-of-ids', '250', '--query', 'insert_movie', '--port', '15432', 'typeorm']' returned non-zero exit status 1.
Traceback (most recent call last):
  File "/Users/marc/bude/imdbench/bench.py", line 347, in <module>
    sys.exit(main())
  File "/Users/marc/bude/imdbench/bench.py", line 318, in main
    benchmarks_data = run_benchmarks(args, argv)
  File "/Users/marc/bude/imdbench/bench.py", line 249, in run_benchmarks
    subprocess.run(
  File "/opt/homebrew/Cellar/python@3.9/3.9.7_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['python', 'bench_js.py', '--json', '__tmp.json', '--query', 'insert_movie', '--query', 'get_movie', '--query', 'get_user', '--concurrency', '1', '--duration', '10', '--net-latency', '1', 'typeorm']' returned non-zero exit status 1.

why is edgedb_js required for typeorm?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions