Skip to content

Instantly share code, notes, and snippets.

View parasj's full-sized avatar

Paras Jain parasj

View GitHub Profile
@parasj
parasj / aws_s3.txt
Created November 15, 2022 03:17
AWS S3 vs Cloudflare R2 benchmark
(bench-s3 pid=33673) --- BENCHMARK ----------------------------------------------------------------------------------------------------------------
(bench-s3 pid=33673)
(bench-s3 pid=33673) Download performance with 4 MB objects (m5.8xlarge)
(bench-s3 pid=33673) +-------------------------------------------------------------------------------------------------+
(bench-s3 pid=33673) | Time to First Byte (ms) | Time to Last Byte (ms) |
(bench-s3 pid=33673) +---------+----------------+------------------------------------------------+------------------------------------------------+
(bench-s3 pid=33673) | Threads | Throughput | avg min p25 p50 p75 p90 p99 max | avg min p25 p50 p75 p90 p99 max |
(bench-s3 pid=33673) +---------+----------------+------------------------------------------------+------------------------------------------------+
(bench-s3 pid=33673) | 8 | 663.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@parasj
parasj / time.scala
Last active April 14, 2016 16:57
Scala Microbench - time snippet
def time[R](block: => R): (R, Long) = {
val t0 = System.nanoTime()
val result = block
val t1 = System.nanoTime()
(result, t1 - t0)
}
package com.jainlabs;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
public class SwingTest {
private JFrame frame;
private JLabel result;
@parasj
parasj / Learning Go
Last active August 29, 2015 13:58
Learning Go
http://tour.golang.org
@parasj
parasj / cookieclicker_trainer.js
Last active December 22, 2015 15:09
Cookie Clicker Trainer
window.bot = {}
var cookieclicker_cb = function() {
$('#bigCookie').click(); // Game.Earn() could also be used
};
window.bot.cookieclicker = setInterval(cookieclicker_cb, 10);
var product_cb = function() {
$('#product8').click();
$('#product7').click();