summaryrefslogtreecommitdiff
path: root/tools/benchmark.py
AgeCommit message (Collapse)Author
2020-08-28Move benchmarks to Rust (#7134)Valentin Anger
All benchmarks are done in Rust and can be invoked with `cargo bench`. Currently this has it's own "harness" that behaves like `./tools/benchmark.py` did. Because of this tests inside `cli/bench` are currently not run. This should be switched to the language provided harness once the `#[bench]` attribute has been stabilized.
2020-07-20fix benchmark_test (#6814)Ryan Dahl
2020-07-08feat: add --no-check option (#6456)Kitson Kelly
This commit adds a "--no-check" option to following subcommands: - "deno cache" - "deno info" - "deno run" - "deno test" The "--no-check" options allows to skip type checking step and instead directly transpiles TS sources to JS sources. This solution uses `ts.transpileModule()` API and is just an interim solution before implementing it fully in Rust.
2020-07-06Remove test_server dependency from benchmarks (#6645)Ryan Dahl
2020-07-04chore: port http_server.py to rust (#6364)Ryan Dahl
2020-05-21ci: Errors in benchmarks should fail CI (#5422)Colin Harrington
2020-05-11fix: worker benchmarks (#5227)Bartek Iwańczuk
2020-05-04BREAKING: remove CLI 'deno script.ts' hack (#5026)Bartek Iwańczuk
This PR removes the hack in CLI that allows to run scripts with shorthand: deno script.ts. Removing this functionality because it hacks around short-comings of clap our CLI parser. We agree that this shorthand syntax is desirable, but it needs to be rethinked and reimplemented. For 1.0 we should go with conservative approach that is correct.
2020-04-30Unstable methods should not appear in runtime or d.ts (#4957)Luca Casonato
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2020-03-20Remove DENO_BUILD_MODE and DENO_BUILD_PATH (#4431)Ryan Dahl
* Remove DENO_BUILD_MODE and DENO_BUILD_PATH Also remove outdated docs related to ninja/gn. * fix * remove parameter to build_mode() * remove arg parsing from benchmark.py
2020-03-19perf: Optimize TextEncoder and TextDecoder (#4430)Bartek Iwańczuk
* add tests for "Deno.core.encode" and "Deno.core.decode" for empty inputs * use "Deno.core.encode" in "TextEncoder" * use "Deno.core.decode" in "TextDecoder" * remove "core_decode" and "core_encode" benchmarks
2020-03-15feat: Deno.core.{encode,decode}; standalone UTF-8 encoding/decoding (#4349)Bartek Iwańczuk
This commits add two new methods to "Deno.core" namespace: "encode" and "decode". Those methods are bound in Rust to provide a) fast b) generally available of encoding and decoding UTF-8 strings. Both methods are now used in "cli/js/dispatch_json.ts".
2020-02-02Remove //tests symlink (#3849)Luka Hartwig
2020-01-29feat: dprint formatter (#3820)Bartek Iwańczuk
* rewrite fmt_test in Rust, remove tools/fmt_test.py * remove //std/prettier
2020-01-20Fix bug in strace parser (#3720)Ry Dahl
Co-authored-by: @kt3k
2020-01-18Debug strace issue (#3706)Ry Dahl
2020-01-16add "deno fetch" benchmarks (#3688)Bartek Iwańczuk
2020-01-04Added textencoder benchmark (#3589)Luca Casonato
2020-01-02Happy new year! (#3578)Ry Dahl
2019-11-13Make bundles fully standalone (#3325)Kitson Kelly
- Bundles are fully standalone. They now include the shared loader with `deno_typescript`. - Refactor of the loader in `deno_typescript` to perform module instantiation in a more - Change of behaviour when an output file is not specified on the CLI. Previously a default name was determined and the bundle written to that file, now the bundle will be sent to `stdout`. - Refactors in the TypeScript compiler to be able to support the concept of a request type. This provides a cleaner abstraction and makes it easier to support things like single module transpiles to the userland. - Remove a "dangerous" circular dependency between `os.ts` and `deno.ts`, and define `pid` and `noColor` in a better way. - Don't bind early to `console` in `repl.ts`. - Add an integration test for generating a bundle.
2019-10-28Move prebuilt binaries to third_party (#3227)Ry Dahl
2019-10-22Add TextDecoder benchmark (#3180)Ry Dahl
2019-10-06refactor benchmark results posting (#3076)Christian Moritz
2019-10-04Move deno_std to a more convenient location. (#3057)Ryan Dahl
js/deps/https/deno.land/std -> js/std
2019-09-20dial/listen API change (#3000)Ryan Dahl
Previously: dial("tcp", "deno.land:80") Now: dial({ hostname: "deno.land", port: 80, transport: "tcp" }) Similarly with listen().
2019-09-15tools: do not use 'find_exts()' in benchmarks.py (#2950)Bert Belder
2019-09-15tools: clean up third_party.py, and merge prebuilt.py into it (#2950)Bert Belder
* Remove reference to removed dir 'third_party/rust_crates'. * Remove reference to unused environment variable 'DENO_NINJA_PATH'. * Remove helper functions 'root()' and 'tp()'. * Move definition of 'third_party_path' to build.py. * Move definition of 'gn_exe()' to setup.py. * Move 'download_sccache()' and 'download_hyperfine()' from prebuilt.py to third_party.py, and delete prebuilt.py. * Add helper function 'get_platform_dir_name()' to locate the platform-specific 'v8/buildtools/<platform>' and 'prebuilt/<platform>' directories. * Add helper function 'get_prebuilt_tool_path()' that returns the full path to a platform-specific executable in //prebuilt. * Cosmetic improvements.
2019-09-11Upgrade pylint (#2917)Ryan Dahl
depot_tools is removing pylint from its distribution so we must maintain our own copy.
2019-09-02Refactor snapshot build (#2825)Ryan Dahl
Instead of using core/snapshot_creator.rs, instead two crates are introduced which allow building the snapshot during build.rs. Rollup is removed and replaced with our own bundler. This removes the Node build dependency. Modules in //js now use Deno-style imports with file extensions, rather than Node style extensionless imports. This improves incremental build time when changes are made to //js files by about 40 seconds.
2019-07-28benchmarks: add bundle size (#2690)Bartek Iwańczuk
2019-06-08make tests quieter (#2468)Andy Hayden
Don't mix every http request in with the tests output. Don't print that the file servers are starting unless -vv flag is passed. Capture the output of run with run_output which returns stdout, stderr and exit_code. Test against this rather than relying on sys.exit.
2019-05-03add "deno run" subcommand (#2215)Bartek Iwańczuk
2019-04-17benchmarks: improve syscall and thread count (#2140)Ryan Dahl
2019-04-17benchmarks: fix max_memory and clean up (#2137)Ryan Dahl
2019-04-16Add max memory benchmark (#2061)Dmitry Sharshakov
2019-04-07Refactor CLI flag parsing (#2025)Bartek Iwańczuk
2019-04-05Add worker benchmarks (#2059)andy finch
2019-03-30Move //libdeno to //core/libdeno (#2015)Ryan Dahl
Fixes some sed errors introduced in c43cfe. Unfortunately moving libdeno required splitting build.rs into two parts, one for cli and one for core. I've also removed the arm64 build - it's complicating things at this re-org and we're not even testing it. I need to swing back to it and get tools/test.py running for it.
2019-03-28Merge the --recompile and --reload flags (#2003)Ryan Dahl
2019-03-24Add benchmark for max latency (#1975)Bernard Lin
2019-02-26deno_core (#1827)Ryan Dahl
A new low-level crate with focus on speed. This doesn't yet hook into the existing code base.
2019-02-14Use prebuilt hyperfine (#1755)Ryan Dahl
2019-02-11fix: improve formatting (#1732)Yoshiya Hinosawa
2019-01-30Add snapshot_compiler.bin to binary size benchmark (#1611)Ryan Dahl
2019-01-02Happy new year!Ryan Dahl
2018-12-18travis: Set CARGO_HOME to third_party/rust_crates (#1370)Ryan Dahl
Adds prebuilt hyperfine and sccache binaries Only build test_cc for LSAN Add Cargo.lock Only run benchmarks in master
2018-11-30Use pylint.Ryan Dahl
2018-10-25Add error_001.ts to execution time benchmarks.Ryan Dahl
Ref #1087
2018-10-20Add Rust hyper http benchmark (#1043)Kevin (Kun) "Kassimo" Qian
* Add go net/http benchmark * Forget about Go. Let's do Rust Hyper * Update BUILD.gn * Rename
2018-10-20feat: show only 20 benchmark data in inde.htmlYoshiya Hinosawa