We need an Open Source alternative to AMP.
This file contains 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
var pino = require('./') | |
var bole = require('bole')('bench') | |
var fs = require('fs') | |
var dest = fs.createWriteStream('/dev/null') | |
var plog = pino(dest) | |
require('bole').output({ | |
level: 'info', | |
stream: dest | |
}).setFastTime(true) |
This file contains 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
#!/usr/sbin/dtrace -s | |
#pragma D option quiet | |
#pragma D option switchrate=1000hz | |
profile-1ms /pid == $target/ { | |
/* Sampling every 1ms therefore also recording timestamp at ms resolution */ | |
printf("%s %d %d: %s:", execname, pid, timestamp / 1000000, probename); | |
ustack(10000); | |
printf("\n"); |
This file contains 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 13846 108328085: profile-1ms: | |
libsystem_kernel.dylib`__write_nocancel+0xa | |
libsystem_c.dylib`__sflush+0x57 | |
libsystem_c.dylib`fflush+0x28 | |
node`v8::internal::Log::MessageBuilder::WriteToLogFile()+0x5b | |
node`v8::internal::Logger::CodeCreateEvent(v8::internal::CodeEventListener::LogEventsAndTags, v8::internal::AbstractCode*, char const*)+0x84 | |
node`v8::internal::(anonymous namespace)::PostBuildProfileAndTracing(v8::internal::Isolate*, v8::internal::Code*, char const*)+0x55 | |
node`v8::internal::SetupIsolateDelegate::SetupBuiltinsInternal(v8::internal::Isolate*)+0x4408 | |
node`v8::internal::Isolate::Init(v8::internal::Deserializer*)+0x2b1e |
This file contains 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 23305 122461290: profile-1ms: | |
node`v8::String::Length() const | |
node`node::BufferValue::BufferValue(v8::Isolate*, v8::Local<v8::Value>)+0x79 | |
node`node::Open(v8::FunctionCallbackInfo<v8::Value> const&)+0x199 | |
node`v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo<v8::Value> const&))+0x164 | |
node`v8::internal::(anonymous namespace)::HandleApiCallHelper(v8::internal::Isolate*, v8::internal::(anonymous namespace)::BuiltinArguments<(v8::internal::BuiltinExtraArguments)3>)+0x6e5 | |
node`v8::internal::Builtin_HandleApiCall(int, v8::internal::Object**, v8::internal::Isolate*)+0x1d1 | |
0x29f3f61060c7 | |
0x29f3f61b08c4 | |
0x29f3f61c1af8 |
This file contains 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 23541 122694113: profile-1ms: | |
libsystem_kernel.dylib`semaphore_signal_trap+0xa | |
node`v8::sampler::SamplerManager::DoSample(v8::RegisterState const&)+0xda | |
node`v8::sampler::SignalHandler::HandleProfilerSignal(int, __siginfo*, void*)+0x72 | |
libsystem_platform.dylib`_sigtramp+0x1a | |
node`0x26 | |
node`v8::internal::MacroAssembler::RememberedSetHelper(v8::internal::Register, v8::internal::Register, v8::internal::Register, v8::internal::SaveFPRegsMode, v8::internal::MacroAssembler::RememberedSetFinalAction)+0x10b | |
node`v8::internal::RecordWriteStub::GenerateIncremental(v8::internal::MacroAssembler*, v8::internal::RecordWriteStub::Mode)+0x11c | |
node`v8::internal::RecordWriteStub::Generate(v8::internal::MacroAssembler*)+0xa0 | |
node`v8::internal::PlatformCodeStub::GenerateCode()+0x9e |
I hereby claim:
- I am davidmarkclem on github.
- I am dmclements (https://keybase.io/dmclements) on keybase.
- I have a public key whose fingerprint is 0DDD 7282 1FEE 2BF0 3D0E EB33 5A03 8B44 115F 07AC
To claim this, I am signing this object:
This file contains 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
npm install -g autocannon |
This file contains 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 parentModule from 'parent-module' | |
console.log(parentModule()) // prints "node:internal/modules/esm/module_job" (Node 16.13.1) |
OlderNewer