Jarred Sumner
a31eb6a80c
Add missing getRandomValues to crypto polyfill
2022-09-14 19:15:05 -07:00
Jarred Sumner
b0dd7bee5b
Update crypto benchmark
2022-09-14 18:25:06 -07:00
Jarred Sumner
7bfa302b75
Make crypto.getRandomValues() faster + fix > 1 byte/element typed arrays
...
Fix crypto.getRandomValues() with > 1 byte element typed arrays
Fixes https://github.com/oven-sh/bun/issues/1237
2022-09-14 04:12:32 -07:00
Jarred Sumner
695da9ee29
Fix import path issue in ffi bench
2022-09-09 19:45:39 -07:00
Jarred Sumner
8af05c28a3
Add benchmark for small write() performance
2022-09-07 21:20:41 -07:00
Jarred Sumner
c1734c6ec5
More reliable macOS event loop ( #1166 )
...
* More reliable macOS event loop
* Reduce CPU usage of idling
* Add another implementation
* Add benchmark
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2022-08-28 21:28:05 -07:00
Jarred Sumner
af5c4dedca
Update WebKit ( #1165 )
...
* Update WebKit
* Fix `DataView` and non-8 bit sized typed arrays with TextDecoder
* New WebKit
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2022-08-27 23:46:05 -07:00
Hyro
7a734e0a28
feat: implement native os module ( #1115 )
...
* feat: implement os module
* revert(bun-error): package-lock.json
* feat: implement EOL
* feat: implement EOL
* feat: implement arch function
* feat: implement homedir function
* add comptime to homedir if
* feat: add platform function
* feat: implement type function
* feat: add hostname (not sure iff works on all platforms)
* chore: make requested changes
* fix: change toValueGC into toValue in arch function
* add EOL, devNull constant variables
* fix: store only string
* feat: add tests
* feat: add endianness
* ususe toValue for devNull & EOL
* feat: implement endianness & fix release
* revert javascript.zig fix
* feat: implement tmpdir
* feat: implement totalmem, freemem, uptime
* feat: loadavg
* feat: implement version
* feat: add userInfo
* feat: implement totalmem for macos
* feat: add getPriority (not finished, waiting for dc response)
* feat: finish userInfo implementation
* feat: implement cpus, not done
* feat: finish getPriority implementation & stats cpus()
* feat: implement setPriority
* reemove test.c
* feat: implement constants.dlope.xn, constants.priority.x, constants.UV_UDP_REUSEADDR
* feat: implement signals, errno
* updated cpus function, stilldoesnt work
* increase object length
* feat: add t more ests
* feat: add cpus()
* remov some files
* fix: handle empty array
* started working on interface addresses (in C)
ill use C++ after it work
* fix interface_addresses
* Improved getCpuInfo code, decreased ram usage, increased speed
* getCpuTime optimizations
* started working on networkInterfaces
* feat: networkInterfaces implementation
* delete unnecessary files
* add benchs & fix code
* add tests
* add missing benchs
* Increased buffer of getCpuInfo to 2048, it should skip few iterations
* remove hardcoded constants
* feat: implement errno constants
* fix getWindowsErrorConstant
* feat: add signal constants
* feat: implement priority constants
* remove duplications
* fix: change value to ?i16
* fix(__defineConstant): make some parameters comptime, change value to ?i32
* fix: add E to ERRNO constants, add SIG to SIG constants
* feat: add dlopen constants
* change functions to private
* feat: add UV_UDP_REUSEADDR
* fix typo
* simplify functions
* rename functions in bindings
* feat: implement loadavg for darwin
* feat: implement system uptime
* feat: implement get free memory for darwin
* fix system memory bindings
* feat: implement network interfaces for darwin
* code cleanup
* feat: support for macos version & release
* some fixes
* MacOS support for CpuInfo
* Fixed minor mistake in getCpuInfo_B
* Delete test.zig
* Update c_cpp_properties.json
* Update tasks.json
* feat: implement scopeid
* feat: implement cidr 🚀
* remove unnecesarry changes
* remove unnecesarry changes
* chore: requested changes
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
* chore: requested changes
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
* chore: requested changes
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
* chore: requested changes
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
* chore: requested changes
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
* chore: requested changes
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
* chore: requested changes
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
* fix: import string
* fix: change IPV6 to IPv6
* fix some things
* chore: make requested changes
* revert: launch.json
* fix test
* Fixed few memory leaks
* testing
* again
* added len
* another test
* improved parsing
* added small check
* Bonk
* FINISH 🚀 🚀 🚀 🚀 🚀 🚀
* Update tasks.json
* NetworkInterface test
* FINISH 🚀 🚀 🚀
Co-authored-by: Fire-The-Fox <gajdos.jan77@gmail.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2022-08-25 19:38:28 -07:00
Jarred Sumner
47a91e7457
Fix import path
2022-08-22 00:04:27 -07:00
Jarred Sumner
b95e6602c3
Add a snippet for benchmarking EventEmitter vs EventTarget
2022-08-22 00:04:27 -07:00
Jarred Sumner
c4580ee2ca
Rename reactdom-bun -> react-dom-server.bun
2022-08-21 01:00:27 -07:00
Jarred Sumner
baf218c233
Add a bench snippet for sha512
2022-08-21 00:51:27 -07:00
Jarred Sumner
5de8271181
Handle builds with remote inspector disabled
2022-08-18 00:22:24 -07:00
Jarred Sumner
9594c82180
Update react-hello-world.jsx
2022-08-17 07:55:19 -07:00
Zilin Zhu
0aa3a0a5b0
Fix server segfault by making controller not early GC'ed ( #1090 )
...
* Fix http server segfault by making controller not get GC'ed
* fix format
2022-08-17 05:22:09 -07:00
Jarred Sumner
429abc1278
[bun:ffi] ~30% perf improvement for wrapped functions
2022-08-09 16:35:06 -07:00
Jarred Sumner
16f24086f8
[node compat] Improve fs.copyFileSync performance on macOS
2022-08-09 05:48:20 -07:00
Jarred Sumner
8ae4c745e1
Improve fs.copyFile performance on Linux ( #1035 )
...
* [fs] Improve fs.copyFile performance on Linux
* Add a fs.copyFileSync benchmark
* Fix build error
* Update node.mitata.mjs
* Be more careful with permission
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2022-08-09 05:44:39 -07:00
Hyro
5bca8a1d47
benchmarks(sqlite): invalid northwind database url ( #989 )
...
* build:(landing) automated website build
* Revert "build:(landing) automated website build"
This reverts commit ddee8485fd .
* benchmarks(sqlite): fix invalid northwind database url
Co-authored-by: xHyroM <xHyroM@users.noreply.github.com >
2022-08-05 10:36:32 -07:00
Jarred Sumner
440eba7c9b
[misc] Fix make headers
2022-08-03 19:13:08 -07:00
Jarred Sumner
bced6fab58
Delete plus100-napi
2022-07-22 01:53:57 -07:00
Jarred Sumner
80f797b2e5
Mark as executable
2022-07-22 01:37:42 -07:00
Shahidul Islam Majumder
600929ee6d
fix deno console.log benchmark ( #771 )
...
* chore(benchmark): fix deno console.log benchmark
* only show benchmark results
Co-authored-by: evanwashere <github@evan.lol >
2022-07-18 19:30:58 -04:00
Jarred Sumner
9bba47129a
Add a console.log bench
2022-07-13 01:03:03 -07:00
evanwashere
71930db9b0
fix benchmark not building with old rust version
2022-07-13 03:14:50 -04:00
evan
a9e4ff2029
cleanup benchmarks folder ( #587 )
...
* cleanup benchmarks
* run prettier
2022-07-12 01:40:12 -07:00
Ryan Russell
f0529ca253
docs(various): .md readability improvements ( #597 )
2022-07-12 00:41:23 +02:00
lucasew
118c134918
update bash references to work in non-fhs compliant distros
...
Signed-off-by: lucasew <lucas59356@gmail.com >
2022-07-09 18:28:32 -07:00
sno2
f5d896542a
fix: update build files to latest Zig version
2022-07-09 18:25:25 -07:00
Jarred Sumner
d875c9988a
[bench] Add comparison for react-dom builds
2022-07-06 00:07:59 -07:00
Luca Casonato
8c1157be22
Disable response body auto compression in Deno
...
Allows for a more apples to apples comparison between runtimes
2022-07-05 17:13:52 -07:00
Jarred Sumner
f5527c976e
Clean up some benchmarks
2022-07-05 00:54:42 -07:00
Jarred Sumner
ab7f57239d
[bench] react hello world
2022-07-04 18:06:30 -07:00
Jarred Sumner
b685cd49a6
[bench] Add a react ssr hello world
2022-07-04 16:41:16 -07:00
Jarred Sumner
77b5999b73
[bench] Add a performance.now bench
2022-07-04 08:39:27 -07:00
Jarred Sumner
2f553df8be
[bench] Add an async overhead bench
2022-07-04 08:39:18 -07:00
Jarred Sumner
17045601e7
[bench] Add an ffi data overhead bench
2022-07-04 08:39:07 -07:00
Jarred Sumner
7bb75f5553
Add dynamic require support
2022-06-24 06:59:47 -07:00
Jarred Sumner
729d445b68
change the directory structure
2022-06-22 23:21:48 -07:00
Jarred Sumner
fddf8f8163
Delete broken submodule
2022-06-12 03:16:50 -07:00
Jarred Sumner
552e93bfba
Add fixture used in benchmark snippet
2022-06-07 22:46:05 -07:00
Jarred Sumner
43de33afc7
Web Streams API ( #176 )
...
* [bun.js] `WritableStream`, `ReadableStream`, `TransformStream`, `WritableStreamDefaultController`, `ReadableStreamDefaultController` & more
* Implement `Blob.stream()`
* Update streams.test.js
* Fix sourcemaps crash
* [TextEncoder] 3x faster in hot loops
* reading almost works
* start to implement native streams
* Implement `Blob.stream()`
* Implement `Bun.file(pathOrFd).stream()`
* Add an extra function
* [fs.readFile] Improve performance
* make jsc bindings a little easier to work with
* fix segfault
* faster async/await + readablestream optimizations
* WebKit updates
* More WebKit updates
* Add releaseWEakrefs binding
* `bun:jsc`
* More streams
* Update streams.test.js
* Update Makefile
* Update mimalloc
* Update WebKit
* Create bun-jsc.test.js
* Faster ReadableStream
* Fix off by one & exceptions
* Handle empty files/blobs
* Update streams.test.js
* Move streams to it's own file
* temp
* impl #1
* take two
* good enough for now
* Implement `readableStreamToArray`, `readableStreamToArrayBuffer`, `concatArrayBuffers`
* jsxOptimizationInlining
* Fix crash
* Add `jsxOptimizationInline` to Bun.Transpiler
* Update Transpiler types
* Update js_ast.zig
* Automatically choose production mode when NODE_ENV="production"
* Update cli.zig
* [jsx] Handle defaultProps when inlining
* Update transpiler.test.js
* uncomment some tests
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2022-06-07 22:32:46 -07:00
Jarred Sumner
7ca297a5cc
Update download-northwind.sh
2022-05-16 19:51:30 -07:00
Jarred Sumner
31f3050356
Bump
2022-05-16 18:53:33 -07:00
Jarred Sumner
a37f86e89d
bun:sqlite (#167 )
...
* ✂️
* Add the slow version
* draw the rest of the owl
* Fix crash when allocating lots of memory
* [Bun.Transipiler] Support passing objects
* [JS Parser] Support passing objects to macros via Bun.Transpiler
* Update JSSQLStatement.cpp
* Embed SQLite
* Add SQLite to Dockerfile
* [sqlite] Add quick one-off queries without creating a whole object
* [sqlite] Add `columnsCount`, rename raw() to `values()`, remove `rebind`
* Implement `bun:sqlite`
* return null
* Fix updating query
* Update bun.d.ts
* more tests
* Support variadic arguments, write tests and add types
* Update sqlite.d.ts
* Update sqlite.d.ts
* latest
* Implement `Database.loadExtension` and `Database.setCustomSQLite`
* Support `require.resolve`
* [napi] Improve string performance
* [bun.js] Support some of `node:module`
* another test
* [sqlite] Support serialize & deserialize
* [`bun:ffi`] Implement `CFunction` and `linkSymbols`
* [bun.js] Fix crash in `Buffer.from`
* Update sqlite.test.js
* Document linkSymbols
* docs
* Update README.md
2022-05-16 15:46:20 -07:00
Jarred Sumner
61b2821472
Make the napi mjs file runnable in both bun & node
2022-05-11 15:12:17 -07:00
Jarred Sumner
247f4810c5
Fix export symbols on Linux
2022-05-11 03:45:00 -07:00
Jarred Sumner
eb2a6aee4d
Include napi in plus100
2022-05-10 20:50:38 -07:00
Jarred Sumner
bdf28e42f6
[bun.js] Support gzipSync, gunzipSync, inflateSync, deflateSync
2022-05-07 01:38:26 -07:00
Jarred Sumner
164483c137
Update buffer.js
2022-05-04 07:03:22 -07:00