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 org.apache.commons.compress.archivers.tar.TarArchiveEntry; | |
import org.apache.commons.compress.archivers.tar.TarArchiveInputStream; | |
import java.io.*; | |
import java.nio.file.Path; | |
import java.nio.file.Paths; | |
import java.util.zip.GZIPInputStream; | |
public class Main { |
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.*; | |
import java.util.*; | |
import org.junit.*; | |
import org.junit.runner.*; | |
public class Solution { | |
public Solution(){} | |
/** |
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
-- logger module started -- | |
main debug: VLC media player - 3.0.9.2 Vetinari | |
main debug: Copyright © 1996-2020 the VideoLAN team | |
main debug: revision 3.0.9.2-0-gd4c1aefe4d | |
main debug: configured with ./configure '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-silent-rules' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--runstatedir=/run' '--disable-maintainer-mode' '--disable-dependency-tracking' '--disable-debug' '--config-cache' '--disable-update-check' '--enable-fast-install' '--docdir=/usr/share/doc/vlc' '--with-binary-version=3.0.9.2-1' '--enable-a52' '--enable-aa' '--enable-aom' '--enable-aribsub' '--enable-avahi' '--enable-bluray' '--enable-caca' '--enable-chromaprint' '--enable-chromecast' '--enable-dbus' '--enable-dca' '--enable-dvbpsi' '--enable-dvdnav' '--enable-faad' '--enable-flac' '--enable-fluidsynth' '--enable-freetype' '--enable-fribidi' '--enable-gle |
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.revolut.interview; | |
import com.hazelcast.config.Config; | |
import com.hazelcast.core.Hazelcast; | |
import com.hazelcast.core.HazelcastInstance; | |
import com.hazelcast.internal.serialization.impl.ClassDefinitionImpl; | |
import lombok.Data; | |
import lombok.EqualsAndHashCode; | |
import lombok.ToString; |
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
@State(Scope.Benchmark) | |
@BenchmarkMode(Mode.Throughput) | |
@Fork(1) | |
@Warmup(iterations = 5) | |
@Measurement(iterations = 5) | |
public class KotlinRangeBenchmark { | |
@Param({"0", "123", "1000000", "1073741823", "2147483640", "2147483647"}) | |
private Integer param; | |
@Param({"1005000", "2147483647"}) |
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
Benchmark (arg) Mode Samples Score Score error Units | |
m.MyBenchmark.baseline 4000 avgt 200 3.054 0.012 ns/op | |
m.MyBenchmark.baseline 5501 avgt 200 3.062 0.013 ns/op | |
m.MyBenchmark.baseline 1000 avgt 200 3.076 0.012 ns/op | |
m.MyBenchmark.baseline 3000 avgt 200 3.074 0.012 ns/op | |
m.MyBenchmark.baseline 6000 avgt 200 3.059 0.012 ns/op | |
m.MyBenchmark.ifTest 4000 avgt 200 21.889 0.154 ns/op | |
m.MyBenchmark.ifTest 5501 avgt 200 32.324 0.200 ns/op | |
m.MyBenchmark.ifTest 1000 avgt 200 8.505 0.042 ns/op | |
m.MyBenchmark.ifTest 3000 avgt 200 16.306 0.104 ns/op |