Version | Command | Time (seconds) |
---|---|---|
Java | time java -jar target/fastclj-1.0-standalone.jar |
1.354 |
GraalVM | time ./fastclj-1.0-standalone |
0.014 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import json | |
def dbg(obj,msg=""): | |
"Print nested data structures recursively for debugging." | |
def get_serializable(obj): | |
if hasattr(obj,"__dict__"): | |
return obj.__dict__ | |
else: | |
return obj | |
print(msg, json.dumps(obj, default=get_serializable, sort_keys=True, indent=2)) |
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
{:paths ["."] | |
:deps {clansi {:mvn/version "1.0.0"}}} |
This is a test.
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
#!/bin/sh | |
# vim: filetype=sh | |
## Init. | |
# Define variables. | |
source_bucket=asimj-lambda-test | |
lambda_name=helloworld | |
lambda_execution_role_name=lambda-${lambda_name}-execution |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// Load tweets. | |
import scala.util.control.Breaks._ | |
import scala.collection.JavaConversions._ | |
import twitter4j.{Twitter,Query,TwitterFactory} | |
val twitter = TwitterFactory.getSingleton | |
val query = new twitter4j.Query("lang:en") | |
query.setCount(100) | |
query.setSince("2016-01-13") |
NewerOlder