Skip to content

Instantly share code, notes, and snippets.

View samzeng's full-sized avatar

Sam Zeng samzeng

View GitHub Profile
@samzeng
samzeng / idea64.exe.vmoptions
Created December 12, 2016 13:28 — forked from edwardbeckett/idea64.exe.vmoptions
Java 8 Intellij 64 JVM Options
-server
-Xms2g
-Xmx2g
-Xss16m
-XX:+UseConcMarkSweepGC
-XX:+CMSParallelRemarkEnabled
-XX:ConcGCThreads=4
-XX:ReservedCodeCacheSize=128m
-XX:+AlwaysPreTouch
-XX:+TieredCompilation
@samzeng
samzeng / perf.js
Created April 25, 2019 09:15 — forked from scurker/perf.js
Capturing Page Load Metrics with Puppeteer
const puppeteer = require('puppeteer');
(async function() {
const browser = await puppeteer.launch({ devtools: true });
const page = await browser.newPage();
// Login
await page.goto('http://localhost:8080');
await page.type('#login', 'username');