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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Slack Message to Emoji</title> | |
<script src="slack.js"></script> | |
<style> | |
h1 { | |
text-align: center; | |
} |
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
require 'get_process_mem' | |
require 'rusage' # gem install rusage | |
require 'benchmark' | |
n = 2000 | |
gpm = GetProcessMem.new | |
Benchmark.bm(10) do |x| | |
x.report("status:") { n.times do gpm.linux_status_memory end } | |
# In sshaw version |