Our great sponsors
hyperfine | bat | |
---|---|---|
72 | 195 | |
19,492 | 45,839 | |
- | - | |
8.2 | 9.5 | |
14 days ago | 8 days ago | |
Rust | Rust | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
hyperfine
-
Faster tetranucleotide (k-mer) frequencies!
Search "benchmarking tools for linux" and decide that hyperfine is good for what I'm doing. Run Jennifer's new python script against my refactored perl and find that the python is 1.26 times faster for k=3 and 1.47 times faster for k=4. For the Covid-19 sequence, these are both on the order of hundreds of milliseconds.
- Hyperfine: A command-line benchmarking tool
- FLaNK Weekly 08 Jan 2024
-
Show HN: Inshellisense – IDE style shell autocomplete
> It is very possible to write sub 100ms procedures in TS, […]
I will not disagree with this statement because I don’t have a way to test inshellisense right now. Could you (or anyone with a working Node + NPM installation) please install inshellisense and post the actual numbers? Perhaps using a tool like hyperfine (https://github.com/sharkdp/hyperfine).
-
Firefox has surpassed Chrome on Speedometer
Yeah, while it's not as thorough as these tools, the method is at least reproducible and sane, and with ~10 or so samples, you get an interval with a nice confidence.
Another through method will be hyperfine[0], yet I wanted to provide a method which requires no installation and can be done in a whim, without jumps and hoops, with the tools already at hand.
-
How to optimize your config? What are mistakes to avoid when optimizing your config?
That is native and inbuild but I would suggest below options instead 1. Using lazy's Profile tab instead https://github.com/folke/lazy.nvim 2. Using a dedicated plugin to do this https://github.com/dstein64/vim-startuptime. 3. Using an external program hyperfine is one that I use https://github.com/sharkdp/hyperfine
-
How to remove all <br> from all of my .html files
Fair enough, although might I recommend using hyperfine for your testing? ;p
-
Making Python 100x faster with less than 100 lines of Rust
Very nice. Thanks for sharing.
-
Profile-guided optimization of a Go application
Go has benchmarking tools in standard library, but in this case it is easier to use hyperfine to measure performance of a CLI app.
-
Any Linux admins willing to try Pygrep?
It's vitally important that you make tests on small changes, and also have consistent testing methodology - same file and search parameters from one run to the next. I personally like using hyperfine to call the Python script, but anything should work. Also, if you're testing this on a laptop, it needs to be plugged in (and the CPU power management tuned for max performance when on wall power), and not too hot - thermal throttling can kill test results.
bat
-
Hired: A Modern Take on 'Ed'
That’s the same as bat:[1] one of the features is syntax highlighting. Kind of unexpected to find a concatenation program… which also does that.
-
Essential Command Line Tools for Developers
View on GitHub
-
5 Developer CLI Essentials
4. bat
-
Ugrep – a more powerful, ultra fast, user-friendly, compatible grep
Good find, thanks! I'll check if I prefer it to moar.
As for bat, according to https://github.com/sharkdp/bat#using-bat-on-windows, the Chocolatey package simply installs `less` alongside `bat`. Seems like a good idea, but I haven't tried it.
I referenced bat because I've found that suggesting cygwin sometimes provokes a negative reaction. The GP also mentioned needing to install GNU tooling as if it were a negative.
bat is fancy pager written in Rust. It's on GitHub: https://github.com/sharkdp/bat
- Tell HN: My Favorite Tools
-
MacOS tools to make your life easier
Try bat (it’s like cat but better) https://github.com/sharkdp/bat
-
🐚🦀Comandos shell reescritos em Rust
bat
-
macOS Command-Line Tools You Might Not Know About
I've been using bat as a cat replacement for a while now. It includes paging, syntax highlighting, line numbers, and is generally very performant.
-
Get better with Vim one tip at a time
I can't tell if you're being sarcastic here, but you really should check out bat.
What are some alternatives?
vim-colors-solarized - precision colorscheme for the vim text editor
exa - A modern replacement for ‘ls’.
awesome-zsh-plugins - A collection of ZSH frameworks, plugins, themes and tutorials.
iTerm2-Color-Schemes - Over 250 terminal color schemes/themes for iTerm/iTerm2. Includes ports to Terminal, Konsole, PuTTY, Xresources, XRDB, Remmina, Termite, XFCE, Tilda, FreeBSD VT, Terminator, Kitty, MobaXterm, LXTerminal, Microsoft's Windows Terminal, Visual Studio, Alacritty
fzf - :cherry_blossom: A command-line fuzzy finder
glow - Render markdown on the CLI, with pizzazz! 💅🏻
sh - A shell parser, formatter, and interpreter with bash support; includes shfmt
oh-my-zsh - 🙃 A delightful community-driven (with 1700+ contributors) framework for managing your zsh configuration. Includes nearly 300 optional plugins (rails, git, OSX, hub, capistrano, brew, ant, php, python, etc), over 140 themes to spice up your morning, and an auto-update tool so that makes it easy to keep up with the latest updates from the community. [Moved to: https://github.com/ohmyzsh/ohmyzsh]
criterion.rs - Statistics-driven benchmarking library for Rust
vim-dim - Dim (/dɪm/; a contraction of Default IMproved) is a clone of Vim’s default colorscheme, with some improvements.
delta - A syntax-highlighting pager for git, diff, and grep output
ripgrep - ripgrep recursively searches directories for a regex pattern while respecting your gitignore