ps -e -T
A specific pid
ps -Tp <pid>
#!/bin/bash | |
# file: ttfb.sh | |
# curl command to check the time to first byte | |
# ** usage ** | |
# 1. ./ttfb.sh "https://google.com" | |
# 2. seq 10 | xargs -Iz ./ttfb.sh "https://google.com" | |
curl -o /dev/null \ | |
-H 'Cache-Control: no-cache' \ | |
-s \ |
package main | |
import ( | |
"sync" | |
"fmt" | |
"time" | |
"github.com/amitt001/moodb/client" | |
server "github.com/amitt001/moodb/mdbserver" | |
) |
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH=/Users/amittripathi/.oh-my-zsh | |
export EDITOR=vim | |
# Set name of the theme to load. Optionally, if you set this to "random" | |
# it'll load a random theme each time that oh-my-zsh is loaded. | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes |
""" | |
Returns result in the format: | |
{ | |
"B": { | |
2401: "1/6 = 2%", | |
3101: "1/6 = 2%" | |
}, | |
"C": { | |
"02": "3/6 = 50%" |