# Ruby Delights Built Into The Language

DevFeed: [Ruby Delights Built Into The Language](<https://devfeed.tech/articles/ruby-delights-built-into-the-language-20041.md>)

Original publisher: [Read original article](<https://technology.doximity.com/articles/ruby-delights-built-into-the-language>)

Author: Doximity

Published: 2022-12-20T16:00:00Z

Content type: article

Language: en

Sources: [Doximity](<https://devfeed.tech/sources/doximity.md>)

Topics: [Ruby](<https://devfeed.tech/topics/ruby.md>), [Benchmark](<https://devfeed.tech/topics/benchmark.md>), [benchmarking](<https://devfeed.tech/topics/benchmarking.md>), [Code](<https://devfeed.tech/topics/code.md>), [Terminal](<https://devfeed.tech/topics/terminal.md>)

Tags: [benchmark](<https://devfeed.tech/tags/benchmark.md>), [benchmarking](<https://devfeed.tech/tags/benchmarking.md>), [code](<https://devfeed.tech/tags/code.md>), [console](<https://devfeed.tech/tags/console.md>), [performance](<https://devfeed.tech/tags/performance.md>), [ruby](<https://devfeed.tech/tags/ruby.md>), [terminal](<https://devfeed.tech/tags/terminal.md>)

## AI overview

This article explores Ruby features and examples built into the language and its standard library. It focuses on the Benchmark module, Ruby's IRB benchmarking extension, and other example programs such as a biorhythm calculator and networking utilities.

## Source excerpt

BTW, we're ⚡ hiring Infra, SRE, Web, Mobile, and Data engineers at Doximity (see roles) -- find out more about our technical stack. Ruby Delights Built Into The Language The hidden gems that make Ruby a delight are not always... gems. There are so many Ruby features built in to the language itself. In the very first episode of this series, we dove deep into the internals of one such gem bundled with Ruby's standard library: IRB. Keeping on theme, I'd like to take some time to explore some other areas of Ruby's source. So get ready to open up that IRB console you read all about, and we'll explore some incredible Ruby examples provided to you by Ruby itself. Jump To Your Favorites benchmark.rb - Measure performance of Ruby code biorhythm.rb - A biorhythm calculator cal.rb - A simple calendar display cbreak.rb - Supress echo of terminal input using ioctl cgi-session-pstore.rb - A file-based persistence mechanism for tracking the CGI Session as a Hash clnt.rb, svr.rb and tsvr.rb - Start a TCP socket server and connect a client coverage.rb - Simple test code coverage delegate.rb - Delegating methods with ease dir.rb - Directory access DRb - Distributed object system for Ruby (think RPC for OO) dualstack-fetch.rb and dualstack-httpd.rb - A simultaneous multi-threaded IPv4/IPv6 TCP server and client eval.rb - A simple evaluator export.rb - method access example exyacc.rb - Extract BNF from the yacc file fact.rb - A factorial calculator fib.rb - Fibonacci number calculations from.rb - Scan mail spool fullpath.rb - Convert ls -lR to fullpath format iseq_loader.rb - A sample of compiler/loader for binary compiled file less.rb - A front-end for the less command Benchmark source: benchmark.rb Benchmarking can be an incredibly valuable tool, but is quite the rabbit hole of theory vs. pragmatism. The "what", and "how", of benchmarking is fraught with sharp opinions and inconsistent recommendations. For now, we'll throw all that out the window and focus on Ruby's lovely example us