1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-30 11:16:38 -05:00
Commit graph

1573 commits

Author SHA1 Message Date
Ryan Dahl
bb9a927bd5 Add yapf to third_party. 2018-10-21 13:59:53 -07:00
Bert Belder
ef77d6f553
third_party: add the right rustfmt.exe binary 2018-10-21 20:30:16 +02:00
Kyra
fbb3f05b6f Add URLSearchParams (#1049) 2018-10-21 08:07:29 -07:00
Kevin (Kun) "Kassimo" Qian
86409eb836 Add Rust hyper http benchmark (#1043)
* Add go net/http benchmark

* Forget about Go. Let's do Rust Hyper

* Update BUILD.gn

* Rename
2018-10-20 19:56:16 -07:00
Ryan Dahl
c85311dd7d v0.1.9
- Performance and stability improvements on all platforms.
- Add cwd() and chdir() #907
- Specify deno_dir location with env var DENO_DIR #970
- Make fetch() header compliant with the current spec #1019
- Upgrade TypeScript to 3.1.3
- Upgrade V8 to 7.1.302.4
2018-10-20 17:30:17 -07:00
Ryan Dahl
bcf10bcf27 Upgrade V8 to 7.1.302.4 2018-10-20 16:30:02 -07:00
Ryan Dahl
92b0a94c23 Optimization: eager accept 2018-10-20 12:39:56 -07:00
Ryan Dahl
aac9e204b7 Optimization: eager write 2018-10-20 12:39:56 -07:00
Ryan Dahl
2c33334d28 Optimization: eager read
TCP sockets should attempt the non-blocking read in the main thread.
2018-10-20 12:39:56 -07:00
Ryan Dahl
2af25b1957 Allow partial writes.
Do not use tokio_io::io:write_all().
Adds src/tokio_write.rs
2018-10-20 12:39:56 -07:00
Ryan Dahl
f18a349fdf Windows: dont use ts-node symlinked path 2018-10-20 12:09:22 -07:00
Kevin (Kun) "Kassimo" Qian
c0f70ea868 y label fix 2018-10-20 12:55:42 -04:00
Yoshiya Hinosawa
f44ecdff97 feat: show only 20 benchmark data in inde.html 2018-10-20 08:07:20 -04:00
Bert Belder
edb7b609f2
build: clean up the gn template for rust targets a bit 2018-10-20 07:20:07 +02:00
Ryan Dahl
00884d7164 Add rustfmt to third_party. 2018-10-20 01:19:59 -04:00
Ryan Dahl
09e011b389 Format. 2018-10-20 01:19:59 -04:00
ztplz
826c2f4dac fix some typo in Docs.md 2018-10-20 01:11:05 -04:00
Andy Hayden
2d583f85ee Exit http_server.py if it's crashed 2018-10-20 00:27:37 -04:00
Bert Belder
3a6b2f3c71
build: make rollup generate a depfile for the bundle build 2018-10-20 03:42:45 +02:00
Ryan Dahl
6e6deed12d Upgrade crates 2018-10-19 21:42:23 -04:00
Ryan Dahl
428fc450eb Upgrade node_modules. 2018-10-19 21:42:23 -04:00
Ryan Dahl
842a087d51 Add style to benchmark page 2018-10-19 21:36:07 -04:00
Ryan Dahl
b5d7e38f9b Add Docs.md
Remove stuff from Roadmap that has been implemented.
2018-10-19 21:36:07 -04:00
Ryan Dahl
8f9d407e22 Sort ops. 2018-10-19 21:36:07 -04:00
Ryan Dahl
1cfa41920e Disable warning on linux. 2018-10-19 21:35:10 -04:00
ztplz
b809a82fd9 Add missing copyrights (#1024) 2018-10-19 15:25:29 -04:00
ztplz
7210e7b33b Make fetch header compliant with the current spec (#1019) 2018-10-19 12:12:36 -04:00
J2P
198fa31ec1 Fix a typo in http_benchmark.py 2018-10-19 09:07:55 -04:00
Bert Belder
142e532910
libdeno: store v8::Persistent in map by value instead of by reference 2018-10-19 02:35:49 +02:00
Bert Belder
d0b859ec37
format 2018-10-19 00:29:09 +02:00
Ryan Dahl
d534ea41ad Optimization: Use std::map for tracking zero-copy buffers
Instead of V8 map.
2018-10-18 17:49:03 -04:00
Bartek Iwańczuk
3a226f166f add test case for metrics 2018-10-18 05:08:49 -04:00
Bartek Iwańczuk
fd2bb015c7 fix metrics logic 2018-10-18 05:08:49 -04:00
Ryan Dahl
213885a9d0 Optimization: Reuse ArrayBuffer during serialization. 2018-10-17 20:20:06 -04:00
Ryan Dahl
4e2e185de7 Add tools/build_test.py 2018-10-17 20:20:06 -04:00
Ryan Dahl
4d669c63f4 Reduce ArrayBuffer allocations in ImportBuf() 2018-10-17 16:02:00 -04:00
Ryan Dahl
21bcdd49cd Only run deno during ./tools/http_benchmark.py 2018-10-17 16:02:00 -04:00
Jinho Bang
32f0797128 Fix a bug that copyFile reports different error codes
This is a workaroud. Once the issue is resolved in Rust side, we should
remove it.

Fixes #895
2018-10-17 08:24:31 -04:00
Yoshiya Hinosawa
d4afbe6ef3 improve benchmark page performance and fix test (#1002) 2018-10-16 12:00:47 -04:00
Amos Lim
a90cf4c2ee Interrupt http_server.py by ctrl + c (#1001) 2018-10-16 11:54:08 -04:00
Ryan Dahl
c61a0f2f84 First pass at http benchmark. 2018-10-16 09:37:38 -04:00
Ryan Dahl
62962e71fe Fix throughput_benchmark 2018-10-16 09:37:38 -04:00
Ryan Dahl
590feb1c71 Format 2018-10-16 09:37:38 -04:00
Jinho Bang
1322f3de9f deno -v should report typescript version
Fixes #993
2018-10-15 22:16:55 -04:00
Andy Hayden
fb90c6f525 Exit cleanly on unrecognized arguments (#990)
Refactor set_flags to return a Result
2018-10-15 14:26:22 -04:00
Jinho Bang
28682a1d2c Fix a binary size regression
This patch changes Jumbo build to use only in debug mode.
2018-10-15 14:22:15 -04:00
Kitson Kelly
25c97962f4 Update to TypeScript 3.1 and ts-simple-ast 17 (#980) 2018-10-15 12:47:48 -04:00
Jinho Bang
dc8841d8a9 Improve build performance by using jumbo build
The Jumbo build is the Chromium implementation of a Unity build system
aimed at dramatically lowering the compilation times. It can be easily
enabled with `use_jumbo_build=true`.

When you enable this, the biggest problem is that name conflicts can
occur between multiple c++ files merged, which is no problem for `deno`.
Because the V8's Jumbo build is managed in upstream, and `deno` will
just pick up a stable build V8.

So, this patch enables Jumbo build by default. After this patch, the
total number of build objects are halved. (1014 -> 493)

FYI, the following results are tested in my local environment.
 - IMAC 5K, i5 4-cores, 24GB, 512GB SSD

Test result1: No use ccache
|   |Jumbo build without ccache|Normal build without ccache|
|---|--------------------------|---------------------------|
| 1 |         0:05:26          |          0:11:31          |
| 2 |         0:05:24          |          0:11:29          |
| 3 |         0:05:25          |          0:11:28          |
| 4 |         0:05:24          |          0:11:29          |
| 5 |         0:05:26          |          0:11:29          |
|AVG|         0:05:25          |          0:11:29          |

Test result2: Use ccache
|   |Jumbo build with ccache|Normal build with ccache|
|---|-----------------------|------------------------|
| 1 |        0:01:38        |        0:01:13         |
| 2 |        0:01:45        |        0:01:21         |
| 3 |        0:01:39        |        0:02:20         |
| 4 |        0:01:45        |        0:02:16         |
| 5 |        0:01:42        |        0:02:19         |
| 6 |        0:01:17        |        0:01:11         |
| 7 |        0:01:01        |        0:01:48         |
| 8 |        0:00:54        |        0:01:57         |
| 9 |        0:01:03        |        0:02:15         |
|10 |        0:01:36        |        0:02:19         |
|AVG|        0:01:26        |        0:01:54         |

Refs: https://chromium.googlesource.com/chromium/src/+/master/docs/jumbo.md
2018-10-15 12:37:17 -04:00
Amos Lim
15590a0cde Specify deno_dir location with env var DENO_DIR (#970)
(Use C:\deno instead of c:\deno in appveyor config because it's cloned to c:\ by clone_folder variable in .appveyor.yml. On the other hand, build directory is pointed to C:\ by $(APPVEYOR_BUILD_FOLDER) so that test targets are placed on separated partitions.)
2018-10-15 12:08:19 -04:00
Kitson Kelly
a327759971 Add CONTRIBUTING.md 2018-10-14 17:39:42 -04:00