This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ➜ node git:(mert/readfileutf8-zero-copy-fast-path) ✗ node-benchmark-compare ./result.csv | |
| confidence improvement accuracy (*) (**) (***) | |
| fs/readfile-utf8-fastpath.js n=3000 source='fd' content='ascii' size=1024 0.82 % ±2.59% ±3.58% ±4.93% | |
| fs/readfile-utf8-fastpath.js n=3000 source='fd' content='ascii' size=16384 -0.41 % ±3.57% ±4.97% ±6.96% | |
| fs/readfile-utf8-fastpath.js n=3000 source='fd' content='ascii' size=262144 4.71 % ±7.76% ±10.63% ±14.49% | |
| fs/readfile-utf8-fastpath.js n=3000 source='fd' content='ascii' size=4194304 1.67 % ±2.11% ±2.89% ±3.95% | |
| fs/readfile-utf8-fastpath.js n=3000 source='fd' content='ascii' size=64 -3.48 % ±4.41% ±6.15% ±8.62% | |
| fs/readfile-utf8-fastpath.js n=3000 source='fd' content='latin1' size=1024 * 3.39 % ±3.36 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Last login: Sun May 10 23:31:17 on ttys004 | |
| /Users/mert/.zprofile:6: no such file or directory: /usr/local/bin/brew | |
| ➜ node git:(mert/textdecoder-skip-utf8-revalidation) ✗ node-benchmark-compare ./result.csv | |
| confidence improvement accuracy (*) (**) (***) | |
| util/text-decoder-stream.js type='ArrayBuffer' n=1000 chunks=10 len=131072 unicode=0 fatal=0 ignoreBOM=0 encoding='utf-16le' -0.05 % ±1.59% ±2.18% ±2.98% | |
| util/text-decoder-stream.js type='ArrayBuffer' n=1000 chunks=10 len=131072 unicode=0 fatal=0 ignoreBOM=0 encoding='utf-8' 0.32 % ±1.34% ±1.86% ±2.56% | |
| util/text-decoder-stream.js type='ArrayBuffer' n=1000 chunks=10 len=131072 unicode=0 fatal=0 ignoreBOM=1 encoding='utf-16le' -0.14 % ±1.55% ±2.13% ±2.91% | |
| util/text-decoder-stream.js type='ArrayBuffer' n=1000 chunks=10 len=13107 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 100 chunks × 4KB streaming test | |
| const { performance } = require('perf_hooks'); | |
| // Prepare test data: 100 chunks of 4KB each | |
| const numChunks = 100; | |
| const chunkSize = 4096; // 4KB | |
| const chunks = []; | |
| for (let i = 0; i < numChunks; i++) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Buffer } from 'node:buffer'; | |
| // 100 chunks × 4KB benchmark | |
| export default { | |
| async fetch(request, env) { | |
| const url = new URL(request.url); | |
| const tick = env?.TICK | |
| ? async () => { await env.TICK.fetch(new Request('http://tick/')); } | |
| : async () => {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Node.js Structured Logging API - RFC | |
| **Author:** @mertcanaltin | |
| **Status:** REVIEW | |
| **Date:** 2025-01-22 | |
| **Issue:** [#49296](https://github.com/nodejs/node/issues/49296) | |
| --- | |
| ## Summary |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ℹ tests 5381 | |
| ℹ suites 28 | |
| ℹ pass 5336 | |
| ℹ fail 44 | |
| ℹ cancelled 0 | |
| ℹ skipped 1 | |
| ℹ todo 0 | |
| ℹ duration_ms 649.137542 | |
| ✖ failing tests: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from transformers import ChatGPT | |
| # ChatGPT modelini yükleyin | |
| model = ChatGPT("gpt3.5-turbo") | |
| # Başlamak için bir "sohbet" fonksiyonu oluşturun | |
| def sohbet_et(): | |
| while True: | |
| kullanici_girdisi = input("Kullanıcı: ") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for (let i = 1; i <= 100; i++) { | |
| if (i % 3 === 0 && i % 5 === 0) { | |
| console.log("FizzBuzz"); | |
| } else if (i % 3 === 0) { | |
| console.log("Fizz"); | |
| } else if (i % 5 === 0) { | |
| console.log("Buzz"); | |
| } else { | |
| console.log(i); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find . -maxdepth 1 -type d -exec sh -c '(cd {} && git reset --hard && git clean -fd && git submodule update --init --recursive && git pull && git fetch)' ';' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const users = [{ | |
| name:'mert', | |
| age:10 | |
| }, | |
| { | |
| name:'mert', | |
| age:29 | |
| }, | |
| { | |
| name:'ali', |
NewerOlder