Source for this comparison of C and ClojureScript perf.
C source:
#include <stdio.h>
#include <mach/mach.h>
#include <mach/mach_time.h>
int main() {
import React from 'react'; | |
import { shallow } from 'enzyme'; | |
import MyComponent from '../src/my-component'; | |
const wrapper = shallow(<MyComponent/>); | |
describe('(Component) MyComponent', () => { | |
it('renders without exploding', () => { | |
expect(wrapper).to.have.length(1); | |
}); |
import simplejson | |
import json | |
def put(data, filename): | |
try: | |
jsondata = simplejson.dumps(data, indent=4, skipkeys=True, sort_keys=True) | |
fd = open(filename, 'w') | |
fd.write(jsondata) | |
fd.close() | |
except: |
#!/usr/bin/env bash | |
set -e | |
die() { | |
echo "$1"; | |
exit 1; | |
} | |
# Fetch and install LuaJIT/LuaRocks into the local directory |
Source for this comparison of C and ClojureScript perf.
C source:
#include <stdio.h>
#include <mach/mach.h>
#include <mach/mach_time.h>
int main() {
SELECT f.repo_name, s.num_stars | |
FROM [copper-diorama-131213:github.go_repos_files] AS f | |
JOIN [copper-diorama-131213:github.2015_2016_stars] AS s | |
ON f.repo_name = s.repo_name | |
WHERE f.path LIKE 'Godeps/_workspace/%' | |
GROUP BY f.repo_name, s.num_stars | |
ORDER BY s.num_stars DESC | |
SELECT f.repo_name, s.num_stars | |
FROM [copper-diorama-131213:github.go_repos_files] AS f |