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 java.io.BufferedReader; | |
import java.io.File; | |
import java.io.FileReader; | |
import java.io.IOException; | |
public class Solution { | |
public static void main(String[] args) throws IOException { | |
BufferedReader br1 = new BufferedReader(new FileReader(new File("/home/chathura/Downloads/indy_data/IPBroadcaster_Input_2018-05-16_0.log"))); | |
String line; | |
while ((line = br1.readLine()) != null) { |
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
0 | |
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 |
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
0 | |
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 |
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
package com.cwidanage; | |
import org.openucx.jucx.UcxCallback; | |
import org.openucx.jucx.ucp.*; | |
import java.net.InetSocketAddress; | |
import java.nio.ByteBuffer; | |
import java.util.LinkedList; | |
import java.util.Queue; |
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
package com.cwidanage; | |
import org.openucx.jucx.UcxCallback; | |
import org.openucx.jucx.ucp.*; | |
import java.net.InetSocketAddress; | |
import java.nio.ByteBuffer; | |
import java.util.LinkedList; | |
import java.util.Queue; |
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
package com.cwidanage; | |
import org.openucx.jucx.UcxCallback; | |
import org.openucx.jucx.ucp.*; | |
import java.net.InetSocketAddress; | |
import java.nio.ByteBuffer; | |
import java.util.LinkedList; | |
import java.util.Queue; |
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
package com.cwidanage; | |
import org.openucx.jucx.UcxCallback; | |
import org.openucx.jucx.ucp.*; | |
import java.net.InetSocketAddress; | |
import java.nio.ByteBuffer; | |
import java.util.LinkedList; | |
import java.util.Queue; |
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
const { PerformanceObserver, performance } = require('perf_hooks'); | |
let arraySize = 1000000; | |
let iterations = 100; | |
console.log("Starting performance test with %d array size and %d iterations", arraySize, iterations); | |
let values = { | |
FORIN: 0, | |
FOROF: 0, |
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
let arr = [1,2,3,4]; | |
arr.forEach(i=>{ | |
let x = i+1; | |
}); |
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
let arr = [1,2,3,4]; | |
for(let i of arr){ | |
let x = i+1; | |
} |