Skip to content

Instantly share code, notes, and snippets.

View notonlysuccess's full-sized avatar

notonlysuccess notonlysuccess

View GitHub Profile
@notonlysuccess
notonlysuccess / polymer_performance_benchmark.html
Created July 26, 2016 00:24
Polymer performance benchmark
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="../webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="paper-button.html">
N = 10
M = 10**12
a = {}
b = {}
totalState = 0
for i in range(0 , N * 2 + 1):
for j in range(0 , N * 2 + 1 - i):
a[(i , j , N * 2 - i - j)] = totalState
b[totalState] = (i , j , N * 2 - i - j)
totalState += 1
#include <string>
#include <iostream>
#include <fstream>
using namespace std ;
int main (int argc , char **argv) {
ifstream a ;
a.open(argv[1]) ;
string s ;